mirror of
https://github.com/wofferl/proxmox-backup-arm64
synced 2025-12-06 00:13:41 +00:00
Build using docker
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
FROM debian:bullseye-slim as builder-stage
|
||||||
|
|
||||||
|
RUN apt update && 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
|
||||||
|
|
||||||
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
|
|
||||||
|
COPY . /build/
|
||||||
|
WORKDIR /build
|
||||||
|
|
||||||
|
SHELL ["/bin/bash", "-c"]
|
||||||
|
RUN source ~/.cargo/env && ./build.sh
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=builder-stage /build/packages/* ./packages/
|
||||||
16
README.md
16
README.md
@@ -2,20 +2,21 @@
|
|||||||
Script for building Proxmox Backup Server 2.x for Armbian64 based on Bullseye<br />
|
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).
|
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 \
|
apt-get install -y --no-install-recommends \
|
||||||
build-essential curl ca-certificates sudo git lintian \
|
build-essential curl ca-certificates sudo git lintian \
|
||||||
pkg-config libudev-dev libssl-dev libapt-pkg-dev libclang-dev \
|
pkg-config libudev-dev libssl-dev libapt-pkg-dev libclang-dev \
|
||||||
libpam0g-dev
|
libpam0g-dev
|
||||||
```
|
```
|
||||||
## Install ``rustup``
|
### 2. Install ``rustup``
|
||||||
```
|
```
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -sSf | sh -s
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -sSf | sh -s
|
||||||
source ~/.cargo/env
|
source ~/.cargo/env
|
||||||
```
|
```
|
||||||
|
|
||||||
## Start build script
|
### 3. Start build script
|
||||||
```
|
```
|
||||||
./build.sh
|
./build.sh
|
||||||
```
|
```
|
||||||
@@ -23,6 +24,15 @@ source ~/.cargo/env
|
|||||||
The compilation can take several hours.<br />
|
The compilation can take several hours.<br />
|
||||||
After that you can find the finished packages in the folder packages/
|
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
|
## Install all needed packages
|
||||||
### Server
|
### Server
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user