Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: stop using rocker's script to install Python #204

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions r-python-julia/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM $BASE_IMAGE
LABEL maintainer="InseeFrLab <[email protected]>"

ENV JULIA_DIR="/opt/julia"
ENV PATH="${JULIA_DIR}/bin:${PATH}"
ENV PATH="${HOME}/.local/bin:${JULIA_DIR}/bin:${PATH}"

# Python config for the `reticulate` package
ENV PYTHON_CONFIGURE_OPTS="--enable-shared"
Expand All @@ -14,11 +14,11 @@ USER root

COPY requirements.txt .

RUN wget -O - https://raw.githubusercontent.com/rocker-org/rocker-versioned2/R${R_VERSION}/scripts/install_python.sh | bash && \
# Install base Python packages
RUN /opt/install-julia.sh && \
# Install common Python packages
pip3 install -r requirements.txt && \
# Install Julia
/opt/install-julia.sh && \
# Install reticulate to use Python in R
install2.r --error reticulate && \
# Install quarto
/opt/install-quarto.sh && \
# Clean
Expand Down
4 changes: 2 additions & 2 deletions r-python-julia/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ commandTests:
expectedOutput: ["/usr/local/bin/R"]
- name: "Does the binary exists?"
command: "which"
args: ["python"]
expectedOutput: ["/usr/local/bin/python"]
args: ["python3"]
expectedOutput: ["/usr/bin/python3"]
- name: "Does the binary exists?"
command: "which"
args: ["julia"]
Expand Down
Loading