Revision dd15bbee944583c24e7502e8f8895631d41568e4 authored by Vincent Chabannes on 05 March 2021, 16:16:54 UTC, committed by Vincent Chabannes on 05 March 2021, 16:16:54 UTC
1 parent 13eeda5
Raw File
Dockerfile
FROM ubuntu:focal

# Avoid warnings by switching to noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
# property in devcontainer.json to use it. On Linux  the container user's GID/UIDs
# will be updated to match your local UID/GID (when using the dockerFile property).
# See https://aka.ms/vscode-remote/containers/non-root-user for details.
ARG USERNAME=vscode
ARG USER_UID=1001
ARG USER_GID=$USER_UID


# Configure apt and install packages
RUN apt-get update \
    && apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
    # \
    # Verify git  process tools  lsb-release (useful for CLI installs) installed\
    && apt-get -y install git iproute2 procps lsb-release \
    #\
    # Install C++ tools\
    && apt-get -y install build-essential npm rsync \
    && apt-get -y install cmake \
           clang-9 g++-8 python3  python3-dev  python3-setuptools  python3-sympy \
	       libboost1.67-all-dev  libcln-dev  petsc-dev  slepc-dev  \
           libhdf5-openmpi-dev  libnlopt-dev  libgsl-dev  libnetcdf-dev  libgl2ps-dev  \
           libglu1-mesa-dev  libsm-dev  libxt-dev  libfftw3-mpi-dev  libxml2-dev  libgmsh-dev  gmsh  \
	       bison flex  doxygen  doxygen-latex  transfig imagemagick  libtbb-dev \
	       libann-dev  libglpk-dev libbz2-dev libbson-dev libmongoc-dev mongodb-clients mongodb-server \          
           libmongoclient-dev  python-pymongo ruby-progressbar ruby-tilt  asciidoctor ruby-asciidoctor-pdf \
           libglew-dev \
    #\
    # Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.\
    && groupadd --gid $USER_GID $USERNAME \
    && useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \
    # [Optional] Add sudo support for the non-root user
    && apt-get install -y sudo \
    && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\
    && chmod 0440 /etc/sudoers.d/$USERNAME \
    #
    # Clean up
    && apt-get autoremove -y \
    && apt-get clean -y \
    && rm -rf /var/lib/apt/lists/*

# Switch back to dialog for any ad-hoc use of apt-get
ENV DEBIAN_FRONTEND=dialog

RUN npm i -g @antora/cli@2.2 @antora/site-generator-default@2.2; 
back to top