-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (25 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.PHONY: database down-database download-data
download-data:
wget https://dadosabertos.camara.leg.br/arquivos/deputados/json/deputados.json -O scripts/deputados.json
wget https://dadosabertos.camara.leg.br/arquivos/proposicoes/json/proposicoes-2023.json -O scripts/proposicoes-2023.json
wget https://dadosabertos.camara.leg.br/arquivos/proposicoesAutores/json/proposicoesAutores-2023.json -O scripts/proposicoesAutores-2023.json
generate-model-build:
docker compose -f docker-compose-execute.yaml build
generate-model:
docker compose -f docker-compose-execute.yaml up
jupyer-local-build:
docker compose -f docker-compose-jupyter-local.yaml build
jupyer-local:
docker compose -f docker-compose-jupyter-local.yaml up
jupyer-local-down:
docker compose -f docker-compose-jupyter-local.yaml down
database:
docker container run --rm \
-e POSTGRES_USER='docker' \
-e POSTGRES_PASSWORD='docker' \
-e POSTGRES_DB='tcc' \
-p 5432:5432 \
--hostname postgres \
--name postgres \
-v ./database/dumps:/docker-entrypoint-initdb.d \
postgres:latest