Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 204EA200BD3 for ; Tue, 6 Dec 2016 22:50:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1EF08160B2A; Tue, 6 Dec 2016 21:50:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 729D5160B17 for ; Tue, 6 Dec 2016 22:49:59 +0100 (CET) Received: (qmail 20487 invoked by uid 500); 6 Dec 2016 21:49:58 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 20450 invoked by uid 99); 6 Dec 2016 21:49:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2016 21:49:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6FED12C0079 for ; Tue, 6 Dec 2016 21:49:58 +0000 (UTC) Date: Tue, 6 Dec 2016 21:49:58 +0000 (UTC) From: "Stefan Seelmann (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (FC-202) dir-fortress-core-docker-test to use latest slapd install procs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 06 Dec 2016 21:50:00 -0000 [ https://issues.apache.org/jira/browse/FC-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15726809#comment-15726809 ] Stefan Seelmann edited comment on FC-202 at 12/6/16 9:49 PM: ------------------------------------------------------------- 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 run-tests.sh 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 build.properties, load the data, and run the tests. Afterwards the instance/container is stoped and deleted ("docker stop" and "docker rm"). Also, the run-tests.sh script including the execution of Maven itself runs on the host system, not within the container, the new image doesn't have any Java nor Maven installed, only the preconfigured OpenLDAP. 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 :) Stefan was (Author: seelmann): 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 run-tests.sh 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 build.properties, 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 :) Stefan > dir-fortress-core-docker-test to use latest slapd install procs > --------------------------------------------------------------- > > Key: FC-202 > URL: https://issues.apache.org/jira/browse/FC-202 > Project: FORTRESS > Issue Type: Improvement > Environment: Ubuntu > Reporter: Shawn McKinney > > Change the fortress core docker tests to use the latest install procedures: https://github.com/apache/directory-fortress-core/blob/master/README-QUICKSTART-SLAPD.md -- This message was sent by Atlassian JIRA (v6.3.4#6332)