Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FWCC
Slurm in Docker
Commits
dc08375c
Commit
dc08375c
authored
Dec 16, 2019
by
Pape, David (FWCC) - 139658
Browse files
Adding develop tag.
parent
07551e07
Pipeline
#19762
passed with stage
in 5 minutes and 8 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
dc08375c
image
:
docker:latest
services
:
-
docker:dind
before_script
:
-
apk add make
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.hzdr.de
test_build
:
stage
:
test
except
:
-
master
only
:
-
develop
tags
:
-
dind
before_script
:
-
apk add make
script
:
-
make build
-
make build CONTAINER_TAG=develop
-
make push CONTAINER_TAG=develop
build_and_push
:
stage
:
deploy
...
...
@@ -20,9 +26,7 @@ build_and_push:
-
schedules
tags
:
-
dind
before_script
:
-
apk add make
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.hzdr.de
script
:
-
make build
-
make push
Dockerfile
View file @
dc08375c
FROM
fedora:latest
RUN
dnf upgrade
-y
&&
\
dnf
install
-y
\
RUN
dnf upgrade
-y
RUN
dnf
install
-y
\
nano
hostname
hwloc procps-ng wget which tree
\
cmake make gcc g
++
gfortran openmpi pkgconf lcov
\
cmake make gcc g
cc-c++ gcc-
gfortran openmpi pkgconf lcov
\
munge munge-devel
\
slurm slurm-slurmctld slurm-slurmd
\
libconfig-devel spdlog-devel doxygen graphviz python
...
...
Makefile
View file @
dc08375c
CONTAINER_NAME
=
registry.hzdr.de/pape58/slurm-in-docker
CONTAINER_TAGS
=
latest fedora-latest
CONTAINER
=
$(CONTAINER_NAME)
:
$(
firstword
$(CONTAINER_TAGS)
)
CONTAINER_LIST
=
$(
foreach
tag,
$(CONTAINER_TAGS)
,
$(CONTAINER_NAME)
:
$(tag)
)
CONTAINER_TAG
=
latest
CONTAINER
=
$(CONTAINER_NAME)
:
$(CONTAINER_TAG)
.PHONY
:
build push run
build
:
Dockerfile docker-entrypoint.sh
docker build
$(
foreach
c,
$(CONTAINER_LIST)
,-t
$(c)
)
.
docker build
-t
$(CONTAINER
)
.
push
:
build
docker push
$(CONTAINER
_LIST
)
docker push
$(CONTAINER)
run
:
build
docker run
-ti
--rm
$(CONTAINER)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment