Skip to content

Commit 00f659b

Browse files
committedMar 11, 2025·
testing env var removal
1 parent 56aec4e commit 00f659b

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed
 

‎dibbs-ecr-viewer/dibbs-ecr-viewer.env

-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,3 @@ SQL_SERVER_USER=
1616
SQL_SERVER_PASSWORD=
1717
SQL_SERVER_HOST=
1818
DB_CIPHER=
19-
20-
DIBBS_SERVICE=dibbs-ecr-viewer
21-
DIBBS_VERSION=v2.0.0-beta

‎packer/ubuntu-server/scripts/provision.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
# 8. Changes ownership of the 'dibbs-vm' directory to the 'ubuntu' user.
1111
# 9. Triggers an initial Docker Compose to pull image data and start the containers.
1212

13-
# loop through all .env files and export the variables
14-
for file in $(find . -name "*.env"); do
15-
export $(cat $file | xargs)
16-
done
17-
1813
# Adjust Docker group permissions.
1914
groupadd docker
2015
usermod -aG docker ubuntu
@@ -43,6 +38,11 @@ echo "DIBBS_SERVICE=$DIBBS_SERVICE" >> "$DIBBS_SERVICE.env"
4338
echo "DIBBS_VERSION=$DIBBS_VERSION" >> "$DIBBS_SERVICE.env"
4439
echo "" >> "$DIBBS_SERVICE.env"
4540

41+
# loop through all .env files and export the variables
42+
# for file in $(find . -name "*.env"); do
43+
# export $(cat $file | xargs)
44+
# done
45+
4646
# enables docker compose variables to stay set on reboot, DIBBS_SERVICE and DIBBS_VERSION
4747
echo 'export $(cat '$HOME/dibbs-vm/"$DIBBS_SERVICE"/*.env' | xargs)' >> "$HOME"/.bashrc
4848

0 commit comments

Comments
 (0)
Please sign in to comment.