Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

teamsnap/go-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeamSnap Golang Hello World

TLDR: Update cmd/root.go to print something different to your terminal when you run the binary!

Build and Run with docker-compose

make start

Bash into container

docker exec -it golang bash

Stop docker-compose

make stop

Build image explicitly

make docker_build

or...

docker build -f "$(pwd)/build/package/Dockerfile" -t go-docker:latest .

Run container without docker-compose

make docker_run

or...

docker run -v "$(pwd)":/go/src/github.com/teamsnap/go-docker -it go-docker:latest bash

Build binaries (MacOS and Linux)

From inside the container:

make build

Will output

  • 2.0M ./go-docker.darwin
  • 1.9M ./go-docker.linux

Run binaries

From inside the container:

./go-docker.linux

From on host machine (MacOS):

./go-docker.darwin

Directory Structure

.
├── Makefile
├── README.md
├── build
│   └── package
│       └── Dockerfile
├── cmd
│   └── root.go
├── deployments
│   └── docker-compose.yml
├── go-docker.darwin
├── go-docker.linux
└── main.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •