Skip to content

Commit

Permalink
updated Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Surax98 <[email protected]>
  • Loading branch information
Surax98 committed Aug 29, 2024
1 parent f508ad4 commit 37d0a3b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
16 changes: 7 additions & 9 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 as build-stage
FROM golang:1.22 as build-stage

WORKDIR /app

Expand All @@ -14,21 +14,21 @@ FROM ubuntu:22.04
ENV TIMEZONE=America/New_York

# Run system updates
RUN apt update && apt -y upgrade
RUN apt-get update && apt-get -y upgrade

# Set time zone
RUN ln -sn /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
&& echo ${TIMEZONE} > /etc/timezone \
&& apt -y install tzdata
&& apt-get -y install tzdata

# Set locale
RUN apt -y install locales \
RUN apt-get -y install locales \
&& locale-gen en_US.UTF-8 \
&& update-locale LANG=en_US.UTF-8 LC_MESSAGES=POSIX

# Install system packages
RUN DEBIAN_FRONTEND=noninteractive \
apt -y install munge \
apt-get -y install munge \
slurm-wlm

# Slurm configuration
Expand All @@ -46,11 +46,9 @@ COPY --from=build-stage /app/bin/slurm-sidecar /sidecar/slurm-sidecar

ENV SLURMCONFIGPATH=/root/SlurmConfig.yaml

COPY docker/SlurmConfig.yaml .

RUN apt update && apt install -y software-properties-common \
RUN apt-get update && apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:apptainer/ppa \
&& apt install -y apptainer
&& apt-get install -y apptainer

RUN mkdir -p /cvmfs/grid.cern.ch/etc/grid-security

Expand Down
7 changes: 4 additions & 3 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ services:
- 4000:4000
volumes:
- type: bind
source: ../examples/config
target: /etc/interlink
source: ../examples/config/SlurmConfig.yaml
target: /root/SlurmConfig.yaml
environment:
- SHARED_FS="true"
- SLURMCONFIGPATH=/root/SlurmConfig.yaml
- SHARED_FS=true
# healthcheck:
# test: ["CMD", "/check.sh"]
# interval: 10s
Expand Down

0 comments on commit 37d0a3b

Please sign in to comment.