-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated pytorch and some other packages on top of image with cuda <= …
…2.12
- Loading branch information
andersla
committed
Oct 15, 2024
1 parent
bb6d6ef
commit 29ed706
Showing
4 changed files
with
32 additions
and
12 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,26 @@ | ||
#!/bin/bash | ||
#set -xv | ||
|
||
git_branch="$(git branch --show-current)" | ||
tag=$git_branch | ||
tensorflow_version="${git_branch#tf-}" # remove prefix | ||
tensorflow_version="${tensorflow_version%-*}" # remove suffix | ||
image="pharmbio-notebook" | ||
echo "tensorflow_version=$tensorflow_version" | ||
echo "tag=$tag" | ||
echo "image=$image" | ||
|
||
## CPU version | ||
DOCKER_BUILDKIT=1 docker buildx build --no-cache -t ghcr.io/pharmbio/$image:${tag} \ | ||
--build-arg BASE_IMAGE=tensorflow/tensorflow:${tensorflow_version}-jupyter \ | ||
-f docker/env.cuda.Dockerfile . || exit 1 | ||
|
||
docker push "ghcr.io/pharmbio/$image:${tag}" | ||
|
||
# GPU version | ||
DOCKER_BUILDKIT=1 docker buildx build -t ghcr.io/pharmbio/$image:${tag}-gpu \ | ||
--build-arg BASE_IMAGE=tensorflow/tensorflow:${tensorflow_version}-gpu-jupyter \ | ||
-f docker/env.cuda.Dockerfile . || exit 1 | ||
|
||
echo docker push "ghcr.io/pharmbio/$image:${tag}-gpu" | ||
|
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 |
---|---|---|
|
@@ -29,3 +29,4 @@ fastparquet | |
#umap-learn | ||
#torchsummary | ||
scanpy | ||
jupyterlab |