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?

Thanks Pierre-Charles. This is exactly what is needed to make Mickael's image work on the cluster. 

Cheers,

Mikaël Barbero 
Team Lead - Release Engineering | Eclipse Foundation
📱 (+33) 642 028 039 | 🐦 @mikbarbero
Eclipse Foundation: The Platform for Open Innovation and Collaboration

Le 13 déc. 2018 à 08:39, Pierre-Charles David <pierre-charles.david@xxxxxxx> a écrit :

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 https://github.com/eclipse/wildwebdeveloper/blob/docker/docker/Dockerfile . The image seems correct locally (I can start vncserver, or at least it seems so) so I deployed it to hub.docker.com <http://hub.docker.com> ( https://hub.docker.com/r/mickaelistria/wildwebdeveloper-build-test-dependencies/ ) to be able to reference it in our Jenkinsfile ( https://github.com/eclipse/wildwebdeveloper/blob/docker/Jenkinsfile#L15 ) and use it during build.
However, when the image is used on ci.eclipse.org <http://ci.eclipse.org>, it's failing to start the vncserver with an error that looks like a user management issue:
`vncserver: Could not create //.vnc.` (from https://jenkins.eclipse.org/wildwebdeveloper/job/Wildwebdeveloper/job/docker/4/console ). 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 https://wiki.eclipse.org/Jenkins#My_build_fails_with_.22No_user_exists_for_uid_1000100000.22.2C_what.27s_the_issue.3F

[1] https://github.com/eclipse-cbi/dockerfiles/blob/master/debian-gtk3-metacity/sid-gtk3.24/Dockerfile


_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cbi-dev

Attachment: signature.asc
Description: Message signed with OpenPGP


Back to the top