https://github.com/webmasterdevlin/golang-k8s
Sample JSON response at /
https://github.com/webmasterdevlin/golang-k8s
Last synced: about 1 year ago
JSON representation
Sample JSON response at /
- Host: GitHub
- URL: https://github.com/webmasterdevlin/golang-k8s
- Owner: webmasterdevlin
- Created: 2020-07-06T21:33:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T22:05:12.000Z (almost 6 years ago)
- Last Synced: 2024-04-28T03:29:29.249Z (about 2 years ago)
- Language: Go
- Homepage: https://hub.docker.com/repository/docker/webmasterdevlin/golang-k8s
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Dockerizing a GoLang Web API
Login to Docker Hub
```zsh
$ docker login
```
create a GoLang Web API container
```zsh
$ docker build -t {yourDockerUsername}/golang-api:1.0.0 .
```
Test the GoLang Web API container by running it. It should be visible at localhost:8080
```zsh
$ docker run -p 8080:8080 {yourDockerUsername}/golang-api:1.0.0
```
Push the container to your Docker Hub account repository
```zsh
$ docker push {yourDockerUsername}/golang-api:1.0.0
```