directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seelmann (JIRA)" <>
Subject [jira] [Commented] (FC-202) dir-fortress-core-docker-test to use latest slapd install procs
Date Tue, 06 Dec 2016 21:45:58 GMT


Stefan Seelmann commented on FC-202:

If we push the image then it will have the debian openldap preinstalled? - Yes
What about the data that was used to test the image, will that be present as well? - No

The "docker build" command that you run once generates an image that contains what is described
in the Dockerfile: Debian 8 libaries, OpenLDAP installed, configured with the slapd.conf and
fortress schema (converted to slapd-config LDIF), that's all. This image is then in your local
docker image repo, and you can push it to docker hub. The docker image is just like a template.

When executing the script, the "docker run" command then starts an instance of
the image (called container). This doesn't start the full debian system (no init, no systemd),
but only the OpenLDAP process (as defined in last CMD line in Dockerfile) which then listens
within the container on port 389. The port 389 is then mapped to a free random port on the
host system, which can be discovered with the "docker inspect" command (actually there is
now a simpler "docker port" command). This port is then used to create the,
load the data, and run the tests. Afterwards the instance/container is stoped and deleted
("docker stop" and "docker rm").

The image/template is never changed. (Yes it is possible to create an image from a container,
but that't bad practice, always use a Dockerfile to build an image.)

HTH :)

> dir-fortress-core-docker-test to use latest slapd install procs
> ---------------------------------------------------------------
>                 Key: FC-202
>                 URL:
>             Project: FORTRESS
>          Issue Type: Improvement
>         Environment: Ubuntu
>            Reporter: Shawn McKinney
> Change the fortress core docker tests to use the latest install procedures:

This message was sent by Atlassian JIRA

View raw message