Skip to content

Commit

Permalink
Merge pull request #4429 from sgibson91/gcp-filestore-backups/dockerfile
Browse files Browse the repository at this point in the history
Containerise gcp-filestore-backups script and add to chartpress specification
  • Loading branch information
sgibson91 authored Jul 16, 2024
2 parents c6e5547 + 6cf671d commit 91d0af0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm-charts/chartpress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ charts:
REQUIREMENTS_FILE: dynamic-image-building-requirements.txt
contextPath: images/hub
dockerfilePath: images/hub/Dockerfile
- name: support
images:
gcp-filestore-backups:
imageName: quay.io/2i2c/gcp-filestore-backups
16 changes: 16 additions & 0 deletions helm-charts/images/gcp-filestore-backups/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM python:3.12.4

USER root

# Install gcloud CLI
RUN apt-get update
RUN apt-get install apt-transport-https ca-certificates gnupg curl -y
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-sdk -y

COPY requirements.txt /tmp/
RUN pip install -r /tmp/requirements.txt

COPY gcp-filestore-backups.py /
ENTRYPOINT ["python", "gcp-filestore-backups.py"]

0 comments on commit 91d0af0

Please sign in to comment.