Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile bugs #2

Open
shipa988 opened this issue Jan 4, 2021 · 0 comments
Open

Dockerfile bugs #2

shipa988 opened this issue Jan 4, 2021 · 0 comments

Comments

@shipa988
Copy link

shipa988 commented Jan 4, 2021

i fix some your Dockerfile bugs:

FROM anapsix/alpine-java:8_jdk-dcevm
LABEL maintainer="udger.com" description="Udger local parser"
ENV MEECROWAVE_ARCHIVE meecrowave-core-1.2.7-runner
ENV INSTALL_DIR /opt
RUN apk -U upgrade
&& apk add curl
&& curl -o ${INSTALL_DIR}/${MEECROWAVE_ARCHIVE}.jar -L https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.7/meecrowave-core-1.2.7-runner.jar
ENV MEECROWAVE_HOME ${INSTALL_DIR}
ENV DEPLOYMENT_DIR ${MEECROWAVE_HOME}
WORKDIR ${INSTALL_DIR}
COPY ./target/udger-local-api.war ${DEPLOYMENT_DIR}
RUN mkdir -p /udgerdb

!!! Replace testing DB with Udger production database

COPY ./udgerdb_test_v3.dat /udgerdb/udger_test_v3.dat

!!! Replace -Dudger.db= with Udger production database

ENV JAVA_OPTS="-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dudger.db=/udgerdb/udger_test_v3.dat"
ENTRYPOINT java ${JAVA_OPTS} -jar ${MEECROWAVE_ARCHIVE}.jar --webapp udger-local-api.war --context udger-local-api
EXPOSE 8080

now it's work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant