Skip to content

Commit

Permalink
Pass env var through docker layers
Browse files Browse the repository at this point in the history
  • Loading branch information
vesameskanen committed Nov 8, 2018
1 parent 2637c26 commit 48d9ee4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile.loader
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM hsldevcom/pelias-data-container-base

ARG MMLAPIKEY

# Dockerfile which loads and indexes new data into empty data container image
MAINTAINER Reittiopas version: 0.1

Expand Down
2 changes: 1 addition & 1 deletion scripts/build-data-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function build {

DOCKER_TAGGED_IMAGE=$1
echo "Building $DOCKER_TAGGED_IMAGE"
docker build --no-cache -t="$DOCKER_TAGGED_IMAGE" -f Dockerfile.loader .
docker build --no-cache --build-arg MMLAPIKEY -t="$DOCKER_TAGGED_IMAGE" -f Dockerfile.loader .
echo 0 >/tmp/build_ok
}

Expand Down

0 comments on commit 48d9ee4

Please sign in to comment.