Skip to content

Commit

Permalink
upgrade to ubuntu noble
Browse files Browse the repository at this point in the history
upgrade to Node v22 LTS
add conda-libmamba-solver archive library error workaround
pin to last miniconda release to avoid sqlite shared library not found error on gdal install
  • Loading branch information
twelch committed Dec 10, 2024
1 parent 493e2ba commit 8e33bc1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# github: seasketch/docker-gp-workspace
# docker: seasketch/geoprocessing-workspace
#----------------------------------- #
ARG VARIANT="jammy"
ARG VARIANT="noble"
FROM mcr.microsoft.com/devcontainers/base:${VARIANT}

# Switch to built-in non-root gp user with sudo capabilities
Expand All @@ -27,7 +27,7 @@ RUN sudo apt-get update && sudo apt-get -y upgrade \
&& sudo rm -rf /var/lib/apt/lists/*

# Install nvm to user directory - based on https://github.com/nvm-sh/nvm and https://github.com/nvm-sh/nvm/blob/master/Dockerfile
ENV NODE_VERSION v20.12.1
ENV NODE_VERSION v22.11.0
RUN mkdir -p /home/vscode/.nvm/
RUN chown vscode:vscode -R "$HOME/.nvm"
RUN echo 'export NVM_DIR="/home/vscode/.nvm"' >> "$HOME/.bashrc"
Expand Down
7 changes: 4 additions & 3 deletions installer/linux/amd64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
# Put installer in current user home directory, install to home directory, add to user bash config, and remove installer
mkdir -p ~/miniconda \
&& cd ~/miniconda \
&& wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& wget https://repo.anaconda.com/miniconda/Miniconda3-py312_24.7.1-0-Linux-x86_64.sh \
&& mkdir ~/.conda \
&& chmod 755 Miniconda3-latest-Linux-x86_64.sh \
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /home/vscode/miniconda3 \
&& chmod 755 Miniconda3-py312_24.7.1-0-Linux-x86_64.sh \
&& bash Miniconda3-py312_24.7.1-0-Linux-x86_64.sh -b -p /home/vscode/miniconda3 \
&& echo "Running $(conda --version)" && \
conda init bash && \
. /home/vscode/.bashrc && \
conda update conda && \
conda install --solver=classic conda-forge::conda-libmamba-solver conda-forge::libmamba conda-forge::libmambapy conda-forge::libarchive && \
conda install python pip && \
conda install -c conda-forge gdal && \
cd ~ && \
Expand Down
7 changes: 4 additions & 3 deletions installer/linux/arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
# Put installer in current user home directory, install to home directory, add to user bash config, and remove installer
mkdir -p ~/miniconda \
&& cd ~/miniconda \
&& wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh \
&& wget https://repo.anaconda.com/miniconda/Miniconda3-py312_24.7.1-0-Linux-aarch64.sh \
&& mkdir ~/.conda \
&& chmod 755 Miniconda3-latest-Linux-aarch64.sh \
&& bash Miniconda3-latest-Linux-aarch64.sh -b -p /home/vscode/miniconda3 \
&& chmod 755 Miniconda3-py312_24.7.1-0-Linux-aarch64.sh \
&& bash Miniconda3-py312_24.7.1-0-Linux-aarch64.sh -b -p /home/vscode/miniconda3 \
&& echo "Running $(conda --version)" && \
conda init bash && \
. /home/vscode/.bashrc && \
conda update conda && \
conda install --solver=classic conda-forge::conda-libmamba-solver conda-forge::libmamba conda-forge::libmambapy conda-forge::libarchive && \
conda install pip && \
conda install -c conda-forge gdal && \
cd ~ && \
Expand Down

0 comments on commit 8e33bc1

Please sign in to comment.