-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #662 from rstudio/sj/python
add Python to Package Manager images
- Loading branch information
Showing
15 changed files
with
68 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
RSPM_VERSION=2023.08.4-20 | ||
R_VERSION=4.2.3 | ||
R_VERSION_ALT=4.1.3 | ||
PYTHON_VERSION=3.9.17 | ||
PYTHON_VERSION_ALT=3.8.17 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,37 @@ | ||
ARG R_VERSION=4.2.3 | ||
FROM rstudio/r-base:${R_VERSION}-jammy | ||
ARG R_VERSION_ALT=4.1.3 | ||
ARG PYTHON_VERSION=3.9.17 | ||
ARG PYTHON_VERSION_ALT=3.8.17 | ||
ARG SRC_IMAGE_NAME=product-base | ||
ARG REGISTRY=ghcr.io | ||
FROM ${REGISTRY}/rstudio/${SRC_IMAGE_NAME}:ubuntu2204-r${R_VERSION}_${R_VERSION_ALT}-py${PYTHON_VERSION}_${PYTHON_VERSION_ALT} | ||
LABEL maintainer="RStudio Docker <[email protected]>" | ||
|
||
ARG R_VERSION=4.2.3 | ||
ARG PYTHON_VERSION=3.9.17 | ||
ARG PYTHON_VERSION_ALT=3.8.17 | ||
|
||
# Locale configuration --------------------------------------------------------# | ||
RUN localedef -i en_US -f UTF-8 en_US.UTF-8 | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
ENV STARTUP_DEBUG_MODE 0 | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG TINI_VERSION=0.19.0 | ||
|
||
ENV PATH /opt/rstudio-pm/bin:$PATH | ||
|
||
# Upgrade/install packages ----------------------------------------------------# | ||
RUN apt-get update --fix-missing \ | ||
&& apt-get upgrade -yq \ | ||
&& apt-get install -yq --no-install-recommends \ | ||
ca-certificates \ | ||
dirmngr \ | ||
gpg \ | ||
gpg-agent \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Runtime settings ------------------------------------------------------------# | ||
ADD https://cdn.rstudio.com/platform/tini/v${TINI_VERSION}/tini-amd64 /tini | ||
ADD https://cdn.rstudio.com/platform/tini/v${TINI_VERSION}/tini-amd64.asc /tini.asc | ||
RUN gpg --update-trustdb \ | ||
&& gpg --batch --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 \ | ||
&& gpg --batch --verify /tini.asc /tini \ | ||
&& chmod +x /tini \ | ||
&& ln -s /tini /usr/local/bin/tini | ||
|
||
# Add another R version -------------------------------------------------------# | ||
ARG R_VERSION_ALT=4.1.3 | ||
RUN apt-get update -qq && \ | ||
curl -O https://cdn.rstudio.com/r/ubuntu-2204/pkgs/r-${R_VERSION_ALT}_1_amd64.deb && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y ./r-${R_VERSION_ALT}_1_amd64.deb && \ | ||
rm -f ./r-${R_VERSION_ALT}_1_amd64.deb \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
# Required Python packages ----------------------------------------------------# | ||
RUN /opt/python/${PYTHON_VERSION}/bin/python3 -m pip install --no-cache-dir build virtualenv | ||
RUN /opt/python/${PYTHON_VERSION_ALT}/bin/python3 -m pip install --no-cache-dir build virtualenv | ||
|
||
# Download RStudio Package Manager ---------------------------------------------# | ||
ARG RSPM_VERSION=2023.08.4-20 | ||
ARG RSPM_DOWNLOAD_URL=https://cdn.rstudio.com/package-manager/deb/amd64 | ||
RUN apt-get update --fix-missing \ | ||
&& apt-get install -y --no-install-recommends ca-certificates gdebi-core gpg dpkg-sig \ | ||
&& curl -O ${RSPM_DOWNLOAD_URL}/rstudio-pm_${RSPM_VERSION}_amd64.deb \ | ||
RUN curl -O ${RSPM_DOWNLOAD_URL}/rstudio-pm_${RSPM_VERSION}_amd64.deb \ | ||
# Pre 7/25/23 packages | ||
&& gpg --keyserver keyserver.ubuntu.com --recv-keys 3F32EE77E331692F \ | ||
# Post 7/25 packages | ||
&& gpg --keyserver keys.openpgp.org --recv-keys 51C0B5BB19F92D60 \ | ||
&& dpkg-sig --verify rstudio-pm_${RSPM_VERSION}_amd64.deb \ | ||
&& RSTUDIO_INSTALL_NO_LICENSE_INITIALIZATION=1 gdebi -n rstudio-pm_${RSPM_VERSION}_amd64.deb \ | ||
&& RSTUDIO_INSTALL_NO_LICENSE_INITIALIZATION=1 apt-get install -y ./rstudio-pm_${RSPM_VERSION}_amd64.deb \ | ||
&& rm rstudio-pm_${RSPM_VERSION}_amd64.deb \ | ||
&& apt-get purge -y gdebi-core dpkg-sig gpg gpg-agent \ | ||
&& apt-get autoremove -y \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& (ln -s /opt/rstudio-pm/bin/rspm /usr/local/bin/rspm || echo "/usr/local/bin/rspm symlink already exists") | ||
|
||
# Set default R version symlink | ||
RUN ln -s /opt/R/${R_VERSION} /opt/R/default | ||
|
||
# Add run script and set permissions -------------------------------------------# | ||
COPY --chmod=0775 startup.sh /usr/local/bin/startup.sh | ||
RUN mkdir -p /var/run/rstudio-pm \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters