summaryrefslogtreecommitdiff
path: root/contrib/imgts/Dockerfile
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2019-01-23 14:08:14 -0500
committerChris Evich <cevich@redhat.com>2019-01-24 08:47:08 -0500
commit01e609d460ac9c49246dcb10b1433e2b00b20981 (patch)
tree659c9e0bb45d6e3837d059fe5c6fad4d48a421b6 /contrib/imgts/Dockerfile
parentc9e1f365e294135968bdd4d754dca7e1044587dc (diff)
downloadpodman-01e609d460ac9c49246dcb10b1433e2b00b20981.tar.gz
podman-01e609d460ac9c49246dcb10b1433e2b00b20981.tar.bz2
podman-01e609d460ac9c49246dcb10b1433e2b00b20981.zip
[skip ci] Cirrus: Container for tracking image use
Once built, this container can be utilized by automation to help keep track of VM images. All parameters are passed in via env. vars. Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/imgts/Dockerfile')
-rw-r--r--contrib/imgts/Dockerfile20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/imgts/Dockerfile b/contrib/imgts/Dockerfile
new file mode 100644
index 000000000..0746eca4c
--- /dev/null
+++ b/contrib/imgts/Dockerfile
@@ -0,0 +1,20 @@
+FROM centos:7
+
+# Only needed for installing build-time dependencies
+COPY /contrib/imgts/google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo
+RUN yum -y update && \
+ yum -y install epel-release && \
+ yum -y install google-cloud-sdk && \
+ yum clean all
+
+COPY /contrib/imgts/entrypoint.sh /usr/local/bin/entrypoint.sh
+ENV GCPJSON="__unknown__" \
+ GCPNAME="__unknown__" \
+ GCPPROJECT="__unknown__" \
+ IMGNAMES="__unknown__" \
+ TIMESTAMP="__unknown__" \
+ BUILDID="__unknown__" \
+ REPOREF="__unknown__"
+RUN chmod 755 /usr/local/bin/entrypoint.sh
+
+ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]