terraform-provider-libvirt/contrib/Build
Jim Crowley a333970f70 Fixed bug in openSUSE all in one container. Added quickstart section. Made build containers a different section. Added build argument section. Remove unneeded words 2019-08-29 16:04:00 -04:00
..
Dockerfile_glibc Pulling Docker examples into contrib examples (#1) 2019-08-22 11:39:02 -04:00
Dockerfile_musl Pulling Docker examples into contrib examples (#1) 2019-08-22 11:39:02 -04:00
README.md Fixed bug in openSUSE all in one container. Added quickstart section. Made build containers a different section. Added build argument section. Remove unneeded words 2019-08-29 16:04:00 -04:00

README.md

Build Containers

These containers build the terraform libvirt provider. There are two Dockerfiles due to the fact that some linux systems use musl while others use glibc. These are just two different implementations of the libc, each having their benefits. "Most" systems use glibc but there are a couple linux distributions like Alpine that use musl. When in doubt, use glibc.

These containers will be mostly used as one of the stages in the multi-stage Dockefiles you'll find here. They also have the benefit of storing the binary in the container, thus you could use a docker copy to grab the binary and use it on your local system.

General Usage

As stated before in the general README, these containers have build arguments.

To build the two containers use these commands:

docker build -f Dockerfile_glibc -t provider-libvirt:v0.5.2-glibc . --build-arg VERSION=v0.5.2

Which would build the glibc version with the code of the v0.5.2 branch.

docker build -f Dockerfile_musl -t provider-libvirt:master-musl . --build-arg VERSION=master

Which would build the musl version with the code of the master branch.