generated from RockefellerArchiveCenter/nebula
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #78 from RockefellerArchiveCenter/development
Merging development to base
- Loading branch information
Showing
45 changed files
with
4,525 additions
and
664 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,6 @@ | ||
[report] | ||
show_missing = True | ||
omit = | ||
*/settings.py | ||
*/config.py | ||
*/__init__.py |
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 |
---|---|---|
@@ -1,8 +1,26 @@ | ||
FROM python:3.6 | ||
FROM python:3.7-buster | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
RUN mkdir /code | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
postgresql \ | ||
netcat \ | ||
apache2 \ | ||
apache2-dev \ | ||
libapache2-mod-wsgi-py3 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN a2dissite 000-default | ||
|
||
COPY apache/django.conf /etc/apache2/sites-available/request-broker.conf | ||
RUN a2ensite request-broker.conf | ||
|
||
WORKDIR /code | ||
ADD requirements.txt /code/ | ||
RUN pip install --upgrade pip && pip install -r requirements.txt | ||
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt | ||
|
||
EXPOSE 8000 | ||
|
||
ADD . /code/ | ||
|
||
ENTRYPOINT ["/code/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,23 @@ | ||
Listen 8000 | ||
ServerName localhost | ||
|
||
<VirtualHost *:8000> | ||
|
||
WSGIScriptAlias / /code/request_broker/wsgi.py process-group=request-broker | ||
WSGIDaemonProcess request-broker home=/code | ||
|
||
Alias /static /code/static | ||
|
||
<Directory /code/static> | ||
Options Includes FollowSymLinks MultiViews | ||
Require all granted | ||
</Directory> | ||
|
||
<Directory /code> | ||
WSGIProcessGroup request-broker | ||
WSGIApplicationGroup %{GLOBAL} | ||
WSGIScriptReloading On | ||
Require all granted | ||
</Directory> | ||
|
||
</VirtualHost> |
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,10 @@ | ||
version: '2.4' | ||
|
||
services: | ||
request-broker-web: | ||
image: rockarch/request_broker:development | ||
command: apachectl -D FOREGROUND | ||
ports: | ||
- "8001:8000" | ||
env_file: | ||
- ./.env.dev |
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,10 @@ | ||
version: '2.4' | ||
|
||
services: | ||
request-broker-web: | ||
image: rockarch/request_broker:0.1 | ||
command: apachectl -D FOREGROUND | ||
ports: | ||
- "8001:8000" | ||
env_file: | ||
- ./.env.prod |
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 |
---|---|---|
@@ -1,9 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Apply database migrations | ||
./wait-for-it.sh db:5432 -- echo "Apply database migrations" | ||
echo "Waiting for PostgreSQL..." | ||
|
||
while ! nc -z $SQL_HOST $SQL_PORT; do | ||
sleep 0.1 | ||
done | ||
|
||
echo "Connected to PostgreSQL" | ||
|
||
# apply database migrations | ||
python manage.py migrate | ||
|
||
#Start server | ||
echo "Starting server" | ||
python manage.py runserver 0.0.0.0:8000 | ||
# collect static files | ||
python manage.py collectstatic --no-input --clear | ||
|
||
exec "$@" |
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 @@ | ||
{ | ||
"creators": "Ford Foundation", | ||
"collection_name": "Ford Foundation records, General Correspondence", | ||
"parent": "General Correspondence", | ||
"dates": "1951-1960", | ||
"resource_id": "FA735", | ||
"containers": "Reel C-1138", | ||
"preferred_instance": { | ||
"barcode": "A0000000037985", | ||
"container": "Reel C-1138", | ||
"format": "microfilm", | ||
"location": "Rockefeller Archive Center, Blue Level, Vault 106 [Cabinet: 11a, Drawer: 2]", | ||
"uri": "/top_containers/3314" | ||
}, | ||
"title": "Adler, Mortimer J.", | ||
"restrictions": "closed", | ||
"restrictions_text": "Closed until further notice due to personally identifying information.", | ||
"uri": "/repositories/2/archival_objects/986296" | ||
} |
Oops, something went wrong.