diff options
| author | mo khan <mo.khan@gmail.com> | 2020-10-01 16:08:23 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-10-01 16:08:23 -0600 |
| commit | 43a02a57d7b7803edc26da95d3c45ef494372b0f (patch) | |
| tree | b1fa4aea2149a95c1b42437a6cedd518ac3fadb8 /bin/docker-dotenv | |
| parent | 7a01aa5dba4b8df24419c2e45ead6efe5698a0a9 (diff) | |
Remove unused config files and jobs
Diffstat (limited to 'bin/docker-dotenv')
| -rwxr-xr-x | bin/docker-dotenv | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/bin/docker-dotenv b/bin/docker-dotenv deleted file mode 100755 index fb40a99..0000000 --- a/bin/docker-dotenv +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -# input: -# SOURCE_IMAGE: Image name for the source image -# TARGET_IMAGE: Name of image to build -# DOTENV: The name of the .env.* file that contains the default env vars to export. -# e.g. DOTENV=".env.12-3-stable" - -set -e - -cd "$(dirname "$0")/.." -DOCKERFILE=Dockerfile.env - -rm -f $DOCKERFILE -touch $DOCKERFILE -echo "FROM $SOURCE_IMAGE" > $DOCKERFILE - -echo "Reading... $DOTENV" -cat "$DOTENV" - -while IFS= read -r line; do - echo "ENV $line" >> $DOCKERFILE -done < "$DOTENV" - -echo "Pulling... $SOURCE_IMAGE" -docker pull "$SOURCE_IMAGE" - -echo "Building... $DOCKERFILE and tagging $TARGET_IMAGE" -cat $DOCKERFILE -docker build -t "$TARGET_IMAGE" -f $DOCKERFILE . - -echo "Verifying env..." -docker run --entrypoint='' "$TARGET_IMAGE" env |
