Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bithavoc/hello-world-env
A docker image for learning and testing with web apps and environment variables
https://github.com/bithavoc/hello-world-env
docker environment-variables go hello-world
Last synced: about 13 hours ago
JSON representation
A docker image for learning and testing with web apps and environment variables
- Host: GitHub
- URL: https://github.com/bithavoc/hello-world-env
- Owner: bithavoc
- Created: 2018-07-02T22:42:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T15:15:23.000Z (over 4 years ago)
- Last Synced: 2023-04-10T03:12:24.489Z (over 1 year ago)
- Topics: docker, environment-variables, go, hello-world
- Language: Go
- Homepage: https://hub.docker.com/r/bithavoc/hello-world-env
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## hello-world-env
A docker image for learning and testing with web apps and environment variables.
```
bithavoc/hello-world-env
```### Using with local docker
```
docker run --publish=3000:3000 --rm bithavoc/hello-world-env
``````
GET http://localhost:3000/this
```Prints
```
Hi there, I love this!
```### Using with command arguments
```
docker run --publish=3000:3000 --rm bithavoc/hello-world-env /root/app -message "cool by arg"
```### Using with environment variables
```
docker run --publish=3000:3000 --rm -e "MESSAGE=cool by env" bithavoc/hello-world-env
``````
GET http://localhost:3000/this
```Prints
```
Hi there, I love this! cool
```