Open letmaik opened 4 years ago
@hukoyu Is this something you could work on? Supporting --build-arg
would be quite useful, also outside of testing.
Sure @letmaik I will submit a PR for that.
Hey @letmaik I need clarification for requirement. Can you share a sample command and expected behavior?
Will this work with --docker or --alpine or both?
I will add --build-arg as far as I understand
Is this a sample valid command: sgx-lkl-disk create --size=100M --docker=./Dockerfile --build-arg=??? sgxlkl-disk.img What is valid values for --build-arg and what is expected behavior? Shall we make change in Dockerfile to override FROM, for example?
That's only for --docker. Your command is correct. See https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables---build-arg for syntax of --build-arg. And yes, as I've written, the makefiles and Dockerfiles have to be changed to use the build variable like --build-arg ALPINE_VERSION=3.10
and FROM alpine:${ALPINE_VERSION}
, respectively.
@prp Is this syntax ok?
@hukoyu How are you getting on with this? Do you need any help?
@letmaik I was busy with other tasks. Will submit a PR for that this week.
@letmaik I won't be able to work on that for a while. If you have bandwidth I will appriciate if you take on this task. Thanks.
sgx-lkl-disk
should be extended to accept Docker--build-arg
s, then we can putDOCKER_ALPINE_VERSION=3.10
intests/common.mk
and use that variable in allsgx-lkl-disk
invocations in tests. TheDockerfile
s of tests can then be changed toFROM alpine:${ALPINE_VERSION}
.