8 ms·
Does anyone know a good way for asdf to inform which versions are installed in container? I feel like I keep having to hack together ways to do the same thing
by jaxn 6y ago
Does anyone know a good way for asdf to inform which versions are installed in container?
I feel like I keep having to hack together ways to do the same thing when building containers for apps build with asdf. (Github actions, dockerfile, heroku, etc)
- pensatoio 6y agoI don't think using asdf in your container builds is a good idea tbh. You should pin your container to a specific version, or perhaps set the base image version by parsing the .tool-version file.
- jaxn 6y agoYeah, I didn't write that clearly. We have this great .tool-versions file defining the version of ruby, node, yarn, etc. It's great. Then we setup github actions to run linting/tests/etc, and we have to define those same versions either explicitly in the .yml or via some hacky shell commands to pull version info into a RUN curl... It would be great if there was a little more standardization around language versions. Or maybe there is a secret convention that I just haven't heard of yet.