Scripts to build systemd-docker (or a fork) in a Docker container. Useful if Golang is not available or desired on the Docker host itself.
- runs the default golang Docker image
golang:latest
with the folder in whichrun_compilation.sh
lies bind mounted into the container to makehandle_go_get.sh
available handle_go_get.sh
is run inside the container- executes
go get
- copies the executable from
/go/bin
to the folder wherehandle_go_get.sh
is
- executes
- once these operations are finished, the container shuts down; the Docker client removes it
systemd-docker
is available in the same folder asrun_compilation.sh
- Clone this repository on a machine with Docker installed
- run
run_compilation.sh [<git-go-uri>]
-
if no
git-go-uri
is provided, it defaults to github.com/dontsetse/systemd-docker (repository) -
git-go-uri
should be ago get
compatible URI - a GitHub repository with the URL patternhttps://github.com/<username>/<repository_name>.git
should be specified as
github.com/<username>/<repository_name>
-