-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore ability to run training portal on local machine for testing.
- Loading branch information
1 parent
b4f5797
commit bb5ccb8
Showing
7 changed files
with
67 additions
and
33 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.git* | ||
.docker* | ||
data/db.sqlite3 | ||
data/secret-key.txt | ||
src/static | ||
testing | ||
venv |
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,26 @@ | ||
all: | ||
|
||
venv: | ||
python3 -m venv venv | ||
|
||
update-packages: | ||
venv/bin/pip install -r requirements.txt | ||
|
||
.PHONY: src/static | ||
|
||
src/static: | ||
venv/bin/python src/manage.py collectstatic --no-input | ||
|
||
.PHONY: requirements.txt | ||
|
||
requirements.txt: requirements.in | ||
pip-compile $< | ||
|
||
build-project: venv update-packages src/static | ||
|
||
clean-project: | ||
rm -rf src/project/__pycache__ src/project/*/__pycache__ | ||
rm -rf src/project/*/*/__pycache__ src/project/*/*/*/__pycache__ | ||
rm -f data/db.sqlite3 data/secret-key.txt | ||
rm -rf src/static | ||
rm -rf venv |
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
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
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
#!/bin/bash | ||
|
||
|
||
set -x | ||
|
||
cd `dirname $0`/.. | ||
|
||
TRAINING_PORTAL=portal-testing | ||
|
||
kubectl delete workshopenvironments -l training.educates.dev/portal.name=$TRAINING_PORTAL --cascade=foreground | ||
|
||
rm -f data/db.sqlite3 data/secret-key.txt |
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