https://github.com/noud/helloworld-server-erlang-docker
Runs a helloworld webserver in Erlang in Docker
https://github.com/noud/helloworld-server-erlang-docker
Last synced: about 1 year ago
JSON representation
Runs a helloworld webserver in Erlang in Docker
- Host: GitHub
- URL: https://github.com/noud/helloworld-server-erlang-docker
- Owner: noud
- Created: 2024-08-20T17:17:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-30T18:49:11.000Z (almost 2 years ago)
- Last Synced: 2025-03-18T23:05:31.280Z (about 1 year ago)
- Language: Erlang
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
https://www.erlang.org/faq/getting_started
```
erl -compile hello.erl
erl -eval "hello:hello_world()." -eval "init:stop()."
```
https://www.tutorialspoint.com/erlang/erlang_web_programming.htm
```
erl -compile helloworld.erl
erl -eval 'inets:start().' -eval 'helloworld:start().'
```
http://localhost:8081/erl/helloworld:service
https://www.freecodecamp.org/news/a-beginners-guide-to-docker-how-to-create-your-first-docker-application-cc03de9b639f/
```
docker build -t erlang-helloworld .
docker run -dit erlang-helloworld
docker ps
docker stop
docker image rm erlang-helloworld
```
https://github.com/erlang/docker-erlang-example/tree/master
```
docker ps
docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'
```
https://stackoverflow.com/questions/28212380/why-docker-container-exits-immediately
https://docs.docker.com/reference/compose-file/build/
```
docker-compose up
```
You can browse the server at location
```
http://:8081/erl/helloworld:service
```