Omnis App Server 8.x on Docker
Andrea Zen
a.zen at athesiavr.it
Wed Jun 19 08:34:47 EDT 2019
Hello, more of a Docker question than an Omnis one maybe, anyway has anyone tried it? I'm not able to make the container start properly...
I'm following the instructions in technote "Linux Headless Server Deployment inside Docker" (works perfectly with Omnis 10), just adapting them to Omnis Server 8.7, since it comes as a ".run" installer file and not as a complete folder compressed in a ".tar.gz" archive.
So if I use the "Omnis-Headless-App-Server-8.1.7-x64.run" file, during the build of docker image I get this error:
-------------------------------------------------------------------------------------------
Step 7/9 : RUN ./Omnis-Headless-App-Server-8.1.7-x64.run --mode unattended --installdir "/home/omnisserver" --serialno <myserial> --serverport 9800
---> Running in 738dba509df2
Problem running post-install step. Installation may not complete correctly
Error running chown -R /home/omnisserver: chown: missing operand after '/home/omnisserver'
Try 'chown --help' for more information.
The command '/bin/sh -c ./Omnis-Headless-App-Server-8.1.7-x64.run --mode unattended --installdir "/home/omnisserver" --serialno <myserial> --serverport 9800' returned a non-zero code: 1
-------------------------------------------------------------------------------------------
Dockerfile is as follows:
FROM ubuntu:16.04
WORKDIR /home
ADD Omnis-Headless-App-Server-8.1.7-x64.run /home
ENV LD_LIBRARY_PATH /home/omnisserver
RUN apt-get -q -y update
RUN apt-get -q -y install \
libpango1.0-dev \
cups
RUN ./Omnis-Headless-App-Server-8.1.7-x64.run --mode unattended \
--installdir "/home/omnisserver" \
--serialno <myserial> \
--serverport 9800
EXPOSE 9800
CMD omnisserver/homnis
If I get back to the situation in the technote, so copying the entire program folder into the container (to get it I've installed Omnis Server 8 through the .run file in an Ubuntu VM and then I've taken all files from the installation directory), the build of the image completes without errors, but when I run the container I get a "segmentation fault".
Dockerfile in this case is ("ohsrv8" is the folder where I've copied all files from the installation directory):
FROM ubuntu:16.04
WORKDIR /home
ADD ohsvr8 /home/omnisserver
ENV LD_LIBRARY_PATH /home/omnisserver
RUN apt-get -q -y update
RUN apt-get -q -y install \
libpango1.0-dev \
cups
EXPOSE 9800
CMD omnisserver/homnis
This last case is almost identical to the one described in technote, but no way...any hint or idea why both of them don't work?
Andrea Zen
More information about the omnisdev-en
mailing list