nimbix / jarvice-desktop

0 stars 1 forks source link

Failing tests on RockyLinux 8 and Ubuntu Jammy #5

Closed strus38 closed 1 year ago

strus38 commented 1 year ago

Hi

Tested this integration in push2Compute app results on both Linux with the following execution error in Jarvice:

INIT[1]: Configuring user: nimbix nimbix 505...
INIT[1]: Initializing networking...
INIT[1]: Cross Memory Attach is available for MPI applications
INIT[1]: Platform fabric and MPI libraries successfully deployed
INIT[1]: Detected preferred MPI fabric provider: tcp
INIT[1]: Reading keys...
INIT[1]: Finalizing setup in application environment...
INIT[1]: Waiting for job configuration before executing application...
INIT[1]: hostname: jarvice-job-30-q4n55
INIT[1]: Injecting static ssh client.
INIT[1]: Starting SSHD server...
INIT[1]: Checking all nodes can be reached through ssh...
INIT[1]: SSH test success!
###############################################################################
xauth:  file /home/nimbix/.Xauthority does not exist
New 'jarvice-job-30-q4n55:1 (nimbix)' desktop is jarvice-job-30-q4n55:1
Creating default config /home/nimbix/.vnc/config
Starting applications specified in /home/nimbix/.vnc/xstartup
Log file is /home/nimbix/.vnc/jarvice-job-30-q4n55:1.log
/usr/local/JARVICE/tools/noVNC ~
~
WebSocket server settings:
  - Listen on :5902
  - Web server. Web root: /usr/local/JARVICE/tools/noVNC
  - No SSL/TLS support (no cert file)
  - proxying from :5902 to 127.0.0.1:5901
server does not have extension for -dpms option
/tmp/xinitrc: line 14: exec: -A: invalid option
exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]

Dockefile used - cmd podman build -t rockylinux-jarvice-desktop -f ./Dockerfile --build-arg BASE_IMAGE=rockylinux:8.7

ARG BASE_IMAGE
FROM ${BASE_IMAGE:-docker.io/rockylinux:latest}

USER root

RUN dnf install -y ca-certificates && \
    curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/nimbix/jarvice-desktop/master/install-nimbix.sh | bash

Then, podman build -t myqlmapp:latest -f ./Dockerfile --build-arg BASE_IMAGE=10.1.0.100:5000/jarvice/rockylinux-jarvice-desktop:latest

ARG BASE_IMAGE
FROM ${BASE_IMAGE:-docker.io/rockylinux:latest}

USER root

RUN dnf install epel-release tk curl -y && dnf --enablerepo=epel group
RUN python3 -m pip install --upgrade pip
RUN dnf install python3-pip python3-tkinter -y
RUN pip3 install cython cmake scikit-build myqlm qiskit myqlm-interop

COPY NAE/AppDef.json /etc/NAE/AppDef.json
RUN curl --fail -X POST -d @/etc/NAE/AppDef.json https://cloud.nimbix.net/api/jarvice/validate

COPY NAE/myqlm.png /etc/NAE/screenshot.png
COPY NAE/license.txt etc/NAE/license.txt
COPY NAE/screenshot.txt /etc/NAE/screenshot.txt

# Commands to run application
COPY myqlm.py /tmp/myqlm.py
RUN chmod 777 /tmp/myqlm.py

CMD ["/tmp/myqlm.py"]
ENTRYPOINT ["python3"]
INIT[1]: Configuring user: nimbix nimbix 505...
INIT[1]: Initializing networking...
INIT[1]: Cross Memory Attach is available for MPI applications
INIT[1]: Platform fabric and MPI libraries successfully deployed
INIT[1]: Detected preferred MPI fabric provider: tcp
INIT[1]: Reading keys...
INIT[1]: Finalizing setup in application environment...
INIT[1]: Waiting for job configuration before executing application...
INIT[1]: hostname: jarvice-job-31-59sx4
INIT[1]: Injecting static ssh client.
INIT[1]: Starting SSHD server...
INIT[1]: Checking all nodes can be reached through ssh...
INIT[1]: SSH test success!
###############################################################################
xauth:  file /home/nimbix/.Xauthority does not exist
New 'jarvice-job-31-59sx4:1 (nimbix)' desktop is jarvice-job-31-59sx4:1
Creating default config /home/nimbix/.vnc/config
Starting applications specified in /home/nimbix/.vnc/xstartup
Log file is /home/nimbix/.vnc/jarvice-job-31-59sx4:1.log
/usr/local/JARVICE/tools/noVNC ~
~
WebSocket server settings:
  - Listen on :5902
  - Web server. Web root: /usr/local/JARVICE/tools/noVNC
  - No SSL/TLS support (no cert file)
  - proxying from :5902 to 127.0.0.1:5901
server does not have extension for -dpms option
/tmp/xinitrc: line 14: exec: -A: invalid option
exec: usage: exec [-cl] [-a name] [command [argument ...]] [redirection ...]

Dockefile used - cmd podman build --format docker -t jupyter-quantum:latest -f ./Dockerfile --build-arg BASE_IMAGE=10.1.0.100:5000/jupyter/datascience-notebook:latest

# cat Dockerfile
ARG BASE_IMAGE
FROM ${BASE_IMAGE:-jupyter/datascience-notebook:latest}

USER root

RUN python3 -m pip install --upgrade pip
RUN pip3 install cython cmake scikit-build myqlm qiskit myqlm-interop
RUN apt-get -y update && \
    DEBIAN_FRONTEND=noninteractive apt-get -y install ca-certificates curl --no-install-recommends && \
    curl -H 'Cache-Control: no-cache' \
        https://raw.githubusercontent.com/nimbix/jarvice-desktop/master/install-nimbix.sh \
        | bash

COPY NAE/AppDef.json /etc/NAE/AppDef.json
RUN curl --fail -X POST -d @/etc/NAE/AppDef.json https://cloud.nimbix.net/api/jarvice/validate

COPY NAE/myqlm.png /etc/NAE/screenshot.png
COPY NAE/license.txt etc/NAE/license.txt
COPY NAE/screenshot.txt /etc/NAE/screenshot.txt

ENTRYPOINT ["start-notebook.sh"]
strus38 commented 1 year ago

Fixed in recent version.