Skip to content

gesundkrank/mrfoosball

Repository files navigation

Mr Foosball Build Status

Configuration

Create your test configuration in your project folder as ./mrfoosball.properties.

Example configuration file:

port=8080
slackToken=xoxb-1564223413123-adkjADAsjdladdj
connectionHbm2ddl=create-drop

Run App Locally

./gradlew [-Pproduction] composeUp

To see the logs of the container do

docker logs `docker ps --filter 'name=mrfoosball_mrfoosball' --format '{{.ID}}'`

To shut down all containers exec

./gradlew composeDown

Dockerize Production Version

./gradlew buildDocker

Terraform

Run Terraform only for network setup (vpc & dns)

terraform apply -target=module.network_setup

Creates the docker package and pushes it to the registry.

To get access to the registry do aws ecr get-login --no-include-email and execute the returned docker command.