This repository was archived by the owner on Oct 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d997a4c
commit 0fd465d
Showing
11 changed files
with
308 additions
and
245 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,19 @@ | ||
FROM python:3.7 | ||
|
||
RUN pip install pipenv && \ | ||
apt-get update && \ | ||
apt-get install pv lsb-release -y && \ | ||
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' && \ | ||
sh -c 'wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -' && \ | ||
apt-get update && \ | ||
apt-get -y install postgresql-client-12 | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
ADD Pipfile /app/Pipfile | ||
ADD Pipfile.lock /app/Pipfile.lock | ||
|
||
RUN pipenv install --dev | ||
|
||
CMD pipenv run serve |
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,20 @@ | ||
up: | ||
docker-compose up --build | ||
|
||
shell: | ||
docker-compose exec app bash | ||
|
||
pyshell: | ||
docker-compose exec app ipython | ||
|
||
loaddata: | ||
docker-compose exec app db/load_data.sh ${FILE} | ||
|
||
initsql: | ||
docker-compose exec app bash -c "PGPASSWORD=postgres psql -h postgres -U postgres -d gatrack -f db/init.sql" | ||
|
||
lockdeps: | ||
docker-compose exec app bash -c "pipenv lock --requirements > requirements.txt" | ||
|
||
format: | ||
docker-compose exec app pipenv run format |
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 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 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 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 @@ | ||
console.log("Scripts TODO"); |
Oops, something went wrong.