2018-12-17 10:24:26 +00:00
|
|
|
init:
|
|
|
|
@bash docker/message.sh "start"
|
|
|
|
make start
|
|
|
|
|
2021-08-04 09:50:32 +00:00
|
|
|
setup: stop
|
|
|
|
@bash docker/message.sh "Compiling everything"
|
|
|
|
docker-compose run --rm api bash -c 'mix deps.get; yarn --cwd "js"; yarn --cwd "js" build:pictures; mix ecto.create; mix ecto.migrate'
|
|
|
|
migrate:
|
|
|
|
docker-compose run --rm api mix ecto.migrate
|
|
|
|
logs:
|
|
|
|
docker-compose logs -f
|
2018-12-17 10:24:26 +00:00
|
|
|
start: stop
|
2019-05-19 09:38:09 +00:00
|
|
|
@bash docker/message.sh "starting Mobilizon with docker"
|
2019-10-16 09:12:42 +00:00
|
|
|
docker-compose up -d api
|
2020-01-30 19:27:25 +00:00
|
|
|
@bash docker/message.sh "Docker server started."
|
2018-12-17 10:24:26 +00:00
|
|
|
stop:
|
2019-05-19 09:38:09 +00:00
|
|
|
@bash docker/message.sh "stopping Mobilizon"
|
2018-12-17 10:24:26 +00:00
|
|
|
docker-compose down
|
|
|
|
@bash docker/message.sh "stopped"
|
2019-04-17 15:17:27 +00:00
|
|
|
test: stop
|
|
|
|
@bash docker/message.sh "Running tests"
|
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.test.yml run api mix test
|
|
|
|
@bash docker/message.sh "Tests runned"
|
2018-12-17 10:24:26 +00:00
|
|
|
|
|
|
|
target: init
|