Skip to content

Commit

Permalink
docker: multi-stage build is missing libintern
Browse files Browse the repository at this point in the history
Problem: flux added libintern for string parsing, and it
is not present in the multi-stage build image ubuntu:jammy.
Solution: instead of trying to build it, it is easier to use
the flux-sched jammy image again.

Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Oct 10, 2024
1 parent 86e9d66 commit 566b4e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fluxnetes_scheduler=$(kubectl get pods --selector=job-name=job -o json | jq -r .

echo
echo "Fluxnetes job pod is ${fluxnetes_job_pod}"
sleep 20
sleep 30

# Shared function to check output
function check_output {
Expand Down
14 changes: 3 additions & 11 deletions src/build/scheduler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,11 @@ RUN go mod tidy && \
make server FLUX_SCHED_ROOT=/opt/flux-sched

# minimize build!
FROM ubuntu:jammy
FROM fluxrm/flux-sched:jammy
COPY --from=builder /go/src/fluxnetes/bin/server /bin/fluxion-service
COPY --from=builder /usr/lib/flux/ /usr/lib/flux
COPY --from=builder /usr/lib/libflux* /usr/lib/

RUN apt-get update && apt-get -qq install -y --no-install-recommends \
libboost-graph-dev \
libboost-system-dev \
libboost-filesystem-dev \
libboost-regex-dev \
libyaml-cpp-dev \
libjansson-dev \
hwloc && \
apt-get clean && \
mkdir -p /home/data/jobspecs /home/data/jgf && chmod -R ugo+rwx /home/data
USER root
RUN mkdir -p /home/data/jobspecs /home/data/jgf && chmod -R ugo+rwx /home/data
ENV LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/lib/flux

0 comments on commit 566b4e8

Please sign in to comment.