Finalize restructuralization
This commit is contained in:
parent
048c0053f5
commit
f1fb7607b5
@ -4,12 +4,12 @@ set -ev
|
|||||||
ROOT=$(dirname $(dirname $(realpath "${0}")))
|
ROOT=$(dirname $(dirname $(realpath "${0}")))
|
||||||
|
|
||||||
# Build documentation
|
# Build documentation
|
||||||
cd ${ROOT}/_doc
|
cd ${ROOT}/doc
|
||||||
make html
|
make html
|
||||||
|
|
||||||
# Build basic.tar
|
# Build basic.tar
|
||||||
cd ${ROOT}/_vm
|
cd ${ROOT}/vm
|
||||||
tar cpf /srv/build/_vm.tar *
|
tar cpf /srv/build/vm.tar *
|
||||||
|
|
||||||
# Build native apps
|
# Build native apps
|
||||||
cd ${ROOT}/apk/acme-sh
|
cd ${ROOT}/apk/acme-sh
|
@ -20,7 +20,7 @@ setup-interfaces
|
|||||||
ifup eth0
|
ifup eth0
|
||||||
|
|
||||||
# Download and launch the setup script
|
# Download and launch the setup script
|
||||||
wget repo.spotter.cz/_vm.sh
|
wget repo.spotter.cz/vm.sh
|
||||||
sh _vm.sh
|
sh _vm.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ Follow the VM creation steps as above. Once the VM is built and restarted, log i
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install git and OpenSSH client
|
# Install git and OpenSSH client
|
||||||
apk --no-cache add git openssh-client
|
apk add git openssh-client
|
||||||
|
|
||||||
# Create SSH key
|
# Create SSH key
|
||||||
ssh-keygen -t ecdsa
|
ssh-keygen -t ecdsa
|
||||||
@ -49,7 +49,7 @@ Assign the newly generated key to your GitLab account
|
|||||||
git clone --recurse-submodules ssh://git@git.spotter.cz:2222/Spotter-Cluster/Spotter-Cluster.git
|
git clone --recurse-submodules ssh://git@git.spotter.cz:2222/Spotter-Cluster/Spotter-Cluster.git
|
||||||
|
|
||||||
# Install the build toolchain
|
# Install the build toolchain
|
||||||
Spotter-Cluster/_build/install-toolchain.sh
|
Spotter-Cluster/build/install-toolchain.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### Building the packages
|
### Building the packages
|
@ -85,7 +85,7 @@ chroot /mnt setup-timezone -z Europe/Prague
|
|||||||
|
|
||||||
# Install basic system
|
# Install basic system
|
||||||
apk --no-cache add apache2-utils gettext
|
apk --no-cache add apache2-utils gettext
|
||||||
wget https://repo.spotter.cz/_vm.tar -O - | tar xf - -C /mnt
|
wget https://repo.spotter.cz/vm.tar -O - | tar xf - -C /mnt
|
||||||
chroot /mnt apk --no-cache add bridge ca-certificates curl e2fsprogs-extra gettext iptables kbd-misc libressl lxc postfix nginx openssh-server openssh-sftp-server util-linux wireguard-virt@vm wireguard-tools-wg@vm acme-sh@vm vmmgr@vm
|
chroot /mnt apk --no-cache add bridge ca-certificates curl e2fsprogs-extra gettext iptables kbd-misc libressl lxc postfix nginx openssh-server openssh-sftp-server util-linux wireguard-virt@vm wireguard-tools-wg@vm acme-sh@vm vmmgr@vm
|
||||||
chroot /mnt newaliases
|
chroot /mnt newaliases
|
||||||
mkdir -p /mnt/var/log/lxc
|
mkdir -p /mnt/var/log/lxc
|
Loading…
Reference in New Issue
Block a user