Skip to content

Commit

Permalink
get rid of .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Fossati committed Jul 18, 2019
1 parent 372bc15 commit a7beac6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
10 changes: 0 additions & 10 deletions .env

This file was deleted.

5 changes: 2 additions & 3 deletions docker/pipeline.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash

source .env

PROGNAME=$0

usage() {
Expand Down Expand Up @@ -61,4 +59,5 @@ fi

# Builds and runs docker
docker build --rm -f "Dockerfile.pipeline" -t maxfrax/soweego:pipeline .
docker run -it --rm --name soweego-pipeline-$RANDOM --env-file .env --volume "${DOCKER_SHARED_FOLDER}":"/app/shared" maxfrax/soweego:pipeline "$@"
docker run -it --rm --name soweego-pipeline-$RANDOM --volume "${DOCKER_SHARED_FOLDER}":"/app/shared" maxfrax/soweego:pipeline "$@"

5 changes: 2 additions & 3 deletions docker/prod.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash

source .env

PROGNAME=$0

usage() {
Expand Down Expand Up @@ -32,4 +30,5 @@ fi


docker build --rm -f "Dockerfile.test" -t maxfrax/soweego:latest .
docker run -it --rm --name soweego-prod-$RANDOM --env-file .env --volume "${DOCKER_SHARED_FOLDER}":"/app/shared" --volume "$(pwd)":"/app/soweego" maxfrax/soweego:latest /bin/bash
docker run -it --rm --name soweego-prod-$RANDOM --volume "${DOCKER_SHARED_FOLDER}":"/app/shared" --volume "$(pwd)":"/app/soweego" maxfrax/soweego:latest /bin/bash

0 comments on commit a7beac6

Please sign in to comment.