Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 28 additions & 34 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,28 @@
FROM mcr.microsoft.com/devcontainers/cpp:dev-ubuntu-22.04

ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE="none"

# Optionally install the cmake for vcpkg
COPY ./reinstall-cmake.sh /tmp/

RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \
chmod +x /tmp/reinstall-cmake.sh && /tmp/reinstall-cmake.sh ${REINSTALL_CMAKE_VERSION_FROM_SOURCE}; \
fi \
&& rm -f /tmp/reinstall-cmake.sh

RUN sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list \
&& apt -y update \
&& apt install -y --no-install-recommends \
software-properties-common \
subversion \
&& add-apt-repository --enable-source --yes "ppa:marutter/rrutter4.0" \
&& wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc \
&& apt -y build-dep r-base-dev \
&& apt -y install r-base-dev \
&& Rscript -e "install.packages('languageserver', repos='https://cran.rstudio.com')" \
&& Rscript -e "install.packages('httpgd', repos='https://cran.rstudio.com')" \
&& rm -rf /var/lib/apt/lists/*

RUN apt install shellcheck
RUN apt install -y ccache
#RUN /usr/sbin/update-ccache-symlinks
#RUN echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a /home/vscode/.bashrc



ARG CONTAINER_VERSION
ENV CONTAINER_VERSION ${CONTAINER_VERSION}
FROM mcr.microsoft.com/devcontainers/cpp:dev-ubuntu-22.04

ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE="none"

# Optionally install the cmake for vcpkg
COPY ./reinstall-cmake.sh /tmp/

RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \
chmod +x /tmp/reinstall-cmake.sh && /tmp/reinstall-cmake.sh ${REINSTALL_CMAKE_VERSION_FROM_SOURCE}; \
fi \
&& rm -f /tmp/reinstall-cmake.sh

# software-properties-common installed for apt-add-repository
RUN sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list \
&& apt -y update \
&& apt install -y --no-install-recommends \
software-properties-common \
subversion \
&& add-apt-repository --enable-source --yes "ppa:marutter/rrutter4.0" \
&& wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc \
&& apt -y build-dep r-base-dev \
&& apt -y install r-base-dev \
&& Rscript -e "install.packages(c('languageserver', 'httpgd'), \
repos = c(CRAN='https://cloud.r-project.org'))" \
&& rm -rf /var/lib/apt/lists/*

ARG CONTAINER_VERSION
ENV CONTAINER_VERSION ${CONTAINER_VERSION}