Skip to content

AFMalouin/bomberjam-contest

 
 

Repository files navigation

Bomberjam

HTTPS and a valid certificate (even self-signed) is required to run the website in a Docker container. This certificate must be shared from the host to the container using a volume.

Website Docker configuration

Building the image:

cd <project root path>
docker build --no-cache --tag bomberjam-website -f web.Dockerfile .

The default localhost development certificate is included in the .\https directory. Running the website with Docker:

docker run `
    -e SecretAuth__Secret=verysecret `
    -e ASPNETCORE_URLS="https://+;http://+" `
    -e ASPNETCORE_Kestrel__Certificates__Default__Password=mysuperpassword `
    -e ASPNETCORE_Kestrel__Certificates__Default__Path=/https/localhost.pfx `
    -v <project root path>\https\:/https/ `
    --rm -p 8080:443 bomberjam-website

Worker Docker configuration

Building the image:

cd <project root path>
docker build --no-cache --tag asimmon/bomberjam-worker:latest -f worker.Dockerfile .

The worker Docker container requires specific environment variables to communicate with the Bomberjam API. Also, privileged access is required by iptables and control groups. Running the worker:

docker run --rm --privileged `
    -e API_BASE_URL="https://localhost/api/" `
    -e API_AUTH_TOKEN="verysecret" `
    -e API_VERIFY_SSL="0" `
    bomberjam-worker

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 66.4%
  • TypeScript 13.2%
  • Python 10.3%
  • HTML 6.2%
  • Dockerfile 1.1%
  • JavaScript 1.0%
  • Other 1.8%