-
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.
- Loading branch information
Saibo Geng
committed
Sep 25, 2023
1 parent
11f6770
commit 34f2010
Showing
2 changed files
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
USER_NAME="xxxxx" # find this by running `id -un` on HaaS | ||
USER_ID=123 # find this by running `id -u` on HaaS | ||
GROUP_NAME1="xxxxx" # find this by running `id -gn` on HaaS | ||
GROUP_ID1=123 # find this by running `id -g` on HaaS | ||
GROUP_NAME2="yyyyy" | ||
GROUP_ID2=456 | ||
# | ||
GITHUB_PERSONAL_TOKEN="xxxxx" | ||
WANDB_API_KEY="xxxxx" | ||
GITHUB_NAME="xxxxx" | ||
GITHUB_EMAIL="[email protected]" | ||
GITHUB_USERNAME="xxxxx" | ||
HF_API_KEY="xxxxx" |
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,9 @@ | ||
#!/bin/sh | ||
|
||
project="${1:-gcd}" # Use "llama" if no argument is provided | ||
tag="${2:-latest}" # Use "latest" if no tag argument is provided | ||
user="${3:-geng}" | ||
|
||
docker build -f docker/Dockerfile --build-arg USER_NAME=${user} --build-arg PROJECT_NAME=${project} -t ic-registry.epfl.ch/dlab/"${user}"/"${project}":"${tag}" --secret id=dot_env,src=docker/.env . | ||
|
||
#docker push ic-registry.epfl.ch/dlab/"${user}"/"${project}":"${tag}" |