A collection of tools for building the docker images used by the FarmData2 development environment.
The following command will build the image described by the Dockerfile
in <dir>
for the architecture of the host machine.
./build-images.bash -d <dir>
For example, the following command builds the farmos2
image locally for the architecture of the host machine:
./build-images.bash -d farmos2
Multiple images can be built with a single command by listing each of their directory names. For example, the following command builds the farmos2 and the postgres images:
./build-images.bash -d farmos2 postgres
To build multi architecture images:
- Use
docker login
to log into dockerhub asfarmdata2
. - Use the commands as above but:
- omit the
-d
flag. - add the
-p
flag.
- omit the
./build-images.bash -p fd2dev
Notes:
- Logging in to dockerhub as
farmdata2
requires authentication that is available only to project maintainers. - To modify the architectures for which images are built edit the
PLATFORMS
variable in thebuild-images.bash
script.