little things to setup & run tests (using docker)
This commit is contained in:
parent
3dc1707e01
commit
f4736bd1b9
|
@ -1,6 +1,6 @@
|
||||||
FROM elixir:alpine
|
FROM elixir:alpine
|
||||||
|
|
||||||
RUN apk add --no-cache inotify-tools postgresql-client yarn file make gcc libc-dev argon2 imagemagick cmake build-base libwebp-tools bash ncurses git
|
RUN apk add --no-cache inotify-tools postgresql-client yarn file make gcc libc-dev argon2 imagemagick cmake build-base libwebp-tools bash ncurses git python3
|
||||||
|
|
||||||
RUN mix local.hex --force && mix local.rebar --force
|
RUN mix local.hex --force && mix local.rebar --force
|
||||||
|
|
||||||
|
|
14
Makefile
14
Makefile
|
@ -1,5 +1,5 @@
|
||||||
init:
|
init:
|
||||||
@bash docker/message.sh "start"
|
@bash docker/message.sh "Start"
|
||||||
make start
|
make start
|
||||||
|
|
||||||
setup: stop
|
setup: stop
|
||||||
|
@ -10,16 +10,16 @@ migrate:
|
||||||
logs:
|
logs:
|
||||||
docker-compose logs -f
|
docker-compose logs -f
|
||||||
start: stop
|
start: stop
|
||||||
@bash docker/message.sh "starting Mobilizon with docker"
|
@bash docker/message.sh "Starting Mobilizon with Docker"
|
||||||
docker-compose up -d api
|
docker-compose up -d api
|
||||||
@bash docker/message.sh "Docker server started."
|
@bash docker/message.sh "Docker server started"
|
||||||
stop:
|
stop:
|
||||||
@bash docker/message.sh "stopping Mobilizon"
|
@bash docker/message.sh "Stopping Mobilizon"
|
||||||
docker-compose down
|
docker-compose down
|
||||||
@bash docker/message.sh "stopped"
|
@bash docker/message.sh "Mobilizon is stopped"
|
||||||
test: stop
|
test: stop
|
||||||
@bash docker/message.sh "Running tests"
|
@bash docker/message.sh "Running tests"
|
||||||
docker-compose -f docker-compose.yml -f docker-compose.test.yml run api mix test
|
docker-compose -f docker-compose.yml -f docker-compose.test.yml run api mix test $(only)
|
||||||
@bash docker/message.sh "Tests runned"
|
@bash docker/message.sh "Done running tests"
|
||||||
|
|
||||||
target: init
|
target: init
|
||||||
|
|
Loading…
Reference in a new issue