-
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.
Merge pull request #3 from biosimulators/main
feat: merge second version changes
- Loading branch information
Showing
10 changed files
with
102 additions
and
38 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 |
---|---|---|
|
@@ -19,3 +19,4 @@ __pycache__ | |
submit-biosimulators-container.sh | ||
.vagrant | ||
._vagrant | ||
.THIS-IS-FOR-CONTAINER-DEV-ONLY |
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
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,16 @@ | ||
#!/bin/bash | ||
|
||
version="$1" | ||
|
||
set -e | ||
|
||
if [ "${version}" == "" ]; then | ||
echo "Please enter the version you would like to build as a runtime arg. Exiting." | ||
exit 1 | ||
fi | ||
|
||
yes | docker system prune | ||
docker buildx create --name biosimbuilder --use | ||
docker buildx inspect --bootstrap | ||
docker buildx build --platform linux/amd64 \ | ||
-t ghcr.io/biosimulators/biosimulator-processes:"${version}" . |
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,34 @@ | ||
#!/bin/bash | ||
|
||
|
||
version="$1" | ||
|
||
run="$2" | ||
|
||
if [ "${version}" == "" ]; then | ||
echo "You must pass the container version you wish to run as an argument to this script. Exiting." | ||
exit 1 | ||
fi | ||
|
||
|
||
if [ "${version}" == "${current}" ]; then | ||
echo "This version already exists on GHCR. Exiting." | ||
exit 1 | ||
fi | ||
|
||
echo "Enter your Github User-Name: " | ||
read -r usr_name | ||
|
||
if docker login ghcr.io -u "${usr_name}"; then | ||
echo "Successfully logged in to GHCR!" | ||
else | ||
echo "Could not validate credentials." | ||
exit 1 | ||
fi | ||
|
||
./scripts/build-container.sh "${version}" \ | ||
&& ./scripts/release-container.sh "${version}" \ | ||
|
||
if [ "${run}" == "-r" ]; then | ||
./scripts/run-container.sh "${version}" | ||
fi |
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,38 @@ | ||
#!/bin/bash | ||
|
||
|
||
version="$1" | ||
|
||
# PLEASE UPDATE THE LATEST VERSION HERE BEFORE RUNNING. CURRENT: 0.0.2 | ||
current="0.0.2" | ||
|
||
set -e | ||
|
||
if [ "${version}" == "" ]; then | ||
echo "You must pass the container version you wish to release as an argument to this script. Exiting." | ||
exit 1 | ||
fi | ||
|
||
if [ "${version}" == "${current}" ]; then | ||
echo "This version already exists on GHCR. Exiting." | ||
exit 1 | ||
fi | ||
|
||
echo "Enter your Github User-Name: " | ||
read -r usr_name | ||
|
||
if docker login ghcr.io -u "${usr_name}"; then | ||
echo "Successfully logged in to GHCR!" | ||
else | ||
echo "Could not validate credentials." | ||
exit 1 | ||
fi | ||
|
||
yes | docker system prune | ||
docker buildx create --name biosimbuilder --use | ||
docker buildx inspect --bootstrap | ||
docker buildx build --platform linux/amd64 \ | ||
-t ghcr.io/biosimulators/biosimulator-processes:"${version}" . \ | ||
--push | ||
docker tag ghcr.io/biosimulators/biosimulator-processes:"${version}" ghcr.io/biosimulators/biosimulator-processes:latest | ||
docker push ghcr.io/biosimulators/biosimulator-processes:latest |
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,10 @@ | ||
#!/bin/bash | ||
|
||
version="$1" | ||
|
||
if [ "${version}" == "" ]; then | ||
echo "Please enter the version you would like to run as a runtime arg. Exiting." | ||
exit 1 | ||
fi | ||
|
||
docker run --platform linux/amd64 -it -p 8888:8888 ghcr.io/biosimulators/biosimulator-processes:"${version}" |
This file was deleted.
Oops, something went wrong.