This repository has been archived by the owner on Sep 16, 2022. It is now read-only.
-
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 branch 'test' into Modify-JYU-catalog-logo
- Loading branch information
Showing
376 changed files
with
13,104 additions
and
1,140 deletions.
There are no files selected for viewing
Empty file.
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 |
---|---|---|
|
@@ -13,3 +13,6 @@ | |
ubuntu-xenial-16.04-cloudimg-console.log | ||
.ropeproject/ | ||
.venv_metax/ | ||
.env | ||
*.pem | ||
/src/log |
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,33 @@ | ||
FROM python:3.6 | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
|
||
WORKDIR /code | ||
|
||
COPY requirements.txt /code/ | ||
|
||
RUN apt-get update && apt install xqilla libxerces-c-dev build-essential libssl-dev libffi-dev python-dev libxqilla-dev -y | ||
|
||
RUN pip install --upgrade pip wheel | ||
RUN pip install -r requirements.txt | ||
|
||
EXPOSE 8008 | ||
EXPOSE 8006 | ||
|
||
ARG METAX_DATABASE_HOST | ||
ARG REDIS_HOST | ||
ARG RABBITMQ_HOST | ||
ARG RABBIT_MQ_PASSWORD=guest | ||
ARG RABBIT_MQ_USER=guest | ||
ARG ELASTIC_SEARCH_HOST | ||
|
||
ENV METAX_DATABASE_HOST $METAX_DATABASE_HOST | ||
ENV REDIS_HOST $REDIS_HOST | ||
ENV RABBIT_MQ_HOSTS $RABBITMQ_HOST | ||
ENV RABBIT_MQ_PASSWORD $RABBIT_MQ_PASSWORD | ||
ENV RABBIT_MQ_USER $RABBIT_MQ_USER | ||
ENV ELASTIC_SEARCH_HOSTS $ELASTIC_SEARCH_HOST | ||
|
||
# CMD ["python", "/code/manage.py", "runserver", "0.0.0.0:8008"] | ||
CMD ["python", "manage.py", "runsslserver", "--certificate", ".certs/cert.pem","--key", ".certs/key.pem", "0.0.0.0:8008"] |
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,33 @@ | ||
# Required environmental variables | ||
|
||
copy .env.template to .env and fill following variables manually | ||
|
||
| Name | Description | example | | ||
| ------------------------------ | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------- | | ||
| DATACITE_PREFIX | | | | ||
| DATACITE_URL | | | | ||
| DATACITE_ETSIN_URL_TEMPLATE | | | | ||
| DATACITE_USERNAME | | | | ||
| DATACITE_PASSWORD | | | | ||
| DJANGO_SECRET_KEY | replace with proper django secret key | | | ||
| ERROR_FILES_PATH | | /home/user/repo-root/logs/errors | | ||
| ES_CONFIG_DIR | | /home/user/repo-root/src/metax_api/tasks/refdata/refdata_indexer/resources/es-config/ | | ||
| LOCAL_REF_DATA_FOLDER | | /home/user/repo-root/src/metax/metax-api/src/metax_api/tasks/refdata/refdata_indexer/resources/local-refdata/ | | ||
| LOGGING_DEBUG_HANDLER_FILE | | /home/user/repo-root/src/metax/metax-api/logs/metax_api.log | | ||
| LOGGING_GENERAL_HANDLER_FILE | | /home/user/repo-root/src/metax/metax-api/logs/metax_api.log | | ||
| LOGGING_JSON_FILE_HANDLER_FILE | | /home/user/repo-root/src/metax/metax-api/logs/metax_api.json.log | | ||
| METAX_DATABASE | postgres database, must be created first | metax | | ||
| METAX_DATABASE_PASSWORD | postgres owner of the database | | | ||
| METAX_DATABASE_PORT | | 5432 | | ||
| METAX_DATABASE_USER | | username | | ||
| OAI_BASE_URL | | | | ||
| ORG_FILE_PATH | | /home/user/repo-root/src/metax_api/tasks/refdata/refdata_indexer/resources/organizations/organizations.csv | | ||
| RABBIT_MQ_PASSWORD | | guest | | ||
| RABBIT_MQ_USER | | guest | | ||
| REDIS_LOCALHOST_PORT | | 6379 | | ||
| REDIS_PASSWORD | | | | ||
| REMS_ETSIN_URL_TEMPLATE | | | | ||
| REMS_FORM_ID | | | | ||
| VALIDATE_TOKEN_URL | | | | ||
| WKT_FILENAME | | /home/user/repo-root/src/metax_api/tasks/refdata/refdata_indexer/resources/uri_to_wkt.json | | ||
|
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
Oops, something went wrong.