diff --git a/.gitignore b/.gitignore index ab33683..389d942 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ # manual entries: /dependencies/ /runtime_data/ +/res/publications/ # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/Dockerfile b/Dockerfile index f5121cb..ae79b38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,10 @@ RUN apt-get update && \ apt-get install -y --no-install-recommends \ libsasl2-dev python-dev libldap2-dev libssl-dev +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + graphicsmagick + # this is supposed to save memory: RUN rm -rf /var/lib/apt/lists/* diff --git a/README.md b/README.md index ddaeea4..c4b09a6 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,37 @@ Force recreating the docker image by adding `--build` e.g. if `Dockerfile` or `r ## Import Publications, Initialize CMS pages (TODO) -Not yet documented. +In order to publish a publication on the platform, the following 2 steps are necessary: + +1. First you have to compile your publication to "django", using [EOASkripts](https://github.molgen.mpg.de/EditionOpenAccess/EOASkripts) + +2. After that you have to import it to the platform. + +For the example publication, this process goes as follows: + +1. compiling the example + + $ cd example_import + $ git_deps_py --store-dir ../dependencies + $ cd dependencies/EOASkripts + $ ./scripts/run.py && ./scripts/exec_in_container.py + $ $ process_eoa_latex.py -f input/example/eoatex/EOASample.tex + $ $ exit + $ ./scripts/stop.py + $ cd .. + +2. import example to the platform + +After you have compiled the publication to "django", you might want to import it into the platform. + + $ cp -r example_import/EOASkripts/runtime/output/django res/publications/example + $ ./scripts/init.py + $ ./scripts/run.py && ./scripts/exec_in_container.py + $ $ python manage.py publicationimport $RES_DIR/publications/example + $ $ exit + $ ./scripts/stop.py + +That's all. ## Run the Webserver diff --git a/example_import/.gitignore b/example_import/.gitignore new file mode 100644 index 0000000..e99215b --- /dev/null +++ b/example_import/.gitignore @@ -0,0 +1 @@ +/dependencies/ diff --git a/example_import/EOASkripts b/example_import/EOASkripts new file mode 120000 index 0000000..92cd4aa --- /dev/null +++ b/example_import/EOASkripts @@ -0,0 +1 @@ +dependencies/EOASkripts/ \ No newline at end of file diff --git a/example_import/dependencies.conf b/example_import/dependencies.conf new file mode 100644 index 0000000..770f2c5 --- /dev/null +++ b/example_import/dependencies.conf @@ -0,0 +1,10 @@ +[EOASkripts] + +uri = https://github.molgen.mpg.de/EditionOpenAccess/EOASkripts.git +hash = 9d04815f50968f29fb2a0b869caced67dca28a26 +init = bash -c "git_deps_py --store-dir ../ && ./scripts/init.py --build" + +[eoa-publication-model] + +uri = https://github.molgen.mpg.de/EditionOpenAccess/eoa-publication-model.git +hash = ea8a2eb99b22703f1ef92544352701f07c08d17e