-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72b29c3
commit 2609d38
Showing
1 changed file
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |