Implementation of the Protohackers challenges
- install elixir 1.14
- install docker
The server will listen on port 5555
run iex -S mix
to start the server locally
run telnet 127.0.0 5555
to test via telnet
docker build -t derhackler/protohack:0.3.0 .
docker push derhackler/protohack:0.3.0
- Register an account on stackpath.com
- Create a new stack called 'protohack'
- Create an API Token in the UI
- Set your environment variables:
export STACKPATH_CID=[YOUR_CLIENT_ID]
export STACKPATH_CS=[YOUR_CLIENT_SECRET]
- Compile the project
mix compile
- run
mix my.deploy derhackler/protohack:0.3.0
- copy the ip address from the ui
delete the workload via the stackpath ui