Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit e38bab4

Browse files
Merge pull request #3 from mudler/master
Cleanup after integrating changes into cOS
2 parents 2072aaa + 85831aa commit e38bab4

File tree

10 files changed

+19
-54
lines changed

10 files changed

+19
-54
lines changed

Dockerfile

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1+
ARG LUET_VERSION=0.16.7
2+
FROM quay.io/luet/base:$LUET_VERSION AS luet
3+
14
FROM registry.suse.com/suse/sle15:15.3 AS base
5+
6+
# Copy luet from the official images
7+
COPY --from=luet /usr/bin/luet /usr/bin/luet
8+
29
ARG ARCH=amd64
310
ENV ARCH=${ARCH}
4-
ENV LUET_VERSION 0.16.7
511
RUN zypper rm -y container-suseconnect
612
RUN zypper ar --priority=200 http://download.opensuse.org/distribution/leap/15.3/repo/oss repo-oss
713
RUN zypper --no-gpg-checks ref
814
COPY files/etc/luet/luet.yaml /etc/luet/luet.yaml
9-
RUN zypper in -y curl
10-
RUN curl -sfL -o /usr/bin/luet https://github.com/mudler/luet/releases/download/${LUET_VERSION}/luet-${LUET_VERSION}-linux-${ARCH} && \
11-
chmod +x /usr/bin/luet
1215

1316
FROM base as tools
14-
RUN zypper in -y docker squashfs xorriso
17+
ENV LUET_NOLOCK=true
18+
RUN zypper in -y squashfs xorriso
1519
COPY tools /
16-
RUN luet install -y repository/luet repository/mocaccino-repository-index
17-
RUN luet install -y extension/makeiso
20+
RUN luet install -y toolchain/luet-makeiso
1821

1922
FROM base
2023
RUN zypper in -y \
@@ -72,9 +75,6 @@ RUN zypper in -y \
7275
vim \
7376
which
7477

75-
RUN curl -L https://github.com/rancher/rancherd/releases/download/v0.0.1-alpha05/rancherd-${ARCH} > /usr/bin/rancherd && \
76-
chmod +x /usr/bin/rancherd
77-
7878
ARG CACHEBUST
7979
RUN luet install -y \
8080
toolchain/yip \
@@ -86,7 +86,8 @@ RUN luet install -y \
8686
selinux/k3s \
8787
selinux/rancher \
8888
utils/k9s \
89-
utils/nerdctl
89+
utils/nerdctl \
90+
utils/rancherd
9091

9192
COPY files/ /
9293
RUN mkinitrd

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.DEFAULT_GOAL := iso
2-
REPO=ibuildthecloud/test
3-
LABEL=latest
2+
REPO?=ibuildthecloud/test
3+
LABEL?=latest
44
IMAGE=${REPO}:${LABEL}
55
TOOLS=${IMAGE}-tools
66

@@ -21,10 +21,10 @@ tools:
2121
docker build -t ${TOOLS} --target tools .
2222

2323
.PHONY: iso
24-
iso: tools build
24+
iso: tools
2525
mkdir -p build
2626
rm -f build/iso-container
27-
docker run -v /var/run:/var/run -it --cidfile=build/iso-container ${TOOLS} makeiso ${IMAGE}
27+
docker run -it --cidfile=build/iso-container ${TOOLS} makeiso ${IMAGE}
2828
docker cp $$(cat build/iso-container):/output.iso build/output.iso
2929
docker rm -fv $$(cat build/iso-container)
3030
rm -f build/iso-container

files/system/oem/07_cloud-metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ stages:
1010
network:
1111
- name: "Cloud providers datasources"
1212
datasource:
13-
providers: ["aws", "gcp", "cdrom"]
13+
providers: ["aws", "gcp", "cdrom", "openstack"]
1414
path: "/oem"

files/usr/sbin/suc-upgrade

Lines changed: 0 additions & 15 deletions
This file was deleted.

tools/etc/luet/repos.conf.d/mocaccino-repository-index.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

tools/iso/iso.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
packages:
2-
rootfs:
3-
- iso/rootfs
42
uefi:
53
- live/systemd-boot
64
- live/boot

tools/iso/package/build.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

tools/iso/package/definition.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

tools/iso/values.yaml.tmpl

Lines changed: 0 additions & 1 deletion
This file was deleted.

tools/usr/bin/makeiso

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ if [ -z "$IMAGE" ]; then
1010
fi
1111

1212
cd /iso
13-
cat > values.yaml << EOF
14-
image: "$IMAGE"
15-
EOF
1613

17-
luet build --values values.yaml iso/rootfs
18-
luet create-repo
19-
luet-makeiso iso.yaml --local /iso/build
14+
luet-makeiso iso.yaml --image "$IMAGE"
15+
2016
cp distro*iso /output.iso

0 commit comments

Comments
 (0)