Sign inSign up

vltraheaven/godev-docker

By vltraheaven

Updated almost 7 years ago

A Containerized, Fedora-powered Go Development Environment

Image
0

950

vltraheaven/godev-docker repository overview

GoDev-Docker

logo

A Containerized, Fedora-powered Go Development Environment

Build Status

I got tired of encountering weird hiccups while developing and testing on my host so I made this container image so that I can develop in a clean environment and be able to quickly trash it when I invariably screw something up. It's built on the Fedora container image and has Go Modules activated by default. I suggest creating an alternate go project folder (named 'go-projects' in the following instructions) in your home directory prior to running this image.

Building the Container Image

$ git pull https://github.com/VltraHeaven/godev-docker
$ cd ./godev-docker
$ docker build -t godev-docker .

Alternatively, you can pull the image from DockerHub

$ docker pull vltraheaven/godev-docker

Running the Container

$ docker run -it --rm -v $HOME/go-projects:/home/golang/go -name godev-docker godev-docker

The Dockerfile creates a user with the username 'golang' and UID|GID of '1000', adds the account as a password-less sudoer and starts the container within the context of this user. Feel free to change any of these settings at your discretion.

Tag summary

Content type

Image

Digest

Size

486.8 MB

Last updated

almost 7 years ago

docker pull vltraheaven/godev-docker