...

/

Create the image of the JAVA test container

Create the image of the JAVA test container

Learn how to build an image from the Dockerfile.

Run the docker build command in the project root folder to create the JAVA tests container image:

Press + to interact
docker build -t tests .

The following information is displayed in the console while the image is created:

Press + to interact
Sending build context to Docker daemon 18.5MB
Step 1/6 : FROM selenium/node-chrome
---> a4b0ceb74bae
Step 2/6 : COPY . .
---> d40e748ec396
Step 3/6 : RUN apt-get update
---> Running in 323769e78e7d
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Ign:2 http://deb.debian.org/debian stretch InRelease
.............................................
Reading package lists...
Removing intermediate container 323769e78e7d
---> 1c46919851c1
Step 4/6 : RUN apt-get install maven -y
---> Running in 50a3eb491313
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
ant ant-optional ca-certificates-java dbus default-jre-headless
....................................................
libxml-commons-external-java libxml-commons-resolver1.1-java libxom-java
libxpp2-java libxpp3-java libxrender1 libxtst6 openjdk-8-jre-headless
...............................................
libxml-commons-external-java libxml-commons-resolver1.1-java libxom-java
libxpp2-java libxpp3-java libxrender1 libxtst6 maven openjdk-8-jre-headless
0 upgraded, 113 newly installed, 0 to remove and 43 not upgraded.
Need to get 64.0 MB of archives.
After this operation, 159 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 libxau6 amd64 1:1.0.8-1 [20.7 kB]
Get:2 http://security.debian.org/debian-security stretch/updates/main amd64 openjdk-8-jre-headless amd64 8u252-b09-1~deb9u1 [27.4 MB]
..............................................................
Get:113 http://security.debian.org/debian-security stretch/updates/main amd64 liblog4j1.2-java all 1.2.17-7+deb9u1 [431 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 64.0 MB in 2s (26.2 MB/s)
Selecting previously unselected package libxau6:amd64.
Preparing to unpack .../000-libxau6_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau6:amd64 (1:1.0.8-1) ...
Selecting previously unselected package libapparmor1:amd64.
.......................................................................
Unpacking maven (3.3.9-4) ...
Setting up libslf4j-java (1.7.22-1) ...
Setting up libplexus-classworlds-java (1.5.0-5) ...
..........................................................
Setting up libxi6:amd64 (2:1.7.9-1) ...
Setting up libxtst6:amd64 (2:1.2.3-1) ...
...........................................................
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode
Adding debian:Amazon_Root_CA_3.pem
Adding debian:Chambers_of_Commerce_Root_-_2008.pem
...........................................................
Adding debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
done.
Setting up junit4 (4.12-4) ...
...........................................................
Setting up maven (3.3.9-4) ...
update-alternatives: using /usr/share/maven/bin/mvn to provide /usr/bin/mvn (mvn) in auto mode
...
done.
Removing intermediate container 50a3eb491313
---> 42db5b90c0a0
Step 5/6 : RUN apt-get install openjdk-8-jdk -y
---> Running in d44ce00f5ca5
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
adwaita-icon-theme at-spi2-core dconf-gsettings-backend dconf-service
.......................................................
openjdk-8-jdk-headless openjdk-8-jre sgml-base shared-mime-info tcpd
Suggested packages:
libasound2-plugins alsa-utils colord gvfs libice-doc pciutils pulseaudio
openjdk-8-source visualvm icedtea-8-plugin sgml-base-doc mesa-utils
The following NEW packages will be installed:
adwaita-icon-theme at-spi2-core dconf-gsettings-backend dconf-service
......................................................
shared-mime-info tcpd x11-utils x11proto-core-dev x11proto-input-dev
0 upgraded, 140 newly installed, 0 to remove and 43 not upgraded.
Get:1 http://deb.debian.org/debian stretch/main amd64 fontconfig amd64 2.11.0-6.7+b1 [404 kB]
........................................................
Get:140 http://deb.debian.org/debian stretch/main amd64 libtxc-dxtn-s2tc amd64 1.0+git20151227-2 [48.4 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 85.5 MB in 7s (10.9 MB/s)
Preparing to unpack .../001-libogg0_1.3.2-1_amd64.deb ...
Unpacking libogg0:amd64 (1.3.2-1) ...
Selecting previously unselected package sgml-base.
......................................................
Selecting previously unselected package libtxc-dxtn-s2tc:amd64.
Preparing to unpack .../139-libtxc-dxtn-s2tc_1.0+git20151227-2_amd64.deb ...
Unpacking libtxc-dxtn-s2tc:amd64 (1.0+git20151227-2) ...
.....................................................
Setting up libpthread-stubs0-dev:amd64 (0.3-4) ...
.....................................................
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode
Setting up libglib2.0-0:amd64 (2.50.3-2+deb9u2) ...
.....................................................
Setting up openjdk-8-jdk:amd64 (8u252-b09-1~deb9u1) ...
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
Processing triggers for sgml-base (1.29) ...
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.36.5-2+deb9u2) ...
Removing intermediate container d44ce00f5ca5
---> ec5d969f3c69
Step 6/6 : ENTRYPOINT ["bash", "command.sh"]
---> Running in 17a36b3ea574
Removing intermediate container 17a36b3ea574
---> 371d7b0fd7ab
Successfully built 371d7b0fd7ab
Successfully tagged tests:latest

What does this information mean?

The listing shows how each of the six steps ...