mirror of
https://github.com/sismics/docs.git
synced 2024-12-22 11:23:48 +01:00
Compare commits
2 Commits
ac7b3c4eb9
...
01d3e746d8
Author | SHA1 | Date | |
---|---|---|---|
|
01d3e746d8 | ||
|
13cd03a762 |
2
.github/workflows/build-deploy.yml
vendored
2
.github/workflows/build-deploy.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Install test dependencies
|
- name: Install test dependencies
|
||||||
run: sudo apt-get update && sudo apt-get -y -q --no-install-recommends install ffmpeg mediainfo tesseract-ocr tesseract-ocr-deu
|
run: sudo apt-get update && sudo apt-get -y -q --no-install-recommends install ffmpeg mediainfo tesseract-ocr tesseract-ocr-deu
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -Pprod clean install
|
run: mvn --batch-mode -Pprod clean install
|
||||||
- name: Upload war artifact
|
- name: Upload war artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
41
Dockerfile
41
Dockerfile
@ -1,8 +1,21 @@
|
|||||||
FROM sismics/ubuntu-jetty:11.0.14
|
FROM ubuntu:22.04
|
||||||
LABEL maintainer="b.gamard@sismics.com"
|
LABEL maintainer="b.gamard@sismics.com"
|
||||||
|
|
||||||
|
# Run Debian in non interactive mode
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
# Configure env
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV LC_ALL C.UTF-8
|
||||||
|
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
|
||||||
|
ENV JAVA_OPTIONS -Dfile.encoding=UTF-8 -Xmx1g
|
||||||
|
ENV JETTY_VERSION 11.0.20
|
||||||
|
ENV JETTY_HOME /opt/jetty
|
||||||
|
|
||||||
|
# Install packages
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get -y -q --no-install-recommends install \
|
apt-get -y -q --no-install-recommends install \
|
||||||
|
vim less procps unzip wget tzdata openjdk-11-jdk \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
mediainfo \
|
mediainfo \
|
||||||
tesseract-ocr \
|
tesseract-ocr \
|
||||||
@ -32,17 +45,31 @@ RUN apt-get update && \
|
|||||||
tesseract-ocr-tur \
|
tesseract-ocr-tur \
|
||||||
tesseract-ocr-ukr \
|
tesseract-ocr-ukr \
|
||||||
tesseract-ocr-vie \
|
tesseract-ocr-vie \
|
||||||
tesseract-ocr-sqi && \
|
tesseract-ocr-sqi \
|
||||||
apt-get clean && rm -rf /var/lib/apt/lists/* && \
|
&& apt-get clean && \
|
||||||
mkdir /app && \
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN dpkg-reconfigure -f noninteractive tzdata
|
||||||
|
|
||||||
|
# Install Jetty
|
||||||
|
RUN wget -nv -O /tmp/jetty.tar.gz \
|
||||||
|
"https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/${JETTY_VERSION}/jetty-home-${JETTY_VERSION}.tar.gz" \
|
||||||
|
&& tar xzf /tmp/jetty.tar.gz -C /opt \
|
||||||
|
&& mv /opt/jetty* /opt/jetty \
|
||||||
|
&& useradd jetty -U -s /bin/false \
|
||||||
|
&& chown -R jetty:jetty /opt/jetty \
|
||||||
|
&& mkdir /opt/jetty/webapps \
|
||||||
|
&& chmod +x /opt/jetty/bin/jetty.sh
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
# Install app
|
||||||
|
RUN mkdir /app && \
|
||||||
cd /app && \
|
cd /app && \
|
||||||
java -jar /opt/jetty/start.jar --add-modules=server,http,webapp,deploy
|
java -jar /opt/jetty/start.jar --add-modules=server,http,webapp,deploy
|
||||||
|
|
||||||
ADD docs.xml /app/webapps/docs.xml
|
ADD docs.xml /app/webapps/docs.xml
|
||||||
ADD docs-web/target/docs-web-*.war /app/webapps/docs.war
|
ADD docs-web/target/docs-web-*.war /app/webapps/docs.war
|
||||||
|
|
||||||
ENV JAVA_OPTIONS -Xmx1g
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
CMD ["java", "-jar", "/opt/jetty/start.jar"]
|
|
||||||
|
|
||||||
|
CMD ["java", "-jar", "/opt/jetty/start.jar"]
|
||||||
|
8
pom.xml
8
pom.xml
@ -51,16 +51,16 @@
|
|||||||
|
|
||||||
<org.glassfish.jersey.version>3.0.10</org.glassfish.jersey.version>
|
<org.glassfish.jersey.version>3.0.10</org.glassfish.jersey.version>
|
||||||
<jakarta.servlet.jakarta.servlet-api.version>5.0.0</jakarta.servlet.jakarta.servlet-api.version>
|
<jakarta.servlet.jakarta.servlet-api.version>5.0.0</jakarta.servlet.jakarta.servlet-api.version>
|
||||||
<org.eclipse.jetty.jetty-server.version>11.0.14</org.eclipse.jetty.jetty-server.version>
|
<org.eclipse.jetty.jetty-server.version>11.0.20</org.eclipse.jetty.jetty-server.version>
|
||||||
<org.eclipse.jetty.jetty-webapp.version>11.0.14</org.eclipse.jetty.jetty-webapp.version>
|
<org.eclipse.jetty.jetty-webapp.version>11.0.20</org.eclipse.jetty.jetty-webapp.version>
|
||||||
<org.eclipse.jetty.jetty-servlet.version>11.0.14</org.eclipse.jetty.jetty-servlet.version>
|
<org.eclipse.jetty.jetty-servlet.version>11.0.20</org.eclipse.jetty.jetty-servlet.version>
|
||||||
|
|
||||||
<!-- Plugins version -->
|
<!-- Plugins version -->
|
||||||
<org.apache.maven.plugins.maven-antrun-plugin.version>3.1.0</org.apache.maven.plugins.maven-antrun-plugin.version>
|
<org.apache.maven.plugins.maven-antrun-plugin.version>3.1.0</org.apache.maven.plugins.maven-antrun-plugin.version>
|
||||||
<org.apache.maven.plugins.maven-jar-plugin.version>3.3.0</org.apache.maven.plugins.maven-jar-plugin.version>
|
<org.apache.maven.plugins.maven-jar-plugin.version>3.3.0</org.apache.maven.plugins.maven-jar-plugin.version>
|
||||||
<org.apache.maven.plugins.maven-war-plugin.version>3.3.2</org.apache.maven.plugins.maven-war-plugin.version>
|
<org.apache.maven.plugins.maven-war-plugin.version>3.3.2</org.apache.maven.plugins.maven-war-plugin.version>
|
||||||
<org.apache.maven.plugins.maven-surefire-plugin.version>3.0.0</org.apache.maven.plugins.maven-surefire-plugin.version>
|
<org.apache.maven.plugins.maven-surefire-plugin.version>3.0.0</org.apache.maven.plugins.maven-surefire-plugin.version>
|
||||||
<org.eclipse.jetty.jetty-maven-plugin.version>11.0.14</org.eclipse.jetty.jetty-maven-plugin.version>
|
<org.eclipse.jetty.jetty-maven-plugin.version>11.0.20</org.eclipse.jetty.jetty-maven-plugin.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
|
Loading…
Reference in New Issue
Block a user