Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OrcaSong
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Machine Learning
OrcaSong
Commits
b2be55b9
Commit
b2be55b9
authored
5 years ago
by
Stefan Reck
Browse files
Options
Downloads
Patches
Plain Diff
Added singularity support
also added shameful cov badge
parent
e7ba86a2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+45
-9
45 additions, 9 deletions
.gitlab-ci.yml
Dockerfile
+1
-0
1 addition, 0 deletions
Dockerfile
Readme.rst
+3
-0
3 additions, 0 deletions
Readme.rst
Singularity
+2
-12
2 additions, 12 deletions
Singularity
with
51 additions
and
21 deletions
.gitlab-ci.yml
+
45
−
9
View file @
b2be55b9
...
...
@@ -5,6 +5,7 @@ variables:
CONTAINER_TEST_IMAGE
:
docker.km3net.de/test/orcasong:$CI_COMMIT_REF_SLUG
CONTAINER_RELEASE_IMAGE
:
docker.km3net.de/orcasong:$CI_COMMIT_TAG
CONTAINER_LATEST_IMAGE
:
docker.km3net.de/orcasong:latest
SINGULARITY_IMAGE
:
orcasong.sif
stages
:
...
...
@@ -13,6 +14,8 @@ stages:
-
doc
-
docker
-
release
-
build-singularity
-
upload-singularity
cache
:
...
...
@@ -91,15 +94,15 @@ docker:
pypi
:
image
:
docker.km3net.de/base/python:3.6
stage
:
release
cache
:
{}
script
:
-
pip install -U twine
-
python setup.py sdist
-
twine upload dist/*
only
:
-
tags
image
:
docker.km3net.de/base/python:3.6
stage
:
release
cache
:
{}
script
:
-
pip install -U twine
-
python setup.py sdist
-
twine upload dist/*
only
:
-
tags
release-image
:
...
...
@@ -117,3 +120,36 @@ release-image:
-
docker
only
:
-
tags
build-singularity
:
image
:
docker.km3net.de/base/singularity:3.1
stage
:
build-singularity
script
:
-
singularity --version
-
singularity build $SINGULARITY_IMAGE Singularity
artifacts
:
paths
:
-
$SINGULARITY_IMAGE
expire_in
:
10 days
tags
:
-
docker
only
:
-
tags
upload-singularity
:
image
:
ubuntu:latest
stage
:
upload-singularity
before_script
:
-
apt-get update -qy
-
apt-get install -y lftp
script
:
-
mkdir -p ~/.ssh/
-
touch ~/.ssh/known_hosts
-
ssh-keyscan -H $KM3NET_SFTP_HOST >> ~/.ssh/known_hosts
-
lftp -u $KM3NET_SFTP_USER,$KM3NET_SFTP_PASSWORD sftp://$KM3NET_SFTP_HOST -e "set ssl:verify-certificate no; cd singularity/; put $SINGULARITY_IMAGE; bye"
dependencies
:
-
build-singularity
only
:
-
tags
This diff is collapsed.
Click to expand it.
Dockerfile
+
1
−
0
View file @
b2be55b9
...
...
@@ -3,5 +3,6 @@ FROM python:3.6
ENV
INSTALL_DIR /orcasong
ADD
. $INSTALL_DIR
RUN
cd
$INSTALL_DIR
&&
make
install
RUN
echo
"ORCASONG
\n
"
WORKDIR
/orcasong
ENTRYPOINT
/bin/bash
This diff is collapsed.
Click to expand it.
Readme.rst
+
3
−
0
View file @
b2be55b9
...
...
@@ -7,6 +7,9 @@ OrcaSong: Generating DL images from KM3NeT data
.. image:: https://examples.pages.km3net.de/km3badges/docs-latest-brightgreen.svg
:target: https://ml.pages.km3net.de/OrcaSong
.. image:: https://git.km3net.de/ml/OrcaSong/badges/master/coverage.svg
:target: https://ml.pages.km3net.de/OrcaSong/coverage
.. image:: https://api.codacy.com/project/badge/Grade/1591b2d2d20e4c06a66cad99dc6aebe3
:alt: Codacy Badge
:target: https://www.codacy.com/app/sreck/OrcaSong?utm_source=github.com&utm_medium=referral&utm_content=StefReck/OrcaSong&utm_campaign=Badge_Grade
...
...
This diff is collapsed.
Click to expand it.
Singularity
+
2
−
12
View file @
b2be55b9
# sudo singularity build orcasong.simg Singularity
Bootstrap: docker
From: python:3.6
%files
. /orcasong
%post
cd /orcasong && make install
From: docker.km3net.de/orcasong:latest
%runscript
exec /bin/bash "$@"
%startscript
exec /bin/bash "$@"
exec "$@"
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