forked from singnet/das-poc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup cluster deployment environment
- Loading branch information
Andre Senna
committed
May 8, 2023
1 parent
59669e6
commit 7072fab
Showing
6 changed files
with
58 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export DAS_REDIS_HOSTNAME=149.28.192.132 | ||
export DAS_REDIS_PORT=7000 | ||
|
||
export DAS_MONGODB_HOSTNAME=45.63.83.31 | ||
export DAS_MONGODB_PORT=27018 | ||
|
||
export DAS_DATABASE_USERNAME=dbadmin | ||
export DAS_DATABASE_PASSWORD=dassecret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/bash | ||
|
||
docker build -t das \ | ||
source environment_das | ||
docker build --no-cache -t das \ | ||
--build-arg USER_ID=$(id -u) \ | ||
--build-arg GROUP_ID=$(id -g) \ | ||
-f Dockerfile . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
source environment_das | ||
# --detach \ | ||
docker run \ | ||
--name jupyter-notebook \ | ||
--env DAS_MONGODB_HOSTNAME=${DAS_MONGODB_HOSTNAME:-mongo} \ | ||
--env DAS_MONGODB_PORT=${DAS_MONGODB_PORT:-27017} \ | ||
--env DAS_REDIS_HOSTNAME=${DAS_REDIS_HOSTNAME:-redis} \ | ||
--env DAS_REDIS_PORT=${DAS_REDIS_PORT:-6379} \ | ||
--env DAS_DATABASE_USERNAME=${DAS_DATABASE_USERNAME:-dbadmin} \ | ||
--env DAS_DATABASE_PASSWORD=${DAS_DATABASE_PASSWORD:-dassecret} \ | ||
--env PYTHONPATH=/app \ | ||
--env TZ=${TZ} \ | ||
--network="host" \ | ||
--volume /tmp:/tmp \ | ||
--volume /mnt:/mnt \ | ||
--volume /opt/das/data:/data \ | ||
das:latest \ | ||
jupyter-notebook --ip 0.0.0.0 --port 8887 --no-browser --allow-root | ||
|
||
docker rm jupyter-notebook >& /dev/null |