Add import and etcd cluster creator
This commit is contained in:
parent
60aedc137e
commit
e87b9e6579
13
Makefile
13
Makefile
@ -16,15 +16,22 @@ all: oci
|
||||
|
||||
oci: $(IMAGES)
|
||||
localbuild: $(BUILD_IDS)
|
||||
import: $(addsuffix /import,${IMAGES})
|
||||
|
||||
# Build process
|
||||
%/${IMAGE_OUTPUT}: %/${BUILD_ID_OUT}
|
||||
buildah push -f oci \
|
||||
buildah push \
|
||||
-f oci \
|
||||
$(shell cat $<) \
|
||||
oci-archive:$@:${DOMAIN}/$*:latest
|
||||
oci-archive:$@:${DOMAIN}/$*:$(shell date +%s)
|
||||
|
||||
%/${IMAGE_OUTPUT}/import: %/${IMAGE_OUTPUT}
|
||||
buildah pull \
|
||||
oci-archive:$<
|
||||
|
||||
%/${BUILD_ID_OUT}: %/Containerfile
|
||||
buildah build \
|
||||
--jobs 0 \
|
||||
--network=none \
|
||||
--layers=true \
|
||||
-t ${DOMAIN}/$*:latest \
|
||||
@ -37,7 +44,7 @@ localbuild: $(BUILD_IDS)
|
||||
clean:
|
||||
-rm -rv ${IMAGES} ${BUILD_IDS}
|
||||
|
||||
.PHONY: all localbuild oci clean
|
||||
.PHONY: all localbuild oci clean import
|
||||
.SUFFIXES:
|
||||
|
||||
# Somehow GNU make forgets these are intermediates if not explicitly stated, feel free to look into it *shrug*
|
||||
|
41
creators/etcd-cluster.sh
Executable file
41
creators/etcd-cluster.sh
Executable file
@ -0,0 +1,41 @@
|
||||
#!/bin/sh
|
||||
OWNHOST="[::1]"
|
||||
|
||||
podman run \
|
||||
-d \
|
||||
--network=host \
|
||||
--name node-1 \
|
||||
redxen.eu/daemons/etcd \
|
||||
--name node-1 \
|
||||
--listen-peer-urls 'https://[::]:2380' \
|
||||
--initial-advertise-peer-urls "https://$OWNHOST:2380" \
|
||||
--listen-client-urls 'https://[::]:2379' \
|
||||
--advertise-client-urls "https://$OWNHOST:2379" \
|
||||
--initial-cluster-state new \
|
||||
--initial-cluster "node-1=https://$OWNHOST:2380,node-2=https://$OWNHOST:2381,node-3=https://$OWNHOST:2382"
|
||||
|
||||
podman run \
|
||||
-d \
|
||||
--network=host \
|
||||
--name node-2 \
|
||||
redxen.eu/daemons/etcd \
|
||||
--name node-2 \
|
||||
--listen-peer-urls 'https://[::]:2381' \
|
||||
--initial-advertise-peer-urls "https://$OWNHOST:2381" \
|
||||
--listen-client-urls 'https://[::]:2378' \
|
||||
--advertise-client-urls "https://$OWNHOST:2378" \
|
||||
--initial-cluster-state new \
|
||||
--initial-cluster "node-1=https://$OWNHOST:2380,node-2=https://$OWNHOST:2381,node-3=https://$OWNHOST:2382"
|
||||
|
||||
podman run \
|
||||
-d \
|
||||
--network=host \
|
||||
--name node-3 \
|
||||
redxen.eu/daemons/etcd \
|
||||
--name node-3 \
|
||||
--listen-peer-urls 'https://[::]:2382' \
|
||||
--initial-advertise-peer-urls "https://$OWNHOST:2382" \
|
||||
--listen-client-urls 'https://[::]:2377' \
|
||||
--advertise-client-urls "https://$OWNHOST:2377" \
|
||||
--initial-cluster-state new \
|
||||
--initial-cluster "node-1=https://$OWNHOST:2380,node-2=https://$OWNHOST:2381,node-3=https://$OWNHOST:2382"
|
@ -1,7 +1,7 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIE6zCCA9OgAwIBAgISAyroq1OJKXG3l88KMp3IY2o/MA0GCSqGSIb3DQEBCwUA
|
||||
MIIE6zCCA9OgAwIBAgISAy/p3h/wo08W4wsYNslIELVmMA0GCSqGSIb3DQEBCwUA
|
||||
MDIxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQD
|
||||
EwJSMzAeFw0yMzA3MjcwNzMzMjRaFw0yMzEwMjUwNzMzMjNaMBQxEjAQBgNVBAMT
|
||||
EwJSMzAeFw0yMzEwMTYxMjIyMjNaFw0yNDAxMTQxMjIyMjJaMBQxEjAQBgNVBAMT
|
||||
CXJlZHhlbi5ldTCCASIwDQYJKoZIhvcNAQEBBQAD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PszIoeeqOvoMtI8
|
||||
WJtVD/0ggHZUQiJ8HMsATkkGpJ/bOM+pMupP6QddQyH1gHqiT68R5iqlVPSln3fU
|
||||
tDFR/+vPQDhZS+z0GjPJHjxP9K/5T1NPwKSeK6fWEPP4MncuSYG9GZlIT9UPAK0u
|
||||
A0/MZiYNtQP+b6RPZbzF
|
||||
DAECATCCAQMGCisGAQQB1nkCBAIEgfQEgfEA7wB1ANq2v2s/tbYin5vCu1xr6HCR
|
||||
cWy7UYSFNL2kPTBI1/urAAABizim4x8AAAQDAEYwRAIgJQdzMMJr9YZLo3CEw5K7
|
||||
cM8EhBue/QmJNNM9Tk3z+RkCIAjG4Ix37WGEAouSh/eutvyH0fx7Ry6I/+QKsS+5
|
||||
xUcZAHYAdv+IPwq2+5VRwmHM9Ye6NLSkzbsp3GhCCp/mZ0xaOnQAAAGLOKbjTgAA
|
||||
BAMARzBFAiBXQmNcEN2iIIYJjvKf0ZbFUYRzK8CrFk0iB5Qk08gPZAIhAP1ogV9F
|
||||
V3XsGB5iFjnLDpU75mrizxqNTO8w9uRZbZNmMA0GCSqGSIb3DQEBCwUAA4IBAQCZ
|
||||
m1idEdbYkq6g23rwl4RiwE4wFa4IIeCp632Cuv2SaD4tRBAyIXiAvi1bYpz/qN1A
|
||||
14e++ufnRu6pwjrKBSI8sZwZLqWapdRJFp09vJK+o1M7+2kO2dYG6HX4C95Mrkku
|
||||
yw87mrc0M8U8Uw2NIxGYwPn5QFLies6mSaP/eqVkXOIOaglxDMyPIOCBqTu0c/KV
|
||||
cIY77MCqAv9J7pSFAn76dHeLZEYP4hPP9JocVTYFEzv2ZCTyvWR0Icu4ujfp3FVa
|
||||
uJnr16oWSHLXAL8gkNYruktc6CbJcQezQWClVAdTXGc3+0hxz7eTlEs/8O16ocN/
|
||||
EgIR8Ef47UL9jhVX8cT7
|
||||
-----END CERTIFICATE-----
|
||||
|
Loading…
Reference in New Issue
Block a user