Docker¶
Docker build arguments¶
The farmOS Docker images allow certain variables to be overridden at
image build time using the --build-arg
parameter of docker build
.
Available arguments and their default values are described below:
FARMOS_REPO
- The farmOS Git repository URL.- Default:
https://github.com/farmOS/farmOS.git
- Default:
FARMOS_VERSION
- The farmOS Git branch/tag/commit to check out.- Default:
2.x
- Default:
PROJECT_REPO
- The farmOS Composer project Git repository URL.- Default:
https://github.com/farmOS/composer-project.git
- Default:
PROJECT_VERSION
- The farmOS Composer project Git branch/tag/commit to check out.- Default:
2.x
- Default:
The 2.x-dev
image also provides the following:
WWW_DATA_ID
- The ID to use for thewww-data
user and group inside the image. Setting this to the ID of the developer's user on the host machine allows Composer to create files owned by www-data inside the container, while keeping those files editable by the developer outside of the container. If your user ID is not1000
, build the image with:--build-arg WWW_DATA_ID=$(id -u)
- Default:
1000
- Default: