Commit dc08375c authored by Pape, David (FWCC) - 139658's avatar Pape, David (FWCC) - 139658
Browse files

Adding develop tag.

parent 07551e07
Pipeline #19762 passed with stage
in 5 minutes and 8 seconds
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
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 gcc-c++ gcc-gfortran openmpi pkgconf lcov \
munge munge-devel \
slurm slurm-slurmctld slurm-slurmd \
libconfig-devel spdlog-devel doxygen graphviz python
......
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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment