An open API service indexing awesome lists of open source software.

https://github.com/tsertkov/docker-builder

Builder - docker image for dedicated builds
https://github.com/tsertkov/docker-builder

Last synced: about 2 months ago
JSON representation

Builder - docker image for dedicated builds

Awesome Lists containing this project

README

        

# docker-builder

[![](https://badge.imagelayers.io/tsertkov/builder:latest.svg)](https://imagelayers.io/?images=tsertkov/builder:latest 'Get your own badge on imagelayers.io')

> Docker image for dedicated builds.

Based on latest Ubuntu and contains:

- build-essential
- golang
- git
- mercurial

## Usage

Get the image from hub or build it yourself:

`docker pull tsertkov/docker-builder`

Image expects `/build` data volume to be mounted and contain `build.sh` shell script which will be executed by `/bin/sh` within container when it starts.

## Example build.sh script

```sh
GOPATH=$(pwd) go get github.com/golang/example/hello
cp bin/hello /build/hello
```

Check [hellogo.sh](https://github.com/tsertkov/docker-builder/blob/master/examples/hellogo.sh) example compiling hello go app with docker-builder.