Skip to content

Commit

Permalink
Improve cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
crtag committed Nov 6, 2024
1 parent 3c44151 commit 4caae87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions QUICK/Dockerfile.managed
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ RUN apt-get update -y \
procps \
apt-transport-https \
ca-certificates \
gnupg \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
gnupg

# Install Google Cloud SDK
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg && apt-get update -y && apt-get install google-cloud-cli -y

RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Set the working directory
WORKDIR /src/install

Expand Down
2 changes: 1 addition & 1 deletion QUICK/job_manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ STATUS_CHECK_INTERVAL="${STATUS_CHECK_INTERVAL:-$DEFAULT_STATUS_CHECK_INTERVAL}"
JOB_ASSIGNMENT_ENDPOINT="${API_URL_JOB_ASSIGNMENT}"
STATUS_REPORT_ENDPOINT="${API_URL_STATUS_REPORT}"

# provision gcloud
# Provision gcloud
echo "$GOOGLE_CLOUD_SA_KEY" > /tmp/sa-key.json
gcloud auth activate-service-account --key-file /tmp/sa-key.json

Expand Down

0 comments on commit 4caae87

Please sign in to comment.