-
Notifications
You must be signed in to change notification settings - Fork 97
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
1898 byoi #1912
1898 byoi #1912
Conversation
a307a55
to
c1d4dbf
Compare
2b73df5
to
5afe742
Compare
Fixes #1898 Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
611e184
to
afff956
Compare
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
moved here: #1897 (comment) Signed-off-by: Dimitris Karakasilis <[email protected]>
afff956
to
2b9c943
Compare
Signed-off-by: Dimitris Karakasilis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👏
SAVE ARTIFACT --keep-own /. rootfs | ||
|
||
uki-artifacts: | ||
ARG --required FAMILY # The dockerfile to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
damn, cant we make this a global thing instead of having them in each target?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather not. Anything we make global becomes accessible to every target, even those that don't need it. Then you can't make it --required
either (since it's not required by all targets, right?). It looks ugly right now but I'm hoping on the next iteration, the only thing most targets will need is the a "base image" arg which will be a pre-built image. That one will be build directly with docker to ensure that we can always build with just docker
, no earthly required.
FROM base-ubuntu-22-lts AS arm64-ubuntu | ||
FROM base-ubuntu-22-lts AS arm64-ubuntu-22-lts | ||
FROM base-ubuntu-20-lts AS arm64-ubuntu-20-lts | ||
FROM base-ubuntu-22.04 AS arm64-ubuntu-23.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again from 22 to 23?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mauromorales did I mess up on rebase?
@@ -604,10 +644,21 @@ iso: | |||
|
|||
|
|||
iso-uki: | |||
FROM ubuntu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why ubuntu? A smaller image like alpine is better suited for this, especially if its just to run a script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alpine had no bash
:
~/workspace/kairos/kairos (1898-byoi)*$ docker run -it --rm alpine /bin/bash
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown.
We could implement the script in pure sh
but we opted for an image that has bash.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some changes in regard to framework target and dockerfiles
Signed-off-by: Dimitris Karakasilis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me!
Signed-off-by: Dimitris Karakasilis <[email protected]>
when creating a tag for container images. Signed-off-by: Dimitris Karakasilis <[email protected]>
because otherwise it fails to build rpi images Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Fixes #1898