Install Quarto from the Posit Open apt repo in workbench-session#78
Merged
ianpittwood merged 1 commit intomainfrom May 4, 2026
Merged
Install Quarto from the Posit Open apt repo in workbench-session#78ianpittwood merged 1 commit intomainfrom
ianpittwood merged 1 commit intomainfrom
Conversation
bschwedler
added a commit
that referenced
this pull request
Apr 22, 2026
`quarto install tinytex` installs to \$HOME/.TinyTeX by default; during a Docker build that is /root/.TinyTeX, which is unreadable for the runtime user in Workbench and Workbench Session images. Pass `HOME="/opt"` so the install lands at /opt/.TinyTeX instead, matching the pattern used in rstudio-docker-products. `--update-path` causes tlmgr to symlink the TinyTeX binaries into /usr/local/bin so they are on PATH. Covers both the `workbench` image (TinyTeX installed against the bundled rstudio-server Quarto) and `workbench-session` (TinyTeX installed against the apt-installed Quarto from PR #78). Tracks: - posit-dev/images-shared#477 - quarto-dev/quarto-cli#11800 (upstream; once resolved the HOME override can be dropped)
bschwedler
added a commit
that referenced
this pull request
Apr 28, 2026
`quarto install tinytex` installs to \$HOME/.TinyTeX by default; during a Docker build that is /root/.TinyTeX, which is unreadable for the runtime user in Workbench and Workbench Session images. Pass `HOME="/opt"` so the install lands at /opt/.TinyTeX instead, matching the pattern used in rstudio-docker-products. `--update-path` causes tlmgr to symlink the TinyTeX binaries into /usr/local/bin so they are on PATH. Covers both the `workbench` image (TinyTeX installed against the bundled rstudio-server Quarto) and `workbench-session` (TinyTeX installed against the apt-installed Quarto from PR #78). Tracks: - posit-dev/images-shared#477 - quarto-dev/quarto-cli#11800 (upstream; once resolved the HOME override can be dropped)
a119d02 to
4c976b2
Compare
bschwedler
added a commit
that referenced
this pull request
Apr 28, 2026
`quarto install tinytex` installs to \$HOME/.TinyTeX by default; during a Docker build that is /root/.TinyTeX, which is unreadable for the runtime user in Workbench and Workbench Session images. Pass `HOME="/opt"` so the install lands at /opt/.TinyTeX instead, matching the pattern used in rstudio-docker-products. `--update-path` causes tlmgr to symlink the TinyTeX binaries into /usr/local/bin so they are on PATH. Covers both the `workbench` image (TinyTeX installed against the bundled rstudio-server Quarto) and `workbench-session` (TinyTeX installed against the apt-installed Quarto from PR #78). Tracks: - posit-dev/images-shared#477 - quarto-dev/quarto-cli#11800 (upstream; once resolved the HOME override can be dropped)
4c976b2 to
b9bc9fc
Compare
4 tasks
bschwedler
added a commit
that referenced
this pull request
Apr 30, 2026
`quarto install tinytex` installs to \$HOME/.TinyTeX by default; during a Docker build that is /root/.TinyTeX, which is unreadable for the runtime user in Workbench and Workbench Session images. Pass `HOME="/opt"` so the install lands at /opt/.TinyTeX instead, matching the pattern used in rstudio-docker-products. `--update-path` causes tlmgr to symlink the TinyTeX binaries into /usr/local/bin so they are on PATH. Covers both the `workbench` image (TinyTeX installed against the bundled rstudio-server Quarto) and `workbench-session` (TinyTeX installed against the apt-installed Quarto from PR #78). Tracks: - posit-dev/images-shared#477 - quarto-dev/quarto-cli#11800 (upstream; once resolved the HOME override can be dropped)
fdca8c0 to
c65e294
Compare
Migrate workbench-session Quarto installation from GitHub tarball to the Posit Open apt repository. TinyTeX is installed under HOME="/opt" so non-root users can access it, and quarto is pinned with apt-mark hold. Goss tests updated to verify the package hold, TinyTeX placement, and use quarto.get_directory() for paths.
c65e294 to
c7c0f33
Compare
ianpittwood
approved these changes
May 4, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Switch
workbench-sessionto install Quarto viaapt-get install quarto={version}from the Posit Open apt repository, using the updatedquarto.install()macro from posit-dev/images-shared.Requires posit-dev/images-shared#479.
Why
${TARGETARCH}URL construction. Posit publishesquartoas a multi-arch deb (amd64 + arm64) on bothjammyandnoble.package.quarto.versionsassertions work directly without path-based proxies.Changes
The
quartodeb installs to a flat/opt/quarto/directory (binary at/opt/quarto/bin/quarto) and symlinks/usr/local/bin/quartovia its postinst script. Downstream consequences in this repo:quarto.symlink_binary(...)call inworkbench-session/template/Containerfile.ubuntu*.jinja2— the deb's postinst already creates the/usr/local/bin/quartosymlink.xz-utilsexplicitly in the TinyTeX RUN; it is needed to unpack the TinyTeX.tar.xzarchive and was previously pulled in transitively by the tarball install./opt/quarto/{version}to/opt/quarto/bin/quartoand add apackage.quarto.versionscheck (now possible because the install is dpkg-tracked).Not affected
workbench(as distinct fromworkbench-session) bundles Quarto withrstudio-serverand usesquarto.install_tinytex_command(...)against that bundled binary. That flow is unchanged.Test plan