Skip to content

Commit

Permalink
feature(add rlang #9): install conda silently fix license agreement p…
Browse files Browse the repository at this point in the history
…rompt
  • Loading branch information
Jean-Baptiste-Lasselle committed Mar 9, 2024
1 parent e4ca423 commit ff2ab73
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion oci/deno-jupyter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ RUN mkdir -p /kernels/extras/ && mkdir -p /kernels/ops/
WORKDIR /kernels/ops/
COPY add-rlang-kernel.sh .
RUN chmod +x ./add-rlang-kernel.sh && ./add-rlang-kernel.sh

RUN RUN bash -c ''

WORKDIR /usr/dataviz/notebooks/decoderleco
33 changes: 26 additions & 7 deletions oci/deno-jupyter/add-rlang-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

# -------
# >>> https://docs.posit.co/ide/server-pro/user/2023.03.1/jupyter-lab/guide/jupyter-kernel-management.html#user-created-kernels
# --- this would be to add a kernel to jupyter lab, baed on a python venv
# instead of running [pip install ipykernel], we install it with a requirements.txt
# --- this would be to add a kernel to jupyter lab, baed on a python venv, see https://pypi.org/project/ipykernel/
# -
#
# Instead of running [pip install ipykernel], we install it with a requirements.txt
# python -m pip install ipykernel
# cat <<EOF >./requirements.kernels.mgmt.txt
# ipykernel
Expand All @@ -18,7 +20,10 @@
# ----
# Install CONDA
# > https://conda.io/projects/conda/en/latest/user-guide/install/linux.html#install-linux-silent

# > https://docs.anaconda.com/free/miniconda/
#
# >
#
export CONDA_INSTALLER_DWNLD_LINK="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"
export CONDA_INSTALLER_FILENAME=$(echo "${CONDA_INSTALLER_DWNLD_LINK}" | awk -F '/' '{ print $NF }')
echo " CONDA_INSTALLER_DWNLD_LINK=[${CONDA_INSTALLER_DWNLD_LINK}]"
Expand All @@ -29,8 +34,22 @@ export CONDA_INSTALLER_CHECKSUM_SHA256="b978856ec3c826eb495b60e3fffe621f670c1011

echo "${CONDA_INSTALLER_CHECKSUM_SHA256} ${CONDA_INSTALLER_FILENAME}" | ./conda.sha256.checksum
sha256sum -c ./conda.sha256.checksum
bash ${CONDA_INSTALLER_FILENAME}



# https://stackoverflow.com/questions/49865531/bash-script-for-anaconda-installer-and-license-agreement
bash ${CONDA_INSTALLER_FILENAME} -b -f -p $HOME/anaconda3

conda --version
which conda
echo "# -----------"
echo " Content of bashrc after conda installation:"
cat ~/.bashrc
echo "# -----------"
echo "export PATH=\"\$PATH:$(which conda)\"" | tee -a ~/.bashrc
echo " Content of bashrc after conda installation + update:"
cat ~/.bashrc
echo "# -----------"
conda --version
# ----
# Install the R language and its jupyter kernel
# > https://github.com/IRkernel/IRkernel : in the requirements, that the R language platform is installed
#
echo 'y\n' | conda install -c r r-irkernel

0 comments on commit ff2ab73

Please sign in to comment.