Skip to content

Commit

Permalink
update collector ci image (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbycochran authored Jan 29, 2021
1 parent 72b29c3 commit 2609d38
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions images/Dockerfile.collector
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
FROM circleci/golang:1.13.8-stretch
FROM circleci/golang:1.15.2-buster

USER 0

RUN apt-get update && apt-get install -y --no-install-recommends lsb-release cmake
RUN apt-get update && apt-get install -y --no-install-recommends lsb-release cmake python3-distutils

ENV ROX_CI_IMAGE=collector-ci-image

COPY ./static-contents/ /
COPY ./static-contents/bin/bash-wrapper /bin/
COPY ./static-contents/etc/bash.env /etc/

RUN \
mv /bin/bash /bin/real-bash && \
mv /bin/bash-wrapper /bin/bash
mv /bin/bash-wrapper /bin/bash && \
chmod 755 /bin/bash

USER circleci

# Install GCloud SDK per https://cloud.google.com/sdk/docs/downloads-interactive#linux
# Note: We DO NOT use apt-get to install it in order to be able to use the built-in
# upgrade functionality.
RUN curl https://sdk.cloud.google.com | bash
RUN curl https://sdk.cloud.google.com > install.sh && bash install.sh --disable-prompts

ENV PATH /home/circleci/google-cloud-sdk/bin:${PATH}

RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py
RUN \
gcloud config set core/disable_prompts True && \
gcloud components install gsutil -q && \
gcloud components update -q

0 comments on commit 2609d38

Please sign in to comment.