File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
FROM quay.io/centos/centos:stream9 as build
2
2
COPY hack/build.sh /build.sh
3
+ COPY ./contrib/packaging/bootc.spec ./contrib/packaging/bootc.spec
3
4
RUN /build.sh && rm -v /build.sh
4
5
COPY . /build
5
6
WORKDIR /build
@@ -9,17 +10,21 @@ RUN mkdir -p /build/target/dev-rootfs # This can hold arbitrary extra content
9
10
RUN --mount=type=cache,target=/build/target --mount=type=cache,target=/var/roothome make test-bin-archive && mkdir -p /out && cp target/bootc.tar /out
10
11
RUN mkdir -p /build/target/dev-rootfs # This can hold arbitrary extra content
11
12
12
- FROM quay.io/otuchfel/ostbackup:serv1 as seed
13
+ FROM quay.io/otuchfel/bootc:seed2 as seed
13
14
14
15
# ____________________________________________________________________________
15
16
16
17
FROM quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:5b1124faf4b73753b4679085604dd8cb810c4a7a2e659978f5c80183bb165f94
17
18
18
- LABEL com.openshift.lifecycle-agent.seed_format_version=3
19
+ LABEL com.openshift.lifecycle-agent.seed_format_version=4
19
20
20
21
RUN mkdir -p /usr/lib/bootc/install
21
22
22
- COPY --from=seed --exclude=ostree.tgz / /var/tmp /seed
23
+ COPY --from=seed --exclude=ostree.tgz / /usr/lib/openshift /seed
23
24
24
25
COPY --from=build /out/bootc.tar /tmp
26
+
27
+ COPY baseimage/base/usr/lib/ostree/prepare-root.conf /usr/lib/ostree/prepare-root.conf
28
+
25
29
RUN tar -C / -xvf /tmp/bootc.tar && rm -vrf /tmp/*
30
+ RUN sed -i '/PermitRootLogin no/d' /etc/ssh/sshd_config.d/40-rhcos-defaults.conf
Original file line number Diff line number Diff line change 2
2
3
3
SCRIPT_DIR=$( dirname $0 )
4
4
5
+ set -euxo pipefail
6
+
5
7
cd $SCRIPT_DIR
6
8
7
9
podman build -t bootcseed -f Containerfile .
8
- podman tag bootcseed:latest quay.io/otuchfel/bootc:seed
9
- podman push quay.io/otuchfel/bootc:seed
10
+ podman tag bootcseed:latest quay.io/otuchfel/bootc:seed5
11
+ podman push quay.io/otuchfel/bootc:seed5
You can’t perform that action at this time.
0 commit comments