Skip to content

Commit

Permalink
Update Apptainer build to pull git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinchuk committed Jan 2, 2024
1 parent 078e5df commit 0a3c465
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/apptainer-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:
include:
- os: ubuntu-latest
artifact_name: gaps.sif
asset_name: gaps-linux-amd64
body: GAPs Apptainer Image (ubuntu-latest)
asset_name: gaps-linux-amd64.sif
# - os: windows-latest
# artifact_name: mything.exe
# asset_name: mything-windows-amd64
Expand Down Expand Up @@ -51,4 +50,3 @@ jobs:
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
overwrite: true
body: ${{ matrix.body }}
8 changes: 6 additions & 2 deletions Apptainer
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ From: python:3.11
%post
echo "Installing vim"
apt-get update && apt-get -y upgrade
apt-get -y --allow-unauthenticated install vim
apt-get -y --allow-unauthenticated install vim git wget nano make

echo "Downloading GAPs"
git clone https://github.com/NREL/gaps.git

echo "Installing GAPs..."
pip install NREL-gaps
cd gaps
pip install -e .

%runscript
"$@"

0 comments on commit 0a3c465

Please sign in to comment.