Skip to content

wasfree/golang-docker-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Go Report Card Coverage Status Docker Pulls

Golang Docker Sample

Golang Docker Sample is an example on how to test, build and publish a go app on Github.

Quick Start

This repository produces a Docker image on Dockerhub:

# Start docker image
docker run nmetz/golang-docker-sample:latest

Building and running

To build only sample app on your local machine it's required to have Golang Language installed. To install Golang please follow this instructions here.

# Clone git repository
git clone https://github.com/NickMetz/golang-docker-sample
# Run go Build
go build cmd/golang-docker-sample/main.go

Environment Variables

The following environment variables configure the Golang Docker Sample:

Name Description Default
PARALLEL_JOBS Define how many jobs should run in parallel. 5
LIMIT_JOBS Limit how many jobs should be executed in total. Default to 0 for infinity job execution. 0

About

Sample app to introduce test, build and publish with go, docker, travis ci.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published