Is there an analog of postStartCommand
for Features?
#34
-
I'm building a feature for # Find `.tool-versions` within `${WORKSPACE_MOUNT}`, ignoring hidden directories.
/bin/find ${WORKSPACE_MOUNT} -type d -path '*/.*' -prune -o -name '*.tool-version*' -print | while read filePath; do
echo -e "Setting up \`asdf\` for ${filePath}"
# Install plugins based on `.tool-versions` contents
cat $filePath | cut -d' ' -f1 | grep "^[^\#]" | xargs -i asdf plugin add {}
# Install versions at ${filePath}
(cd $(dirname ${filePath}) && asdf install)
done Of course, this could be provided to the user and they would need to manually trigger this – but I'm wondering if maybe adding a Feature could "register" a |
Beta Was this translation helpful? Give feedback.
Answered by
bamurtaugh
Mar 24, 2023
Replies: 1 comment
-
Hi, thanks for your question! I believe this would be covered by this spec proposal to allow Features to contribute lifecycle hooks: devcontainers/spec#181 (cc @joshspicer). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jmuchovej
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, thanks for your question! I believe this would be covered by this spec proposal to allow Features to contribute lifecycle hooks: devcontainers/spec#181 (cc @joshspicer).