Skip to content

carlRondoni/go-basic-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-build-env

This is tiny repo for a work env for golang projects and create the binaries.

For Dockerfile

https://www.docker.com/blog/containerize-your-go-developer-environment-part-1/

https://www.docker.com/blog/containerize-your-go-developer-environment-part-2/

https://www.docker.com/blog/containerize-your-go-developer-environment-part-3/

NOTE: I saw is outdated because the experimental syntax for docker doesnt exist anymore, now installing the buildx package on your system does everything.

For basic folder structure

thanks to Melkey video:

https://www.youtube.com/watch?v=dxPakeBsgl4&t=3s

For build and non-root user

https://snyk.io/blog/containerizing-go-applications-with-docker/

Requirements

  • docker
  • docker buildx
  • go

Initilize the module with:

go mod init {your-repo-url-here}

Comands:

Check Makefile

About

A simple golang compile/test env for local

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published