Skip to content

Commit

Permalink
Bump pandoc version
Browse files Browse the repository at this point in the history
  • Loading branch information
BerriJ committed Aug 2, 2024
1 parent c25cf09 commit 0862a06
Showing 1 changed file with 77 additions and 77 deletions.
154 changes: 77 additions & 77 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ubuntu:jammy@sha256:19478ce7fc2ffbce89df29fea5725a8d12e57de52eb9ea570890dc5
SHELL ["/bin/bash", "-c"]

ENV DISPLAY=:0 \
TZ=Europe/Berlin
TZ=Europe/Berlin

ARG USERNAME=vscode
ARG USER_UID=1000
Expand All @@ -12,54 +12,54 @@ ARG DEBIAN_FRONTEND=noninteractive

# Add non root user
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd -rm -d /home/$USERNAME -s /bin/bash -g root --uid $USER_UID --gid $USER_GID $USERNAME \
&& addgroup $USERNAME staff
&& useradd -rm -d /home/$USERNAME -s /bin/bash -g root --uid $USER_UID --gid $USER_GID $USERNAME \
&& addgroup $USERNAME staff

# Create folders to mount extensions
RUN mkdir -p /home/$USERNAME/.vscode-server/extensions \
/home/$USERNAME/.vscode-server-insiders/extensions \
workspaces \
&& chown -R $USERNAME \
/home/$USERNAME/.vscode-server \
/home/$USERNAME/.vscode-server-insiders \
workspaces
/home/$USERNAME/.vscode-server-insiders/extensions \
workspaces \
&& chown -R $USERNAME \
/home/$USERNAME/.vscode-server \
/home/$USERNAME/.vscode-server-insiders \
workspaces

# Ubuntu Setup
RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections &&\
apt-get update &&\
apt-get -y --no-install-recommends install \
ca-certificates \
git \
build-essential \
cmake \
ninja-build \
ccache \
gfortran \
netbase \
zip \
unzip \
xclip \
zsh \
lftp \
gnupg2 \
nano \
gdb \
ssh-client \
fontconfig \
pkg-config \
default-libmysqlclient-dev \
ttf-mscorefonts-installer \
locales &&\
locale-gen en_US.UTF-8 &&\
locale-gen de_DE.UTF-8 &&\
update-locale LANG=en_US.UTF-8 &&\
git clone --depth=1 https://github.com/sindresorhus/pure.git /home/$USERNAME/.zsh/pure \
&& rm -rf /home/$USERNAME/.zsh/pure/.git \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
apt-get update &&\
apt-get -y --no-install-recommends install \
ca-certificates \
git \
build-essential \
cmake \
ninja-build \
ccache \
gfortran \
netbase \
zip \
unzip \
xclip \
zsh \
lftp \
gnupg2 \
nano \
gdb \
ssh-client \
fontconfig \
pkg-config \
default-libmysqlclient-dev \
ttf-mscorefonts-installer \
locales &&\
locale-gen en_US.UTF-8 &&\
locale-gen de_DE.UTF-8 &&\
update-locale LANG=en_US.UTF-8 &&\
git clone --depth=1 https://github.com/sindresorhus/pure.git /home/$USERNAME/.zsh/pure \
&& rm -rf /home/$USERNAME/.zsh/pure/.git \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

ENV LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8
LANG=en_US.UTF-8

# Font config
# "LM Roman 10", "Times New Roman" ... use `showtext` package in R
Expand All @@ -74,52 +74,52 @@ RUN fc-cache -f -v
ENV QUARTO_VERSION="1.4.551"
COPY install_scripts/install_quarto.sh /install_scripts/install_quarto.sh
RUN chmod +x install_scripts/install_quarto.sh &&\
install_scripts/install_quarto.sh
install_scripts/install_quarto.sh

RUN wget https://github.com/jgm/pandoc/releases/download/3.2.1/pandoc-3.2.1-1-amd64.deb &&\
dpkg -i pandoc-3.2.1-1-amd64.deb
RUN wget https://github.com/jgm/pandoc/releases/download/3.3/pandoc-3.3-1-amd64.deb &&\
dpkg -i pandoc-3.3-1-amd64.deb

# Install phantomjs
COPY install_scripts/install_phantomjs.sh /install_scripts/install_phantomjs.sh

RUN chmod +x install_scripts/install_phantomjs.sh &&\
install_scripts/install_phantomjs.sh
install_scripts/install_phantomjs.sh

# Install vcpkg C++ dependency manager
RUN git clone --depth=1 https://github.com/Microsoft/vcpkg --branch 2024.04.26 /usr/local/vcpkg \
&& rm -rf /usr/local/vcpkg/.git \
&& cd /usr/local/vcpkg \
&& ./bootstrap-vcpkg.sh \
&& ./vcpkg integrate install \
&& /usr/local/vcpkg/vcpkg install armadillo \
&& /usr/local/vcpkg/vcpkg install pybind11 \
&& chown --recursive $USERNAME:$USERNAME /usr/local/vcpkg
&& rm -rf /usr/local/vcpkg/.git \
&& cd /usr/local/vcpkg \
&& ./bootstrap-vcpkg.sh \
&& ./vcpkg integrate install \
&& /usr/local/vcpkg/vcpkg install armadillo \
&& /usr/local/vcpkg/vcpkg install pybind11 \
&& chown --recursive $USERNAME:$USERNAME /usr/local/vcpkg

ENV PATH="/usr/local/vcpkg:${PATH}"

# Install Python CARMA
RUN git clone --depth=1 https://github.com/RUrlus/carma.git /usr/local/carma \
&& rm -rf /usr/local/carma/.git \
&& cd /usr/local/carma \
&& mkdir build \
&& cd build \
&& cmake -DCARMA_INSTALL_LIB=ON .. \
&& cmake --build . --config Release --target install \
&& rm -rf /usr/local/carma
&& rm -rf /usr/local/carma/.git \
&& cd /usr/local/carma \
&& mkdir build \
&& cd build \
&& cmake -DCARMA_INSTALL_LIB=ON .. \
&& cmake --build . --config Release --target install \
&& rm -rf /usr/local/carma

# Install Python
COPY package_lists/python_packages.txt /package_lists/python_packages.txt

RUN apt-get update &&\
apt-get -y --no-install-recommends install \
python3-pip \
python3-dev \
python3-venv && \
# Python packages
pip3 install -U --no-cache-dir \
$(grep -o '^[^#]*' package_lists/python_packages.txt | tr '\n' ' ') \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
apt-get -y --no-install-recommends install \
python3-pip \
python3-dev \
python3-venv && \
# Python packages
pip3 install -U --no-cache-dir \
$(grep -o '^[^#]*' package_lists/python_packages.txt | tr '\n' ' ') \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

# Set PATH for user installed python packages
ENV PATH="/home/vscode/.local/bin:${PATH}"
Expand All @@ -129,14 +129,14 @@ COPY install_scripts/install_latex.sh /install_scripts/install_latex.sh
COPY package_lists/latex_packages.txt /package_lists/latex_packages.txt

RUN chmod +x install_scripts/install_latex.sh &&\
install_scripts/install_latex.sh \
&& export PATH="/usr/local/texlive/bin/x86_64-linux:${PATH}" \
&& tlmgr option -- autobackup 0 \
&& tlmgr option -- docfiles 0 \
&& tlmgr option -- srcfiles 0 \
&& tlmgr install \
$(grep -o '^[^#]*' package_lists/latex_packages.txt | tr '\n' ' ') \
&& chown --recursive $USERNAME:$USERNAME /usr/local/texlive
install_scripts/install_latex.sh \
&& export PATH="/usr/local/texlive/bin/x86_64-linux:${PATH}" \
&& tlmgr option -- autobackup 0 \
&& tlmgr option -- docfiles 0 \
&& tlmgr option -- srcfiles 0 \
&& tlmgr install \
$(grep -o '^[^#]*' package_lists/latex_packages.txt | tr '\n' ' ') \
&& chown --recursive $USERNAME:$USERNAME /usr/local/texlive

# Set Latex Path
ENV PATH="/usr/local/texlive/bin/x86_64-linux:${PATH}"
Expand All @@ -153,7 +153,7 @@ COPY package_lists/r_packages.txt /package_lists/r_packages.txt
COPY package_lists/r_packages_github.txt /package_lists/r_packages_github.txt

RUN chmod +x install_scripts/install_r.sh &&\
install_scripts/install_r.sh
install_scripts/install_r.sh

COPY --chown=$USERNAME .misc/.zshrc /home/$USERNAME/.

Expand Down

0 comments on commit 0862a06

Please sign in to comment.