Makefile: allow for running with an arbitrary port number (#36)

The main program already has an option `--port`, but the default port
number 10000 is hard-coded in Makefile. So it's not possible to specify
an arbitrary port number. Let's define `LISTEN_PORT` in Makefile, so
you can specify the port number like that:

make dind LISTEN_PORT=8080
make run LISTEN_PORT=8080
1 file changed
tree: 65af78b5ff1193943dcf2f47678077dae9d88557
  1. .dockerignore
  2. .gitignore
  3. .goosarch
  4. .travis.yml
  5. .traviskey
  6. Dockerfile
  8. Dockerfile.dind
  10. Makefile
  12. VERSION.txt
  14. config/
  15. docker.go
  16. frontend/
  17. go.mod
  18. go.sum
  19. main.go
  20. seccomp.go
  21. server.go
  22. vendor/
  23. version/

Travis CI GoDoc Github All Releases

A game for learning about containers, capabilities, and syscalls.

To add a question edit this file: frontend/js/questions.js.

Run locally

Contained is made of a few components:

  • A static HTML and JavaScript frontend in frontend/
  • A Go web server in the project root
  • An isolated Docker installation, running inside a Docker container ("Docker-in-Docker").

Prepare the static frontend assets with:

make dev

Start an isolated Docker instance in the background with:

make dind

Build and run the server with:

make run

After a few moments, contained will be available at http://localhost:10000/.