Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
COBREXA.jl
Manage
Activity
Members
Plan
External wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LCSB-BioCore
COBREXA.jl
Commits
7a4e5ee1
Commit
7a4e5ee1
authored
3 years ago
by
Miroslav Kratochvil
Browse files
Options
Downloads
Patches
Plain Diff
migrate to a better container
parent
3b83f968
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/apptainer.yml
+11
-36
11 additions, 36 deletions
.github/workflows/apptainer.yml
with
11 additions
and
36 deletions
.github/workflows/apptainer.yml
+
11
−
36
View file @
7a4e5ee1
...
...
@@ -7,49 +7,24 @@ on:
jobs
:
build
:
name
:
build
runs-on
:
ubuntu-18.04
strategy
:
matrix
:
singularity_version
:
-
'
3.5.3'
runs-on
:
ubuntu-20.04
container
:
image
:
quay.io/singularity/singularity:v${{ matrix.singularity_version }}
image
:
sysmso/singularity-ci
options
:
--privileged
steps
:
-
name
:
C
heck out code
for the container build
-
name
:
c
heck out code
uses
:
actions/checkout@v1
-
name
:
B
uild
Container
-
name
:
b
uild
.sif file
run
:
|
ls
alias apptainer=singularity
apptainer build cobrexa.sif cobrexa.def
deploy
:
runs-on
:
ubuntu-18.04
strategy
:
matrix
:
singularity_version
:
-
'
3.5.3'
container
:
image
:
quay.io/singularity/singularity:v${{ matrix.singularity_version }}
options
:
--privileged
steps
:
-
name
:
Install sregistry dependencies
-
name
:
push to registry
env
:
SYLABS_IO_TOKEN
:
${{ secrets.SYLABS_IO_TOKEN }}
run
:
|
sudo apt-get update && sudo apt-get install -y \
build-essential \
libssl-dev \
uuid-dev \
libgpgme11-dev \
squashfs-tools \
libseccomp-dev \
pkg-config \
python-dev python python3-pip
-
name
:
Deploy Container
run
:
|
sudo pip3 install sregistry
alias aregistry=sregistry
SREGISTRY_CLIENT=registry aregistry push --name cylon-x/lcsb-biocore cobrexa.sif
alias apptainer=singularity
echo "$SREGISTRY_TOKEN" > apptainer-token
apptainer remote login --tokenfile apptainer-token
apptainer push cobrexa.sif library://cylon-x/lcsb-biocore/cobrexa:latest
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment