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

Add Volta back as a pkgx stub #146

Merged
merged 1 commit into from
Apr 26, 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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ARG USER_ID="1000"
# drawback still pays off as running this image as root is a corner case.
ENV USER="${USER}"
ENV HOME="/home/${USER}"
ENV PATH="${HOME}/.local/bin:${PATH}"
ENV PATH="${HOME}/.local/bin:${HOME}/.volta/bin:${PATH}"

RUN --mount=type=bind,source=devcontainer/scripts/prepare_user.sh,target=/prepare_user.sh \
/prepare_user.sh
Expand Down
3 changes: 3 additions & 0 deletions devcontainer/scripts/prepare_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ PKGX_VERSION="1.1.6"
${CURL} "https://github.com/pkgxdev/pkgx/releases/download/v${PKGX_VERSION}/pkgx-${PKGX_VERSION}+linux+${UNAME_ARCH//_/-}.tar.xz" |
tar -C /usr/local/bin -xJf - pkgx

# install volta stub (will be fully downloaded when it is used for the first time)
pkgx install volta.sh

# install s6-overlay
# renovate: datasource=github-releases depName=just-containers/s6-overlay
S6_OVERLAY_VERSION="3.1.6.2"
Expand Down