Skip to content

Commit

Permalink
Add platform specification to all stages of docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Nov 22, 2024
1 parent b409480 commit f09b396
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG QUEUE_SYSTEM=slurm
ARG USERNAME=jobflow

# Install jobflow-remote in its own layer with uv
FROM ubuntu:22.04 as jobflow-remote-install
FROM --platform=linux/amd64 ubuntu:22.04 as jobflow-remote-install

ARG USERNAME=jobflow
ENV USERNAME=${USERNAME}
Expand Down Expand Up @@ -41,13 +41,13 @@ RUN uv venv /home/${USERNAME}/.venv && \
# the jobflow user's permissions.

# -== SLURM ==-
FROM nathanhess/slurm:full AS slurm
FROM --platform=linux/amd64 nathanhess/slurm:full AS slurm
USER root
COPY ./tests/integration/dockerfiles/slurm_startup.sh /etc/startup.sh
HEALTHCHECK CMD sinfo || exit 1

# -== SGE ==-
FROM ubuntu:22.04 as sge
FROM --platform=linux/amd64 ubuntu:22.04 as sge

ARG USERNAME=jobflow
ENV USERNAME=${USERNAME}
Expand Down Expand Up @@ -112,7 +112,7 @@ RUN echo "export SGE_ROOT=/opt/sge" >> /etc/profile && \
#HEALTHCHECK CMD qstat -f || exit 1

# 2) Add common options from ubuntu server
FROM ${QUEUE_SYSTEM} as jobflow
FROM --platform=linux/amd64 ${QUEUE_SYSTEM} as jobflow

ARG USERNAME=jobflow
ENV USERNAME=${USERNAME}
Expand Down

0 comments on commit f09b396

Please sign in to comment.