Skip to content

Commit 5df078c

Browse files
committed
multi-arch-builders: show changes for if we could use butane directly
1 parent 71bbc5e commit 5df078c

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

multi-arch-builders/README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,10 @@ ibmcloud plugin install infrastructure-service
127127
ibmcloud login --sso
128128
```
129129

130-
Create the Ignition config in a separate terminal and copy it into the
131-
container where ibmcloud is running:
130+
Grab the Butane config:
132131

133132
```bash
134-
cat builder-common.bu | butane --pretty --strict > builder-common.ign
135-
cat coreos-s390x-builder.bu | butane --pretty --strict --files-dir=. > coreos-s390x-builder.ign
136-
podman cp coreos-s390x-builder.ign ibmcloud:/root/coreos-s390x-builder.ign
133+
curl -O https://github.com/coreos/fedora-coreos-pipeline/raw/refs/heads/main/multi-arch-builders/coreos-s390x-builder.bu
137134
```
138135

139136
We've occasionally seen some failures and/or capacity issues so we'll
@@ -165,7 +162,7 @@ NAME="coreos-s390x-builder-$(date +%Y%m%d)"
165162
PROFILE='bz2-8x32'
166163
ibmcloud is instance-create $NAME $VPC $ZONE $PROFILE $SUBNET --output json --image-id $IMAGE \
167164
--boot-volume '{"name": "my-boot-vol-1", "volume": {"capacity": 200, "profile": {"name": "general-purpose"}}}' \
168-
--sgs $SG --user-data @coreos-s390x-builder.ign > out.json
165+
--sgs $SG --user-data @coreos-s390x-builder.bu > out.json
169166
```
170167

171168

multi-arch-builders/coreos-s390x-builder.bu

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# This butane config will do the following:
22
#
3-
# - Merge in the builder-common.ign Ignition file
3+
# - Merge in the builder-common.bu Butane file
44
# - Allow the builder user to log in with the associated ssh key
55
# - Set a hostname
66
#
77
variant: fcos
88
version: 1.4.0
99
ignition:
1010
config:
11-
merge:
12-
- local: builder-common.ign
11+
- source: https://github.com/coreos/fedora-coreos-pipeline/raw/refs/heads/main/multi-arch-builders/builder-common.bu
1312
passwd:
1413
users:
1514
- name: builder

multi-arch-builders/coreos-s390x-rhcos-builder.bu

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This butane config will do the following:
22
#
3-
# - Merge in the coreos-s390x-builder.ign Ignition file
4-
# - Merge in the builder-splunk.ign Ignition file
3+
# - Merge in the coreos-s390x-builder.bu Butane file
4+
# - Merge in the builder-splunk.bu Butane file
55
# - Enable the Secure Execution Host
66
# - Create and initialize the secex-data volume
77
# - Enable the Cex hardware based luks encryption
@@ -10,9 +10,8 @@ variant: fcos
1010
version: 1.4.0
1111
ignition:
1212
config:
13-
merge:
14-
- local: coreos-s390x-builder.ign
15-
- local: builder-splunk.ign
13+
- source: https://github.com/coreos/fedora-coreos-pipeline/raw/refs/heads/main/multi-arch-builders/coreos-s390x-builder.bu
14+
- source: https://github.com/coreos/fedora-coreos-pipeline/raw/refs/heads/main/multi-arch-builders/builder-splunk.bu
1615
kernel_arguments:
1716
should_exist:
1817
# enables Secure Execution Host
@@ -111,4 +110,4 @@ storage:
111110
group:
112111
name: root
113112
contents:
114-
local: create-cex-device.sh
113+
source: https://github.com/coreos/fedora-coreos-pipeline/raw/refs/heads/main/multi-arch-builders/create-cex-device.sh

0 commit comments

Comments
 (0)