Skip to content

🐳 gockerfile is a YAML Docker-compatible alternative to the Dockerfile Specializing in simple go server.

License

Notifications You must be signed in to change notification settings

spacedub/gockerfile

 
 

Repository files navigation

gockerfile

GolangCI

🐳 gockerfile is a YAML Docker-compatible alternative to the Dockerfile Specializing in simple go server.

Instalation as cmd

$ go get -u github.com/po3rin/gockerfile/cmd/gocker

Usage

po3rin/gocker config file

create Gockerfile.yaml (Gockerfile supports only 3 fields)

#syntax=po3rin/gocker

repo: github.com/po3rin/gockerfile
path: ./example/server
version: v0.0.1 # default master

repo is git repository. path is path to main.go.

Build Gockerfile using docker build

you can build Gockerfile.yaml with docker build

$ DOCKER_BUILDKIT=1 docker build -f Gockerfile.yaml -t po3rin/gockersample .

Build Gockerfile with builtctl

using as buildkit frontend.

buildctl build \
		--frontend=gateway.v0 \
		--opt source=po3rin/gocker \
		--local gockerfile=. \
		--output type=docker,name=gockersample | docker load

Run container

You can run go API container as it is.

$ docker run -it -p 8080:8080 po3rin/gockersample:latest /bin/server
$ curl localhost:8080/
Hello World

About

🐳 gockerfile is a YAML Docker-compatible alternative to the Dockerfile Specializing in simple go server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 85.5%
  • Makefile 12.3%
  • Dockerfile 2.2%