-
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.
- Loading branch information
1 parent
126a940
commit a985088
Showing
6 changed files
with
30 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
# Stylegan1 Tensorflow 1.15 Docker container | ||
# Author: Gagan Daroach <[email protected]> | ||
|
||
container_name="$(cat container_name.txt)" | ||
echo 'Calling build "$container_name"' | ||
# build docker container | ||
docker build . -t $container_name:latest |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
dgx_researcher |
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,14 +1,18 @@ | ||
#!/bin/bash | ||
# TO BE RUN ON MSOE dh-dgx node | ||
# | ||
# Stylegan1 Tensorflow 1.15 Docker container | ||
# Author: Gagan Daroach <[email protected]> | ||
user=$USER | ||
container_name="${user}_researcher_dev" | ||
container_name="$(cat container_name.txt)" | ||
echo ">>>> Loaded container name: $container_name <<<<" | ||
|
||
# build docker container | ||
docker build . -t $container_name:latest | ||
# stop container if it is running currently. | ||
docker stop $container_name | ||
docker rm $container_name | ||
|
||
nvidia-docker run --name $container_name --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 -it --rm -v /data:/data -v ~:/srv/hosthome -it $container_name | ||
# user="-u 1000:1000" | ||
user="" | ||
volumes="-v /home/gagan/research:/host/research -v /srv:/host/srv" | ||
workdir="-w /host/research" | ||
ports="-p 8888:8888" | ||
gpus="--gpus all" | ||
docker_args="$volumes $ports $user $gpus $workdir --name $container_name --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 -it --rm" | ||
echo ">>>> Docker run jupyter lab with args: <<<<" | ||
echo "$docker_args" | ||
echo "" | ||
docker run $docker_args $container_name jupyter-lab | ||
# nvidia-docker run --name $container_name --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 -it --rm -v /data:/data -v ~:/srv/hosthome -it $container_name |
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,5 @@ | ||
#!/bin/bash | ||
container_name="$(cat container_name.txt)" | ||
echo "Container name: $container_name" | ||
# docker build . -t container_name | ||
# singularity build mcw_dev_img.sif Dockerfile |