action-demo

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2023 License: MIT Imports: 4 Imported by: 0

README

go_k8s_CICD

Running echo app locally

cd echo
go run main.go

Build Docker image

docker build --tag echo-hello .
docker image ls

Tag images

docker image tag echo-hello:latest echo-hello:v1.0

Delete image

docker image rm echo-hello:v1.0

Multistage Docker build

docker build -t echo-hello:multistage -f Dockerfile.multistage .

Multistate build reduces image size signicantly. For more details, refer distroless.

Run docker image with host port map to container port

docker run -p 8080:8080 <IMAGE_ID>

You can access the app with curl command.

curl http://localhost:8080

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL