Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.21 KB

README.md

File metadata and controls

24 lines (19 loc) · 1.21 KB

systemd-docker build container

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 which run_compilation.sh lies bind mounted into the container to make handle_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 where handle_go_get.sh is
  • once these operations are finished, the container shuts down; the Docker client removes it
  • systemd-docker is available in the same folder as run_compilation.sh

How To

  • 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 a go get compatible URI - a GitHub repository with the URL pattern

      https://github.com/<username>/<repository_name>.git

      should be specified as

      github.com/<username>/<repository_name>