1
0
This repository has been archived on 2024-10-08. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2021-12-13 13:55:22 +01:00
docker-compose.yml Added arguments for GitBucket's version and the JRE RAM, Exposed HTTPS port, Improved the readme 2021-12-13 13:52:25 +01:00
Dockerfile Removed commented instructions 2021-12-13 13:55:22 +01:00
LICENSE Added license file 2021-11-21 03:31:58 +01:00
readme.md Added arguments for GitBucket's version and the JRE RAM, Exposed HTTPS port, Improved the readme 2021-12-13 13:52:25 +01:00

Docker - GitBucket for ARM64

A simple docker-compose file that can be used to create a GitBucket container on SBCs.

Requirements

CPU Architecture: ARM64 (Use the official image for AMD64)
RAM: Between 256 and 512 MiB
HDD: Around 200 MiB

Remarks

This container is not intended to be used with an external database and forces GitBucket to use a local DB.
However, it should be relatively easy to use an external one if you change the DATABASE_URL environment variable.

This container also uses the Temurin OpenJDK distribution from Adoptium and not the openjdk-11-jre-headless and openjdk-11-jdk-headless packages from bitnami/minideb.

This repository has only been tested with on GitBucket v4.36.0 to v4.37.0 !

Building

Docker

TODO

Docker-compose

  1. Clone the repository
  2. Configure the files according to the Configuration section.
  3. Run docker-compose up in the cloned repository's folder.

Configuration

Dockerfile (Not recommended)

You can remove the last part of the second instruction to prevent the installation of Git if you don't intend to use any extension that requires it to be installed.

You can also edit the last CMD instruction to change the -Xms128m and -Xmx256m JVM arguments to more appropriate values if you need to support more than a couple concurent users and don't want to edit the docker-compose file or you docker build command.

Docker-compose

You can change GitBucket version by changing the GITBUCKET_DESIRED_VERSION build argument to the desired version number.

You can also uncomment and edit the GITBUCKET_HOME and DATABASE_URL environment variables if you intend to use an external database and/or data folder.

Finally, you can change the JVM_RAM_MIN and JVM_RAM_MAX environment variables to change the amount of RAM allocated to the JVM if you need to support more than a couple concurent users.

License

Unlicensed

This license does not apply to GitBucket, Java and any of the other applications used by this container.