Skip to content

Commit 18fcbb0

Browse files
authored
Merge pull request #24 from WEHI-ResearchComputing/docker-recurse
Fix container dependencies
2 parents da5fc1f + 1fdcf2d commit 18fcbb0

3 files changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/singularity.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ jobs:
4949
5050
- name: Login and Deploy Container
5151
if: (github.event_name != 'pull_request')
52-
run: |
53-
if [[ "${keepgoing}" == "true" ]]; then
54-
echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ secrets.GHCR_USERNAME }} --password-stdin oras://ghcr.io
55-
container_name=$(echo ${GITHUB_REPOSITORY} | tr '[:upper:]' '[:lower:]')
56-
singularity push container.sif oras://ghcr.io/${container_name}:${tag}
57-
fi
52+
run: |
53+
echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ secrets.GHCR_USERNAME }} --password-stdin oras://ghcr.io
54+
container_name=$(echo ${GITHUB_REPOSITORY} | tr '[:upper:]' '[:lower:]')
55+
singularity push container.sif oras://ghcr.io/${container_name}:${tag}

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ FROM python:3.9.19-slim-bookworm
33
COPY pyproject.toml /opt/PartiNet/pyproject.toml
44
COPY partinet /opt/PartiNet/partinet
55

6+
RUN apt-get update && apt-get install libglib2.0-0 libxext6 libx11-6 -y && rm -rf /var/cache/apt/archives /var/lib/apt/lists/* && apt-get clean
67
RUN python -m pip install --no-cache-dir --no-cache /opt/PartiNet
78

89
LABEL AUTHORS Mihin Perera, Edward Yang, Julie Iskander
910
LABEL MAINTAINERS Mihin Perera, Edward Yang, Julie Iskander
10-
LABEL VERSION v0.0.01
11+
LABEL VERSION v0.1.1

Singularity

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@ from: python:3.9.19-slim-bookworm
55
. /opt/PartiNet
66

77
%post
8+
# install system dependencies
9+
apt-get update
10+
apt-get install libglib2.0-0 libxext6 libx11-6 -y
11+
12+
# cleanup apt package index
13+
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
14+
apt-get clean
15+
816
python -m pip install --no-cache-dir /opt/PartiNet
917

1018
%labels
1119
AUTHORS Mihin Perera, Edward Yang, Julie Iskander
1220
MAINTAINERS Mihin Perera, Edward Yang, Julie Iskander
13-
VERSION v0.0.01
21+
VERSION v0.1.1

0 commit comments

Comments
 (0)