Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

4km3/hms-containerbuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hms-containerbuilder

Build a container defined in a git repo and upload to hub.docker.com

Building

$ docker build -t 4km3/hms-containerbuilder .

Configuration

Default values


: "${GITHUB_REPO?Need a repository name}" 
: "${GITHUB_USER?Need a GitHub user}" 
: "${DOCKERHUB_USER?Need a DockerHub user}" 
: "${DOCKERHUB_PASS?Need a DockerHub pass}" 

Recommended values

By passing these values when running:

GITHUB_REPO=<Repository name containing the Maven project>
GITHUB_USER=<GitHub username containing the repo>
DOCKERHUB_USER=<DockerHub user> 
DOCKERHUB_PASS=<DockerHub pass> 

you will meet the minimum requirements. Also you might need to modify some of the other default values.

Running

#!/usr/bin/env bash

docker run                                                                     \
  --rm                                                                         \
  -e GITHUB_REPO=$GITHUB_REPO                                                  \
  -e GITHUB_USER=$GITHUB_USER                                                  \
  -e DOCKERHUB_USER=$DOCKERHUB_USER                                            \
  -e DOCKERHUB_PASS=$DOCKERHUB_PASS                                            \
  4km3/hms-containerbuilder

Also a runme script is provided for convenience

Authors

pancho horrillo pancho@pancho.name

Rodrigo de la Fuente rodrigo@delafuente.email

Acknowledgements

Thanks to Raúl Sánchez @rawmind0 for his invaluable guidance!

Releases

No releases published

Packages

No packages published

Languages