Thanks! So I've written my Dockerfile as follows:

FROM jetty:9.4.18-jre11
WORKDIR $JETTY_BASE

RUN curl -SL 
https://github.com/google/or-tools/releases/download/v7.3/or-tools_ubuntu-16.04_v7.3.7083.tar.gz
 
-o or-tools.tar.gz
RUN tar -xvf or-tools.tar.gz

ADD generate-program-0.1.0-SNAPSHOT.war $JETTY_BASE/webapps/root.war

RUN java 
-Djava.library.path=$JETTY_BASE/or-tools_Ubuntu-16.04-64bit_v7.3.7083/lib 
-jar $JETTY_HOME/start.jar --approve-all-licenses --create-startd 
--add-to-start=jmx,stats,hawtio && chown -R jetty:jetty $JETTY_BASE

But when I go to my servlet, I get the error:

java.lang.UnsatisfiedLinkError: no jniortools in java.library.path: 
[/usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib]


For some reason the -Djava.libary.path flag doesn't seem to be working? I've 
ssh-ed into the container, and the or-tools are extracted in the expected 
location, so the path I'm specifying exists. Any idea what I'm doing wrong here?


Thanks


On Monday, August 19, 2019 at 1:45:21 PM UTC-7, George (Cloud Platform 
Support) wrote:
>
> Hello Dane, 
>
> You may try using a Flexible Environment Custom Runtime 
> <https://cloud.google.com/appengine/docs/flexible/custom-runtimes/build>, 
> and its Dockerfile to configure the environment and install OR-Tools. 
> Success in installing OR-Tools depends on Dockerfile's own capabilities, as 
> described on its documentation page 
> <https://docs.docker.com/engine/reference/builder/>. You may check 
> related page Installing OR-Tools Java from Source on Linux 
> <https://developers.google.com/optimization/install/java/source_linux>. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a1db6a5e-6e00-4b5d-8d83-66332a4f65ee%40googlegroups.com.

Reply via email to