blob: 44e08e02882649e3adab2e6a738900c08d86b435 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>NOTvyos package repository</title>
<style>
body {
padding: 15px;
font-family: sans-serif;
}
h1 {
margin: 0;
}
pre {
overflow: auto;
}
code {
display: inline-block;
padding: 0 5px;
background: #eee;
}
pre code {
padding: 5px;
}
code b {
color: #c90000;
}
@media (max-width: 767.98px) {
body {
padding: 0;
}
h1 {
font-size: 1.5em;
}
}
</style>
</head>
<body>
<h1>NOTvyos package repository</h1>
<p>
Welcome to NOTvyos package repository provided by <b>[PROVIDED_BY]</b>.<br>
This APT mirror provides <b>unofficially</b> built .deb packages for stable branches of VyOS™.
</p>
<p>
NOTvyos packages are not affiliated with the official VyOS™ project in any means.
</p>
<p>
Test resulting ISO image <b>carefully</b>.<br>
There is <b>no official support</b>.<br>
Packages are provided on <b>"AS IS"</b> basis.<br>
<b>DO NOT</b> report bugs of NOTvyos to the VyOS™ project.<br>
</p>
<p>
Source code of provided packages can be found in the
<a href="https://github.com/vyos">VyOS™ GitHub project</a>. Some packages are built from
<a href="https://github.com/dd010101/vyos-build">dd010101/vyos-build</a> fork and also
<a href="https://github.com/dd010101/vyos-missing">dd010101/vyos-missing</a> repository.
<br>
You can refer to the <a href="https://github.com/dd010101/vyos-jenkins/blob/master/extras/packages.md">vyos-jenkins/extras/packages.md</a>
for the corresponding GIT repository and build script location for each package.
<br>
Build scripts and instructions how to build your own package repository can be found in the
<a href="https://github.com/dd010101/vyos-jenkins/tree/master?tab=readme-ov-file">dd010101/vyos-jenkins</a>
GitHub repository.
</p>
<p>
The APT gpg singing key for this repository can be found <a href="[REPOSITORY_URL]/apt.gpg.key">here</a>.
<br>
You need to mount the APT key for later use when you are starting the vyos-build docker container via
additional option <code>-v "/local/path/to/apt.gpg.key:/opt/apt.gpg.key"</code>.
<br>
Then you can use <code>--vyos-mirror ...</code> and <code>--custom-apt-key /opt/apt.gpg.key</code>
options for the <code>./configure</code> or <code>./build-vyos-image iso</code> commands to use
this repository.
<br>
Where for <b>1.3.x/equuleus</b> you need <code>--vyos-mirror "[REPOSITORY_URL]/equuleus"</code><br>
and for <b>1.4.x/sagitta</b> you need <code>--vyos-mirror "[REPOSITORY_URL]/sagitta"</code> instead.
</p>
<p>
<a href="https://docs.docker.com/engine/install/"><b>Docker</b></a>
and <b>git</b>
is required for the build.
</p>
<p>Complete build script for <b>equuleus</b>:</p>
<pre><code>#!/bin/bash
set -e
<b>wget [REPOSITORY_URL]/apt.gpg.key -O /tmp/apt.gpg.key</b>
rm -rf vyos-build/
git clone <b>https://github.com/dd010101/vyos-build.git</b>
git -C vyos-build/ checkout equuleus
version="1.3.x"
docker pull vyos/vyos-build:equuleus
docker run --rm --privileged --name="vyos-build" -v ./vyos-build/:/vyos -e GOSU_UID=$(id -u) -e GOSU_GID=$(id -g) \
--sysctl net.ipv6.conf.lo.disable_ipv6=0 <b>-v "/tmp/apt.gpg.key:/opt/apt.gpg.key"</b> -w /vyos vyos/vyos-build:equuleus \
sudo --preserve-env ./configure \
--architecture amd64 \
--build-by "myself@localhost" \
--build-type release \
<b>--debian-elts-mirror http://deb.freexian.com/extended-lts</b> \
--version "$version" \
<b>--vyos-mirror "[REPOSITORY_URL]/equuleus"</b> \
<b>--custom-apt-key /opt/apt.gpg.key</b> \
--custom-package "vyos-1x-smoketest"
docker run --rm --privileged --name="vyos-build" -v ./vyos-build/:/vyos -e GOSU_UID=$(id -u) -e GOSU_GID=$(id -g) \
--sysctl net.ipv6.conf.lo.disable_ipv6=0 -v "/tmp/apt.gpg.key:/opt/apt.gpg.key" -w /vyos vyos/vyos-build:equuleus \
sudo make iso
if [ -f vyos-build/build/live-image-amd64.hybrid.iso ]; then
iso="vyos-$version-iso-amd64.iso"
mv vyos-build/build/live-image-amd64.hybrid.iso "$iso"
echo "Build successful - $iso"
else
>&2 echo "ERROR: ISO not found, something is wrong - see previous messages for what failed"
exit 1
fi</code></pre>
<p>Complete build script for <b>sagitta</b>:</p>
<pre><code>#!/bin/bash
set -e
<b>wget [REPOSITORY_URL]/apt.gpg.key -O /tmp/apt.gpg.key</b>
rm -rf vyos-build/
git clone <b>https://github.com/dd010101/vyos-build.git</b>
git -C vyos-build/ checkout sagitta
version="1.4.x"
docker pull vyos/vyos-build:sagitta
docker run --rm --privileged --name="vyos-build" -v ./vyos-build/:/vyos -e GOSU_UID=$(id -u) -e GOSU_GID=$(id -g) \
--sysctl net.ipv6.conf.lo.disable_ipv6=0 <b>-v "/tmp/apt.gpg.key:/opt/apt.gpg.key"</b> -w /vyos vyos/vyos-build:sagitta \
sudo --preserve-env ./build-vyos-image iso \
--architecture amd64 \
--build-by "myself@localhost" \
--build-type release \
--debian-mirror http://deb.debian.org/debian/ \
--version "$version" \
<b>--vyos-mirror "[REPOSITORY_URL]/sagitta"</b> \
<b>--custom-apt-key /opt/apt.gpg.key</b> \
--custom-package "vyos-1x-smoketest"
if [ -f vyos-build/build/live-image-amd64.hybrid.iso ]; then
iso="vyos-$version-iso-amd64.iso"
mv vyos-build/build/live-image-amd64.hybrid.iso "$iso"
echo "Build successful - $iso"
else
>&2 echo "ERROR: ISO not found, something is wrong - see previous messages for what failed"
exit 1
fi</code></pre>
<p>
<code><b>Highlighted</b></code> changes are those that differ from the official Docker build instructions.
If you want to modify your existing build script then pay special attention to those.
</p>
</body>
</html>
|