From 40e699e8b4bedadac6aa96affb8b0401282f0792 Mon Sep 17 00:00:00 2001 From: Oly Date: Tue, 6 Mar 2018 08:56:26 +0000 Subject: [PATCH] Initial version just show the env vars available --- Dockerfile | 8 ++++++++ example.py | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 Dockerfile create mode 100755 example.py diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8e7c999 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +# Docker image for the Drone build runner +# +# CGO_ENABLED=0 go build -a -tags netgo +# docker build --rm=true -t plugins/drone-cache . + +FROM python +COPY ./example.py /bin/example +ENTRYPOINT ["/bin/example"] diff --git a/example.py b/example.py new file mode 100755 index 0000000..8d6d2ec --- /dev/null +++ b/example.py @@ -0,0 +1,5 @@ +#!/usr/bin/python +import os + +for k,v in os.environ.items(): + print('%s=%s' % (k, v))