Skip to content

Commit 4912675

Browse files
committed
Update to TEI Publisher 7 API
1 parent 13ff878 commit 4912675

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+4514
-2458
lines changed

.devcontainer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "TEI Publisher Development Container",
3+
"build": {
4+
"dockerfile": "Dockerfile.dev"
5+
},
6+
"forwardPorts": [ 8080 ],
7+
"extensions": [ "exist-db.existdb-vscode" ],
8+
"overrideCommand": false
9+
}

Dockerfile.dev

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
FROM mcr.microsoft.com/vscode/devcontainers/java:dev-8
2+
3+
ARG EXIST_VERSION=5.2.0
4+
ARG PUBLISHER_LIB_VERSION=v2.8.9
5+
ARG PUBLISHER_VERSION=master
6+
7+
# [Option] Install Maven
8+
ARG INSTALL_MAVEN="false"
9+
ARG MAVEN_VERSION=""
10+
# [Option] Install Gradle
11+
ARG INSTALL_GRADLE="false"
12+
ARG GRADLE_VERSION=""
13+
14+
RUN if [ "${INSTALL_MAVEN}" = "true" ]; then su vscode -c "source /usr/local/sdkman/bin/sdkman-init.sh && sdk install maven \"${MAVEN_VERSION}\""; fi \
15+
&& if [ "${INSTALL_GRADLE}" = "true" ]; then su vscode -c "source /usr/local/sdkman/bin/sdkman-init.sh && sdk install gradle \"${GRADLE_VERSION}\""; fi
16+
17+
RUN su vscode -c "source /usr/local/sdkman/bin/sdkman-init.sh && sdk install ant"
18+
ENV ANT_HOME=/usr/local/sdkman/candidates/ant/current
19+
ENV PATH=${PATH}:${ANT_HOME}/bin
20+
21+
# [Option] Install Node.js
22+
ARG INSTALL_NODE="true"
23+
ARG NODE_VERSION="lts/*"
24+
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
25+
26+
# [Optional] Uncomment this section to install additional OS packages.
27+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
28+
# && apt-get -y install --no-install-recommends <your-package-list-here>
29+
30+
# [Optional] Uncomment this line to install global node packages.
31+
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
32+
33+
WORKDIR /tmp
34+
35+
RUN curl -L -o exist-distribution-${EXIST_VERSION}-unix.tar.bz2 https://bintray.com/existdb/releases/download_file?file_path=exist-distribution-${EXIST_VERSION}-unix.tar.bz2 \
36+
&& tar xfj exist-distribution-${EXIST_VERSION}-unix.tar.bz2 -C /usr/local \
37+
&& rm exist-distribution-${EXIST_VERSION}-unix.tar.bz2 \
38+
&& mv /usr/local/exist-distribution-${EXIST_VERSION} /usr/local/exist
39+
40+
# Build tei-publisher-lib
41+
RUN git clone https://github.com/eeditiones/tei-publisher-lib.git \
42+
&& cd tei-publisher-lib \
43+
&& git checkout ${PUBLISHER_LIB_VERSION} \
44+
&& ant \
45+
&& cp -v build/*.xar /usr/local/exist/autodeploy \
46+
&& cd .. \
47+
&& rm -rf tei-publisher-lib
48+
49+
RUN git clone https://github.com/eeditiones/oas-router.git \
50+
&& cd oas-router \
51+
&& ant \
52+
&& cp build/*.xar /usr/local/exist/autodeploy \
53+
&& cd .. \
54+
&& rm -rf oas-router
55+
56+
WORKDIR /workspaces
57+
58+
# Build tei-publisher-app
59+
RUN git clone https://github.com/eeditiones/tei-publisher-app.git \
60+
&& cd tei-publisher-app \
61+
&& git checkout ${PUBLISHER_VERSION} \
62+
# if you prefer to have webcomponents included locally, comment out following line and
63+
# enable the ones below
64+
&& ant \
65+
# && sed -i 's/$config:webcomponents :=.*;/$config:webcomponents := "local";/' modules/config.xqm \
66+
# && ant -Dnpm=/usr/local/share/nvm/current/bin/npm xar-local \
67+
&& cp build/*.xar /usr/local/exist/autodeploy
68+
69+
EXPOSE 8080
70+
71+
ENV EXIST_HOME=/usr/local/exist
72+
ENTRYPOINT [ "/usr/local/exist/bin/startup.sh" ]

0 commit comments

Comments
 (0)