Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Steve Milner <smilner@redhat.com>
- Loading branch information
Showing
7 changed files
with
136 additions
and
4 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
**/*.rs.bk | ||
src/__pycache__/* | ||
.gocache | ||
maipo/ |
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,28 @@ | ||
FROM registry.access.redhat.com/rhel7:latest | ||
WORKDIR /root/containerbuild | ||
|
||
# Only need a few of our scripts for the first few steps | ||
COPY ./scl-coreos-assembler ./build.sh ./src/deps-rhel.txt ./vmdeps.txt ./build-deps-rhel.txt /root/containerbuild/ | ||
COPY ./maipo/maipo.repo /etc/yum.repos.d/ | ||
RUN ./build.sh configure_yum_repos_rhel | ||
# ostree-packages are on another line so they don't get ostree related packages | ||
# set to ignition in the configure step | ||
COPY ./maipo/ostree-packages.repo /etc/yum.repos.d/ | ||
RUN ./build.sh install_rpms_rhel | ||
|
||
# Ok copy in the rest of them for the next few steps | ||
COPY ./ /root/containerbuild/ | ||
RUN ./build.sh make_and_makeinstall_rhel | ||
RUN ./build.sh configure_user | ||
|
||
# clean up scripts (it will get cached in layers, but oh well) | ||
WORKDIR /srv/ | ||
RUN rm -rf /root/containerbuild | ||
|
||
# allow writing to /etc/passwd from arbitrary UID | ||
# https://docs.openshift.com/container-platform/3.10/creating_images/guidelines.html | ||
RUN chmod g=u /etc/passwd | ||
|
||
# run as `builder` user | ||
USER builder | ||
ENTRYPOINT ["/usr/bin/scl-coreos-assembler"] |
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,2 @@ | ||
# Used by mantle | ||
golang golang-bin golang-src |
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,4 @@ | ||
#!/usr/bin/dumb-init /bin/bash | ||
# See: https://access.redhat.com/solutions/527703 | ||
source scl_source enable rh-python36 | ||
coreos-assembler $@ |
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,43 @@ | ||
# For privileged ops | ||
supermin | ||
|
||
# We default to builder user, but sudo where necessary | ||
sudo | ||
|
||
# dumb-init is a good idea in general, but specifically fixes things with | ||
# libvirt forking qemu and assuming the process gets reaped on shutdown. | ||
dumb-init | ||
|
||
# For composes | ||
rpm-ostree createrepo_c dnf-utils openssh-clients | ||
|
||
# We expect people to use these explicitly in their repo configurations. | ||
distribution-gpg-keys | ||
# We need these for rojig | ||
selinux-policy-targeted rpm-build | ||
|
||
# Standard build tools | ||
make git rpm-build | ||
|
||
# virt-install dependencies | ||
libvirt libguestfs-tools qemu-kvm /usr/bin/qemu-img /usr/bin/virsh /usr/bin/virt-install | ||
# And we process kickstarts | ||
/usr/bin/ksflatten | ||
|
||
# For RHEL | ||
scl-utils rh-python36 | ||
|
||
# ostree-releng-scripts dependencies | ||
rsync python2-gobject-base python34-gobject-base | ||
|
||
# To support recursive containerization and manipulating images | ||
podman buildah skopeo | ||
|
||
# Miscellaneous tools | ||
jq awscli | ||
|
||
# For ignition file validation in cmd-run | ||
ignition | ||
|
||
# shellcheck for test | ||
ShellCheck |