You have 2 ways to get the docker image on your host:
- Getting the image from the docker's hub
- Building the image yourself
This is the easiest and fastest way.
docker image pull librebooking/librebooking
You have 3 ways to build the docker image.
Regardless of the chosen option, you need to clone this repository:
git clone https://github.com/librebooking/docker.git
Item | Value |
---|---|
Builder | On your host |
Image | On your host |
Platform | your host architecture |
Run the following commands:
LB_RELEASE=2.8.5 # or any other librebooking release
docker buildx build \
--tag librebooking:${LB_RELEASE} \
--build-arg LB_RELEASE=${LB_RELEASE} \
--output type=docker \
.
Item | Value |
---|---|
Builder | On your host |
Image | On hub.docker.com |
Platform | linux/amd64,linux/arm64,linux/arm/v7 |
Run the following commands:
LB_RELEASE=2.8.5 # or any other librebooking release
REGISTRY_USER=your_registry_user
docker login --username ${REGISTRY_USER}
docker run --privileged tonistiigi/binfmt -install all
docker buildx build \
--tag ${REGISTRY_USER}/librebooking:${LB_RELEASE} \
--build-arg LB_RELEASE=${LB_RELEASE} \
--output type=registry \
--platform=linux/amd64,linux/arm64,linux/arm/v7 \
.
Item | Value |
---|---|
Builder | On github.com |
Image | On hub.docker.com |
Platform | linux/amd64,linux/arm64,linux/arm/v7 |
- Create a github secret, called
REGISTRY_TOKEN
, to store your registry personal access token - Run the github action
Docker
- Specify the librebooking release
- If necessary, modify the registry name and login name
- Seat back and relax