add scripts to run go, gofmt in docker

This commit is contained in:
Frieder Schlesier 2016-03-20 10:35:23 +01:00
parent ea16c9e60d
commit f54d364ab4
2 changed files with 28 additions and 0 deletions

10
bin/go Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# execute go command inside a container
#
set -o pipefail
source $HOME/.dockerfunc
go $@

18
bin/gofmt Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
# execute go command inside a container
#
set -o pipefail
set -x
source $HOME/.dockerfunc
# TODO: increase performance for go commands
# check directory calling from
# USE LABELS https://docs.docker.com/engine/userguide/labels-custom-metadata/#query-labels
# run a go-dev container for that go application
# check if maybe there is already a container running for this app
# if so, just docker exec the command inside this app container
go fmt $@