2022-10-17 14:01:32 +02:00
|
|
|
# os
|
|
|
|
|
2022-10-19 11:55:03 +02:00
|
|
|
Cadoles Kubernetes Operating System
|
|
|
|
|
2022-10-19 11:48:25 +02:00
|
|
|
a.k.a. CadolesKube/os
|
|
|
|
|
2022-10-19 11:55:03 +02:00
|
|
|
##Creating a build server for AlpineLinux
|
2022-10-19 11:48:25 +02:00
|
|
|
|
|
|
|
On Alpine server run : at-begining.sh to install necessary tools.
|
|
|
|
|
2022-10-19 11:55:03 +02:00
|
|
|
##Change to the build user :
|
2022-10-19 11:48:25 +02:00
|
|
|
|
2022-10-19 11:55:03 +02:00
|
|
|
```su - build```
|
2022-10-19 11:48:25 +02:00
|
|
|
|
2022-10-19 11:55:03 +02:00
|
|
|
##Create signing key:
|
2022-10-19 11:48:25 +02:00
|
|
|
|
2022-10-19 11:55:03 +02:00
|
|
|
```abuild-keygen -i -a (-i installs them in /etc/apk/keys)```
|
2022-10-19 11:48:25 +02:00
|
|
|
|
2022-10-19 11:55:03 +02:00
|
|
|
##Quick check :
|
2022-10-19 11:48:25 +02:00
|
|
|
|
2022-10-19 11:55:03 +02:00
|
|
|
```ls -lah /etc/apk/keys/build-xxxxxxxx.rsa.pub```
|
2022-10-19 11:48:25 +02:00
|
|
|
|
2022-10-19 11:55:03 +02:00
|
|
|
##Clone the git repository :
|
2022-10-19 11:48:25 +02:00
|
|
|
|
2022-10-19 11:55:03 +02:00
|
|
|
```git clone --depth=1 https://gitlab.alpinelinux.org/alpine/aports.git```
|
2022-10-19 11:48:25 +02:00
|
|
|
|
2022-10-19 11:55:03 +02:00
|
|
|
##Update :
|
2022-10-19 11:48:25 +02:00
|
|
|
|
2022-10-19 11:55:03 +02:00
|
|
|
```sudo apk updat```
|
2022-10-19 11:48:25 +02:00
|
|
|
|
2022-10-19 11:55:03 +02:00
|
|
|
Copy script 'create-iso.sh' in '/home/build'
|
2022-10-19 11:48:25 +02:00
|
|
|
|
|
|
|
You must enter a profile name to launch the creation of the iso. The iso is built with Edge sources to have Kubernetes tools.
|
|
|
|
For example ./create-iso.sh myKube.
|
|
|
|
The iso is generated in the ~/iso folder.
|