blob: 46f9f971580b8dce95be5e14ef2b7f1051d75831 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
|