Skip to content

Commit

Permalink
basic configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Mar 4, 2024
1 parent 09dfc76 commit 3fbeee3
Show file tree
Hide file tree
Showing 50 changed files with 792,672 additions and 790 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore local virtualenv (if present)
.venv/
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Dockerfile that builds the InvenioRDM Starter Docker image.
ARG BUILDPLATFORM=linux/amd64
FROM --platform=$BUILDPLATFORM registry.cern.ch/inveniosoftware/almalinux:1

COPY site ./site
COPY Pipfile Pipfile.lock ./
RUN pipenv install --deploy --system

COPY ./docker/uwsgi/ ${INVENIO_INSTANCE_PATH}
COPY ./invenio.cfg ${INVENIO_INSTANCE_PATH}
COPY ./templates/ ${INVENIO_INSTANCE_PATH}/templates/
COPY ./app_data/ ${INVENIO_INSTANCE_PATH}/app_data/
COPY ./translations/ ${INVENIO_INSTANCE_PATH}/translations/
COPY ./ .

RUN cp -r ./static/. ${INVENIO_INSTANCE_PATH}/static/ && \
cp -r ./assets/. ${INVENIO_INSTANCE_PATH}/assets/ && \
invenio collect --verbose && \
invenio webpack buildall

ENTRYPOINT [ "bash", "-c"]
21 changes: 21 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
check-manifest = ">=0.25"

[packages]
invenio-app-rdm = {extras = ["postgresql", "opensearch2"], version = "~=12.0.0b3.dev3"}
invenio-rdm-starter = {editable="True", path="./site"}
"SQLAlchemy[asyncio]" = ">=1.4.41"
uwsgi = ">=2.0"
uwsgitop = ">=0.11"
uwsgi-tools = ">=1.1.1"

[requires]
python_version = "3.9"

[pipenv]
allow_prereleases = false
3,347 changes: 3,347 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions app_data/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# README

Place in this directory the subdirectories containing application data.

For example, you can create the `vocabularies/` folder to hold
your custom controlled vocabularies.
26 changes: 26 additions & 0 deletions app_data/vocabularies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
subjects:
pid-type: sub
schemes:
- id: FOS
name: Fields of Science and Technology
uri: "http://www.oecd.org/science/inno/38235147.pdf"
data-file: vocabularies/subjects_oecd_fos.yaml
# Minimimal example vocabularies
# can be used for quick testing, or a basis for building your own customized vocabularies.
#names:
# pid-type: names
# data-file: vocabularies/names.yaml
#licenses:
# pid-type: lic
# data-file: vocabularies/cc_licences.csv
#languages:
# pid-type: lng
# data-file: vocabularies/languages.yaml
# TODO: Uncoment this if you want to have all affiliations with ROR identifiers.
# affiliations:
# pid-type: aff
# schemes:
# - id: ROR
# name: Research Organization Registry
# uri: "https://ror.org/"
# data-file: vocabularies/affiliations_ror.yaml
Loading

0 comments on commit 3fbeee3

Please sign in to comment.