Closed luisg123v closed 10 months ago
Good idea in order to have it already store it in the image itself!
@moylop260
Good idea in order to have it already store it in the image itself!
Yes, but not only that. If the command is appended to the 10-build.sh
file, it means it's run locally instead of being run on the built image.
I am not very familiar with the history behind those options but technically the "help" sections for --build-extra-cmds
and --run-extra-cmds
state the commands apply to the build and run scripts. I don't know if anyone actually uses them to run something extra in those scripts, so I was thinking we could:
--build-extra-steps
which applies to Dockerfile as requestedI like option 2, and also 1, but maybe that is too destructive, what do you think @luisg123v @moylop260
@antonag32 let's go with option 2
If I run something like:
travisfile2dockerfile ... --run-extra-cmds="some_command"
The command
some_command
is inserted at the end of10-build.sh
, which AFAIK is not correct, it should be inserted at the end of theDockerfile
file.What do you think @moylop260 @antonag32?