-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor to allow multiple image builds * Don't build fedora-example * New Readme --------- Co-authored-by: Jorge O. Castro <[email protected]>
- Loading branch information
1 parent
b115bfd
commit 4ccb045
Showing
3 changed files
with
100 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,14 @@ LABEL com.github.containers.toolbox="true" \ | |
summary="An example ContainerFile to demonstrate multiple image builds." \ | ||
maintainer="[email protected]" | ||
|
||
# Copy the setup scripts and package list | ||
COPY ../scripts/fedora-sample.sh / | ||
COPY ../scripts/distrobox-shims.sh / | ||
COPY ../packages/fedora-example.packages / | ||
COPY ../packages/fedora-sample-packages / | ||
RUN dnf update -y && \ | ||
grep -v '^#' /fedora-sample-packages | xargs dnf install -y | ||
RUN rm /fedora-sample-packages | ||
|
||
# Run the setup scripts | ||
RUN chmod +x fedora-example.sh distrobox-shims.sh && /fedora-example.sh | ||
RUN rm /fedora-example.sh /distrobox-shims.sh /fedora-example.packages | ||
RUN ln -fs /bin/sh /usr/bin/sh && \ | ||
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \ | ||
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/flatpak && \ | ||
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/podman && \ | ||
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/rpm-ostree && \ | ||
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/transactional-update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
helix |