summaryrefslogtreecommitdiff
path: root/manual/build-custom-vyos-build-containers.sh
diff options
context:
space:
mode:
authordd <dd@wx.tnyzeq.icu>2024-06-30 16:24:22 +0200
committerdd <dd@wx.tnyzeq.icu>2024-06-30 16:24:22 +0200
commit54892613208606589391391108f37ee404d53981 (patch)
tree343298b5980fbc5e752da3a05e65c61960f53a1a /manual/build-custom-vyos-build-containers.sh
parent77e2e72535f597547f92ac5b176842272aa695b1 (diff)
downloadvyos-jenkins-54892613208606589391391108f37ee404d53981.tar.gz
vyos-jenkins-54892613208606589391391108f37ee404d53981.zip
updated readme to include automated scripts and some initial refactoring
Diffstat (limited to 'manual/build-custom-vyos-build-containers.sh')
-rwxr-xr-xmanual/build-custom-vyos-build-containers.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/manual/build-custom-vyos-build-containers.sh b/manual/build-custom-vyos-build-containers.sh
new file mode 100755
index 0000000..46f9f97
--- /dev/null
+++ b/manual/build-custom-vyos-build-containers.sh
@@ -0,0 +1,39 @@
+#!/usr/bin/env bash
+set -e
+
+CUSTOM_DOCKER_REPO="172.17.17.17:5000"
+ELTS_MIRROR="http://172.17.17.17:3142/deb.freexian.com/extended-lts"
+
+#
+# Clone (patched) vyos-build
+
+git clone https://github.com/dd010101/vyos-build.git
+cd vyos-build/docker
+
+#
+# Build and Push equuleus
+
+git checkout equuleus
+docker build --build-arg "ELTS_MIRROR=$ELTS_MIRROR" \
+ --no-cache -t vyos/vyos-build:equuleus .
+
+docker tag vyos/vyos-build:equuleus ${CUSTOM_DOCKER_REPO}/vyos/vyos-build:equuleus
+docker push ${CUSTOM_DOCKER_REPO}/vyos/vyos-build:equuleus
+
+#
+# Build and Push sagitta
+
+git checkout sagitta
+docker build --no-cache -t vyos/vyos-build:sagitta .
+
+docker tag vyos/vyos-build:sagitta ${CUSTOM_DOCKER_REPO}/vyos/vyos-build:sagitta
+docker push ${CUSTOM_DOCKER_REPO}/vyos/vyos-build:sagitta
+
+#
+# Build and Push current -- (current is required for some sagitta packages)
+
+git checkout current
+docker build --no-cache -t vyos/vyos-build:current .
+
+docker tag vyos/vyos-build:current ${CUSTOM_DOCKER_REPO}/vyos/vyos-build:current
+docker push ${CUSTOM_DOCKER_REPO}/vyos/vyos-build:current