Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
araksik
Explorer
Jump to solution

Is possible to install CShell in Docker

Is it even possible to install CShell (cshell_install.sh) inside Docker on build stage?

My Dockerfile currently looks like this, SNX has been installed without any issues, but CShell installation gives errors, so is it even possible to install it like this:

FROM scottyhardy/docker-remote-desktop:ubuntu-20.04

# Install SNX required dependencies
RUN dpkg --add-architecture i386 \
    && apt-get update \
    && DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
        libpam0g:i386 \
        libx11-6:i386 \
        libstdc++6:i386 \
        libstdc++5:i386 \
        libnss3-tools \
        xterm \
        curl \
        default-jdk \
    && rm -rf /var/lib/apt/lists/*

# Install SNX
ADD scripts/snx_install.sh /root
RUN bash -x ./root/snx_install.sh

# Install CShell
#ADD scripts/cshell_install.sh /root
#RUN bash -x ./root/cshell_install.sh -s

 

Thank you!

0 Kudos
1 Solution

Accepted Solutions
PhoneBoy
Admin
Admin

xhost is a CLI command used to control access to the underlying X windows server on Linux systems.
Since cshell ultimately displays a Window, the xhost command is run to ensure it can do so.
This command is not returning the expected result when run inside your Docker container.

View solution in original post

0 Kudos
3 Replies
PhoneBoy
Admin
Admin

Pretty sure this is not a scenario that has been QAed.
What are the precise errors that occur?

0 Kudos
araksik
Explorer

Error from Docker build:

 > [6/6] RUN bash -x ./root/cshell_install.sh:
#10 0.176 + ARCHIVE_OFFSET=884
#10 0.176 + FULL_PRODUCT_NAME='Check Point Mobile Access Portal Agent'
#10 0.176 + SHORT_PRODUCT_NAME='Mobile Access Portal Agent'
#10 0.176 + INSTALL_DIR=/usr/bin/cshell
#10 0.176 + INSTALL_CERT_DIR=/usr/bin/cshell/cert
#10 0.176 + BAD_CERT_FILE=/usr/bin/cshell/cert/.BadCertificate
#10 0.176 + PATH_TO_JAR=/usr/bin/cshell/CShell.jar
#10 0.177 + AUTOSTART_DIR=
#10 0.177 + USER_NAME=
#10 0.177 + CERT_DIR=/etc/ssl/certs
#10 0.177 + CERT_NAME=CShell_Certificate
#10 0.177 + LOGS_DIR=/var/log/cshell
#10 0.178 + trap cleanupOnTrap 2
#10 0.178 + trap cleanupOnTrap 3
#10 0.178 + trap cleanupOnTrap 13
#10 0.178 + trap cleanupOnTrap 15
#10 0.178 + CLEAN_ALL_ON_TRAP=0
#10 0.179 ++ GetUserName
#10 0.179 +++ who
#10 0.179 +++ head -n 1
#10 0.180 +++ awk '{print $1}'
#10 0.181 ++ user_name=
#10 0.181 ++ echo
#10 0.181 + USER_NAME=
#10 0.182 ++ xhost
#10 0.182 ++ grep -Fi localuser:
#10 0.183 xhost:  unable to open display ""
#10 0.184 + line=
#10 0.184 + '[' -z '' ']'
#10 0.184 + xhost +si:localuser:
#10 0.185 + res=1
#10 0.185 + '[' 1 '!=' 0 ']'
#10 0.185 + echo 'Please add "root" and "" to X11 access list'
#10 0.185 + exit 1
#10 0.185 Please add "root" and "" to X11 access list
------
executor failed running [/bin/sh -c bash -x ./root/cshell_install.sh]: exit code: 1
0 Kudos
PhoneBoy
Admin
Admin

xhost is a CLI command used to control access to the underlying X windows server on Linux systems.
Since cshell ultimately displays a Window, the xhost command is run to ensure it can do so.
This command is not returning the expected result when run inside your Docker container.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events