-
Notifications
You must be signed in to change notification settings - Fork 63
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
Improved support for Docker #2234
Conversation
pre-build-cmd
to docker
target propertypre-build-cmd
option for docker
target property
pre-build-cmd
option for docker
target propertypre-build-script
and run-script
option for docker
target property
pre-build-script
and run-script
option for docker
target property
I made a start and tried lf-lang/epoch#74 but it doesn't seem to work |
Thanks for coming to the rescue, @a-sr! |
Observation: this will not work well with cross-compilation. It will not really make sense for the two base images to differ.
Docker support for C++ target
At times, it is necessary to run a command (e.g., to set environment variables) prior to building or when hitting the entry point. We add target properties to point to scripts for this purpose. We also add an option to skip the build step, in case integration into a more sophisticated build process is needed.
Related to #2232 in the sense that we need to check the handling across imported files etc.
pre-build-script
,post-build-script
, andpre-run-script
entries todocker
target property dictionarybuilder-base
andrunner-base
entries todocker
target property dictionary to replaceFROM
no-build
option (false
by default) to skip the docker build steprunner-base
default tobuilder-base
if specifiedpre-build-script
is composed with app using&&