Sign inSign up

jcajka/fedora-golang

By jcajka

Updated over 9 years ago

Docker image based on the Fedora base image including the golang from the distribution.

Image
0

5.5K

jcajka/fedora-golang repository overview

fedora-golang

Dockerfiles for Fedora based images with golang

Tag overview

Fedora releaseGo versionTag
Fedora 25go1.7.325, latest
Fedora 24go1.6.324
Fedora 23go1.5.423
Fedora 24go1.7.324-go1.7
Fedora 23go1.7.323-go1.7
Fedora 25go-devel25-tip
Fedora 24go-devel24-tip
Fedora 23go-devel23-tip

Go1.7 is obtained from https://copr.fedorainfracloud.org/coprs/jcajka/golang1.7/ Go-devel is obtained from https://copr.fedorainfracloud.org/coprs/jcajka/golang-rawhide/

Basic usage

Directly running the container will output version of the pre-installed go compiler.

For example building etcd by bind mounting the source(GOPATH) directory in to the container and putting resulting binary in to separate bind mounted output directory.

mkdir -p /home/user/etcd-path
mkdir -p /home/user/etcd-bin
GOPATH=/home/user/etcd-gopath go get -d github.com/coreos/etcd
sudo docker run --env=GOPATH=/gopath --volume=/home/user/etcd-gopath:/gopath:Z --volume=/home/user/tmp/etcd-bin:/gobin:Z jcajka/fedora-golang:24-go1.7 go build -o /gobin/etcd github.com/coreos/etcd

Note: Adjust paths accordingly to your environment.


PS: It is awesome as docker hub is always using this file, for the corresponding docker hub repo description. Even when the description were manually edited in docker hub web UI... :/

Tag summary

Content type

Image

Digest

Size

165.3 MB

Last updated

almost 10 years ago

docker pull jcajka/fedora-golang