Skip to content

Commit 39f3c0d

Browse files
committed
Change seed location
1 parent 5bddfeb commit 39f3c0d

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

Containerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM quay.io/centos/centos:stream9 as build
22
COPY hack/build.sh /build.sh
3+
COPY ./contrib/packaging/bootc.spec ./contrib/packaging/bootc.spec
34
RUN /build.sh && rm -v /build.sh
45
COPY . /build
56
WORKDIR /build
@@ -9,17 +10,21 @@ RUN mkdir -p /build/target/dev-rootfs # This can hold arbitrary extra content
910
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
1011
RUN mkdir -p /build/target/dev-rootfs # This can hold arbitrary extra content
1112

12-
FROM quay.io/otuchfel/ostbackup:serv1 as seed
13+
FROM quay.io/otuchfel/bootc:seed2 as seed
1314

1415
# ____________________________________________________________________________
1516

1617
FROM quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:5b1124faf4b73753b4679085604dd8cb810c4a7a2e659978f5c80183bb165f94
1718

18-
LABEL com.openshift.lifecycle-agent.seed_format_version=3
19+
LABEL com.openshift.lifecycle-agent.seed_format_version=4
1920

2021
RUN mkdir -p /usr/lib/bootc/install
2122

22-
COPY --from=seed --exclude=ostree.tgz / /var/tmp/seed
23+
COPY --from=seed --exclude=ostree.tgz / /usr/lib/openshift/seed
2324

2425
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+
2529
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

build_seed.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
SCRIPT_DIR=$(dirname $0)
44

5+
set -euxo pipefail
6+
57
cd $SCRIPT_DIR
68

79
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

0 commit comments

Comments
 (0)