Skip to content

Commit 7a7478e

Browse files
committed
Updated .gitignore, added build script
1 parent 9b4ac06 commit 7a7478e

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

apptainer/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.img
2-
*.sif
2+
*.sif
3+
*image.tar

apptainer/run_apptainer.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env bash
22

3+
source ../.env
4+
5+
echo "Showing existing environment"
6+
env
7+
38
./dev_apptainer.sh
49

510
if [ ! -e "mongodb.sif" ]; then
@@ -55,4 +60,4 @@ if [ "$PROFILE" == "development" ]; then
5560
fi
5661

5762
# Inform user that containers are running
58-
echo "All containers are running"
63+
echo "All containers are running"

build-sifs.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#docker compose up --build
2+
3+
#docker compose down
4+
5+
docker save -o apptainer/api_image.tar ezbids-api
6+
docker save -o apptainer/handler_image.tar ezbids-handler
7+
docker save -o apptainer/ui_image.tar ezbids-ui
8+
9+
cd apptainer/
10+
11+
apptainer build api.sif docker-archive:api_image.tar
12+
apptainer build handler.sif docker-archive:handler_image.tar
13+
apptainer build ui.sif docker-archive:ui_image.tar
14+

0 commit comments

Comments
 (0)