Skip to content

Make install_*.sh scripts globally available for all images #1004

@fh-mthomson

Description

@fh-mthomson

These scripts are concise and clean, but currently only copied into a subset of the images (all Pro/Base, but not *-init nor content?): https://github.com/rstudio/rstudio-docker-products/tree/main/product/base/scripts/ubuntu

Motivating example: to install a specific version of Quarto + TinyTex (related to #904), in each:

  1. Pro image (e.g., rstudio/rstudio-connect) -> easy, clean
RUN rm -rf /lib/rstudio-server/bin/quarto && rm -f /usr/local/bin/quarto \
    && HOME="/opt" $SCRIPTS_DIR/install_quarto.sh --install-tinytex --add-path-tinytex \
    && ln -sf /opt/quarto/${QUARTO_VERSION}/bin/quarto /usr/local/bin/quarto
  1. Base image (e.g., rstudio/content-base:r4.4.1-py3.12.4-quarto1.4.557) -> more verbose, manual
RUN if [ ! -d "/opt/quarto/${QUARTO_VERSION}" ]; then \
        mkdir -p /opt/quarto/${QUARTO_VERSION} \
        && curl -o quarto.tar.gz -L "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.tar.gz" \
        && tar -zxvf quarto.tar.gz -C "/opt/quarto/${QUARTO_VERSION}" --strip-components=1 \
        && rm quarto.tar.gz; \
    fi \
    && rm -rf /opt/TinyTeX \
    && HOME="/opt" /opt/quarto/${QUARTO_VERSION}/bin/quarto install tinytex --update-path --no-prompt \
    && ln -sf /opt/quarto/${QUARTO_VERSION}/bin/quarto /usr/local/bin/quarto

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions