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

Adding run rule to Makefile. Minor changes to docker-entrypoint.sh.

parent 511a2170
Pipeline #19686 passed with stage
in 5 minutes and 57 seconds
......@@ -2,10 +2,13 @@ CONTAINER_NAME = registry.hzdr.de/pape58/slurm-in-docker
CONTAINER_TAG = fedora-31
CONTAINER = ${CONTAINER_NAME}:${CONTAINER_TAG}
.PHONY: build push
.PHONY: build push run
build: Dockerfile docker-entrypoint.sh
docker build -t ${CONTAINER} .
push: build
docker push ${CONTAINER}
run: build
docker run -ti --rm ${CONTAINER}
......@@ -16,10 +16,10 @@ _slurm_setup() {
#
SlurmctldHost=$(hostname -s)
AuthType=auth/munge # auth_none.so not available on Fedora
AuthType=auth/munge # auth_none.so not available on Fedora
EnforcePartLimits=NO
MpiDefault=pmix
ProctrackType=proctrack/pgid
ProctrackType=proctrack/pgid # setup with cgroups possible in container?
ReturnToService=0
SlurmctldPidFile=/var/run/slurm/slurmctld.pid
SlurmctldPort=6817
......@@ -47,20 +47,20 @@ SelectType=select/linear
# JOB PRIORITY
# TODO: Cleanup needed when setting up slurmdbd.
# LOGGING AND ACCOUNTING
AccountingStorageType=accounting_storage/none
AccountingStoreJobComment=YES
ClusterName=myhpc # TODO: Think of something better?
ClusterName=sid # sid = Slurm in Docker
JobCompType=jobcomp/none
JobAcctGatherFrequency=30
JobAcctGatherType=jobacct_gather/none
SlurmctldDebug=3
SlurmdDebug=3
MailProg=/bin/true
MailProg=/bin/true # so the daemons don't complain
# COMPUTE NODES
NodeName=$(hostname -s) CPUs=$(nproc) State=UNKNOWN
PartitionName=docker Nodes=$(hostname -s) Default=YES MaxTime=INFINITE State=UP
PartitionName=sidp Nodes=$(hostname -s) Default=YES MaxTime=INFINITE State=UP
EOF
slurmctld
......
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