Build using docker

This commit is contained in:
Simon Caron
2023-03-30 00:47:12 -04:00
parent 0abc0227d7
commit ecfa6723be
2 changed files with 30 additions and 3 deletions

View File

@@ -2,20 +2,21 @@
Script for building Proxmox Backup Server 2.x for Armbian64 based on Bullseye<br />
At least 4 GB are required for compiling. On devices with low memory, SWAP must be used (see help section).
## Install build essentials and dependencies
## Manual Build
### 1. Install build essentials and dependencies
```
apt-get install -y --no-install-recommends \
build-essential curl ca-certificates sudo git lintian \
pkg-config libudev-dev libssl-dev libapt-pkg-dev libclang-dev \
libpam0g-dev
```
## Install ``rustup``
### 2. Install ``rustup``
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -sSf | sh -s
source ~/.cargo/env
```
## Start build script
### 3. Start build script
```
./build.sh
```
@@ -23,6 +24,15 @@ source ~/.cargo/env
The compilation can take several hours.<br />
After that you can find the finished packages in the folder packages/
## Docker Build
You can build arm64 .deb packages using the provided Dockerfile and docker buildx:
```
docker buildx build --platform linux/arm64 .
```
Once the docker build is completed, packages will be copied from the docker build image to a folder named `packages` in the root folder.
## Install all needed packages
### Server
```