Skip to content

Commit

Permalink
adjust devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
zerotacg committed Jan 29, 2024
1 parent b147857 commit d11b716
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
FROM ubuntu:22.04

RUN apt update;\
apt install --yes software-properties-common; \
apt update
RUN DEBIAN_FRONTEND=noninteractive apt install --yes \
RUN apt update; \
DEBIAN_FRONTEND=noninteractive \
apt install --yes \
autoconf \
automake \
bison \
Expand Down Expand Up @@ -57,17 +56,18 @@ RUN apt install --yes \
# work arround as there is no debug version available
RUN cp /lib/x86_64-linux-gnu/libcpptest.so /lib/x86_64-linux-gnu/libcpptestd.so

RUN wget --output-document=/tmp/cmake.sh https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh \
&& mkdir --parents "$CMAKE_INSTALL_DIR" \
&& sh /tmp/cmake.sh --skip-license --prefix="$CMAKE_INSTALL_DIR" \
&& ln --symbolic --force "$CMAKE_INSTALL_DIR/bin/cmake" /usr/local/bin/cmake

ARG CMAKE_VERSION=3.27.9
ARG CMAKE_INSTALL_DIR=/opt/cmake-$CMAKE_VERSION
ARG USERNAME=ryzom
ARG USER_UID=1000
ARG USER_GID=$USER_UID

RUN wget --output-document=/tmp/cmake.sh https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh \
&& mkdir --parents "$CMAKE_INSTALL_DIR" \
&& sh /tmp/cmake.sh --skip-license --prefix="$CMAKE_INSTALL_DIR" \
&& ln --symbolic --force "$CMAKE_INSTALL_DIR/bin/cmake" /usr/local/bin/cmake

RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
&& apt-get update \
Expand Down

0 comments on commit d11b716

Please sign in to comment.