Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] What's the best startup Docker image for SWT UI Tests?

This is the relevant parts of the Dockerfile we use to run our SWTbot tests here at QNX. It’s based on Ubuntu but should give an idea. Essentially you need gnome-core for GTK, xvfb or xvnc for X, and we use metacity for the window manager. And, then, of course, Java which we use the Oracle JDK.

 

FROM ubuntu:18.04

 

RUN apt-get update \

    && apt-get upgrade -y \

    && apt-get install -y build-essential software-properties-common \

        byobu curl git htop man unzip vim wget dos2unix apt-utils \

        gnome-core light-themes xvfb metacity

    && echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \

    && add-apt-repository -y ppa:webupd8team/java \

    && apt-get update \

    && apt-get install -y oracle-java8-installer \

    && rm -rf /var/cache/oracle-jdk8-installer \

    && rm -rf /var/lib/apt/lists/*

 

From: cbi-dev-bounces@xxxxxxxxxxx <cbi-dev-bounces@xxxxxxxxxxx> On Behalf Of Mickael Istria
Sent: Friday, September 14, 2018 11:15 AM
To: Common-build Developers discussion <cbi-dev@xxxxxxxxxxx>
Subject: [cbi-dev] What's the best startup Docker image for SWT UI Tests?

 

Hi folks,

 

I'm considering using a Docker agent for some Jenkins builds I manage to get more control on the environment, and also to have this environment explicit somewhere and reusable so everything should be more portable.

What would you recommend as Docker image for testing SWT/Platform-based applications? As far as I remember, this requires gtk, a window manager with X or wayland, java and that's about all. Which image should I get started from? Do some projects already use similar images?

 

Thanks in advance


--

Mickael Istria

Eclipse IDE developer, for Red Hat Developers


Back to the top