8000 Docker: Containerizing few simple Golang applications by malayparida2000 · Pull Request #7 · Yuggupta27/odf-interns · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Docker: Containerizing few simple Golang applications #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

malayparida2000
Copy link
Contributor

I have tried to practice conainerizing few simple golang applications. The 1st one was a simple hello world. Then in the 2nd one I practiced with a application having go modules and needing exposing ports. In the 3rd & 4th I practiced how images can be build in multistages and distroless images can be used to reduce final image size.

It's a simple Container based on golang which just prints Hello World on execution

Signed-off-by: Malay Kumar Parida <mparida@redhat.com>
This golang application uses module, So i have shown how they are handled in containerization.
This also exposes a port to the host machiene where we can see the output.

Signed-off-by: Malay Kumar Parida <mparida@redhat.com>
Here to reduce the size of our resulting image we have used a distroless image for our final deployment.
This reduces our image size a lot.

Signed-off-by: Malay Kumar Parida <mparida@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0