Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Docker image with Xvnc working with Kubernetes agent?

On 12/12/2018 20:38, Mickael Istria wrote:
Hi all,

I'm finally trying to create my own Docker image to run Wild Web Developer tests and runtime. WIP is at . The image seems correct locally (I can start vncserver, or at least it seems so) so I deployed it to <> ( ) to be able to reference it in our Jenkinsfile ( ) and use it during build. However, when the image is used on <>, it's failing to start the vncserver with an error that looks like a user management issue: `vncserver: Could not create //.vnc.` (from ). This error makes me think it's because the current user of the Docker image is not named to it's not possible to infer a correct path.

Not sure this is the same issue (I can not see the console log you linked to), but the CBI images available at [1] had to perform some specific step regarding user id:

### user name recognition at runtime w/ an arbitrary uid - for OpenShift deployments
COPY scripts/uid_entrypoint /usr/local/bin/uid_entrypoint
RUN chmod u+x /usr/local/bin/uid_entrypoint && \
    chgrp 0 /usr/local/bin/uid_entrypoint && \
    chmod g=u /etc/passwd

ENTRYPOINT [ "uid_entrypoint" ]

and at the end:

USER 10001

See also


Back to the top