diff options
| author | Can Eldem <celdem@gitlab.com> | 2020-10-02 10:27:52 +0000 |
|---|---|---|
| committer | Can Eldem <celdem@gitlab.com> | 2020-10-02 10:27:52 +0000 |
| commit | ba400de2a558ddf3540ac81134351ea25ef7d00d (patch) | |
| tree | b7b03742c7f9d02531a07bf22b5c2a78ed62c37e /bin/docker-dotenv | |
| parent | 7a01aa5dba4b8df24419c2e45ead6efe5698a0a9 (diff) | |
| parent | cec6d6470745792c82894df9036f2f7ba1d2daa8 (diff) | |
Merge branch 'cleanup' into 'master'
Remove unused config files and jobs
See merge request gitlab-org/security-products/license-management!223
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 |
