Skip to content

Commit b63dc0d

Browse files
committed
fix: make sure asdf is configured properly even when /config already exists (mounted)
1 parent d00353b commit b63dc0d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ RUN \
2727

2828
# Install ASDF to install custom tools
2929
ARG ASDF_VERSION=0.11.3
30+
ENV ASDF_DIR=/asdf
31+
ENV ASDF_DATA_DIR=/asdf
3032
RUN bash -c "git clone https://github.com/asdf-vm/asdf.git /asdf --branch v${ASDF_VERSION} && \
3133
echo 'legacy_version_file = yes' > $HOME/.asdfrc && \
3234
printf 'yarn\njsonlint' > $HOME/.default-npm-packages && \

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22

33
. /asdf/asdf.sh
44

5+
test -f "$HOME/.asdfrc" || echo 'legacy_version_file = yes' > "$HOME/.asdfrc"
6+
test -f "$HOME/.default-npm-packages" || printf 'yarn\njsonlint\nserve\npm-check-updates\n' > "$HOME/.default-npm-packages"
7+
test -f "$HOME/.default-gems" || printf 'solargraph\nbundler\npry\n' > "$HOME/.default-gems"
8+
59
exec /init "$@"

0 commit comments

Comments
 (0)