Skip to content

Commit 3f2a87d

Browse files
Merge pull request #308 from Ecotrust/docker_install_scripting
Docker install scripting
2 parents 140e458 + bc7eeb3 commit 3f2a87d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docker/docker-compose.prod.local.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
image: ${WEB_IMAGE}:latest
1212
command: ["prod-local"]
1313
env_file:
14-
- path: .env.dev
14+
- path: .env.prod
1515
required: true
1616
ports: []
1717
depends_on:

scripts/Linux/install-docker-env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
ENV_FILE="${1:-.env.prod}"
2+
ENV_FILE=`realpath ${1:-.env.prod}`
33

44
if [ ! -f "$ENV_FILE" ]; then
55
echo "Environment file $ENV_FILE not found!"
@@ -68,7 +68,7 @@ git checkout main
6868
git pull origin main
6969

7070
echo "Moving the .env.prod file to the Docker directory..."
71-
mv $ENV_FILE docker/.env.prod
71+
ln -s $ENV_FILE $PWD/docker/.env.prod
7272

7373
echo "Pulling the latest Docker image..."
7474
docker pull ghcr.io/ecotrust/tekdb/web:latest

0 commit comments

Comments
 (0)