-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from fga-eps-mds/feature_#125
Added makefiles
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# DOCKER | ||
include makefiles/docker.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# DOCKER DEPLOY ------------------------------------------------ | ||
file := "docker-compose.yml" | ||
|
||
up: | ||
# Create and start containers | ||
sudo docker-compose up | ||
|
||
build: | ||
# Rebuild the docker compose | ||
sudo docker-compose build | ||
|
||
restart: | ||
# Restart services | ||
sudo docker-compose restart | ||
|
||
logs: | ||
# View output from containers | ||
sudo docker-compose logs | ||
|
||
start: | ||
# Start services | ||
sudo docker-compose start | ||
|
||
stop: | ||
# Stop services | ||
sudo docker-compose stop | ||
|
||
ps: | ||
# List all running containers | ||
sudo docker-compose ps | ||
|
||
down: | ||
# Stop and Remove all containers | ||
sudo docker-compose down | ||
|
||
migrations: | ||
# Create migrations from importdata models | ||
sudo docker-compose run igdbweb python manage.py makemigrations importdata | ||
|
||
migrate: | ||
# Migrate migrations from importdata on database | ||
sudo docker-compose run igdbweb python manage.py migrate importdata | ||
|
||
fixture: | ||
# Generate fixtures saved upon importdata models | ||
sudo docker-compose run igdbweb python manage.py dumpdata importdata --format json > IGDBService/importdata/fixtures/data.json | ||
|
||
loaddata: | ||
# load fixtures saved upon importdata models | ||
sudo docker-compose run igdbweb python manage.py loaddata data.json |