-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement dockerimage using sample data
WIP: sample data should be pulled from git WIP: put ontology into `apis_ontology
- Loading branch information
Showing
5 changed files
with
39 additions
and
52 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,9 @@ | ||
FROM python:3.11 | ||
|
||
COPY . /app | ||
|
||
RUN pip install /app | ||
|
||
EXPOSE 8000 | ||
|
||
ENTRYPOINT ["/app/sample_project/entrypoint.sh"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
./manage.py migrate | ||
./manage.py loaddata sample_project | ||
./manage.py loaddata auth | ||
./manage.py runserver |
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,11 @@ | ||
[ | ||
{ "model": "auth.user", | ||
"pk": 1, | ||
"fields": { | ||
"username": "user1", | ||
"password": "pbkdf2_sha256$600000$tJ0VACk6Oa84oNYiGVk0Ue$yH7UIR2dE6UsRnoJQVrNUumgSR465lwJXSOnGFuiIBw=", | ||
"is_staff": true, | ||
"is_superuser": true | ||
} | ||
} | ||
] |
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