Skip to content

Commit

Permalink
fix: devcontainer to use bookworm and install cmake
Browse files Browse the repository at this point in the history
Problem: the current development environment (VSCode
Development Container) is not using the latest base (bookworm)
and is missing dependencies python3-yaml and an updated cmake
and ninja for building.
Solution: Update Dockerfile to use flux-core bookworm and add
missing dependencies!

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Sep 8, 2023
1 parent cc781dd commit d905421
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM fluxrm/flux-core:focal
FROM fluxrm/flux-core:bookworm

LABEL maintainer="Vanessasaurus <@vsoch>"

Expand All @@ -10,7 +10,6 @@ ENV USERNAME=${USERNAME}
ENV USER_UID=${USER_UID}
ENV USER_GID=${USER_GID}
USER root
RUN apt-get update

# Install extra buildrequires for flux-sched:
RUN sudo apt-get update
Expand All @@ -19,13 +18,19 @@ RUN sudo apt-get -qq install -y --no-install-recommends \
libboost-system-dev \
libboost-filesystem-dev \
libboost-regex-dev \
python-yaml \
python3-yaml \
libyaml-cpp-dev \
libedit-dev
libedit-dev \
ninja-build \
curl

# Assuming installing to /usr/local
ENV LD_LIBRARY_PATH=/usr/local/lib

RUN curl -s -L https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-linux-$(uname -m).sh > cmake.sh ;\
sudo bash cmake.sh --prefix=/usr/local --skip-license ;\
rm cmake.sh

# Install Go 19 for TBA bindings (if Go bindings desired)
RUN wget https://go.dev/dl/go1.19.10.linux-amd64.tar.gz && tar -xvf go1.19.10.linux-amd64.tar.gz && \
mv go /usr/local && rm go1.19.10.linux-amd64.tar.gz
Expand Down

0 comments on commit d905421

Please sign in to comment.