This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 54cd288c0f4f3fbb4b14f92cdeeb1a1892907ac0 Author: Benoit Tellier <[email protected]> AuthorDate: Wed Jun 23 11:21:00 2021 +0700 JAMES-3603 Remove docker wrapper instructions in the README --- README.adoc | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/README.adoc b/README.adoc index 2aeeb36..f8bf361 100644 --- a/README.adoc +++ b/README.adoc @@ -102,43 +102,6 @@ Useful options includes: - `-DskipTests` to skip the long to execute resource consuming test suite that requires a docker daemon. - `-T 4` to parallelize the build on several CPUs. -=== With the docker wrapper - -Alternatively we provide a standard compilation environement bundled in a docker image. - -First step, you have to build the Docker image - - $ docker build -t james/project dockerfiles/compilation/java-11 - -In order to run the build, you have to launch the following command: - - $ docker run -v $PWD/.m2:/root/.m2 -v $PWD:/origin -t james/project -s SHA1 - -Where: - -- $PWD/.m2:/root/.m2: is the first volume used to share the maven repository, -as we don't want to download all dependencies on each build - -- SHA1 (optional): is the given git SHA1 of the james-project repository to build or master if none. -- -s option: given tests will not be played while building. Not specifying means play tests. - -To retrieve compiled artifacts, one might mount these volumes: - -- --volume $PWD/dockerfiles/run/spring/destination:/spring/destination : is the volume used to get the compiled elements for Spring packaging. -- --volume $PWD/dockerfiles/run/guice/cassandra/destination:/cassandra/destination : is the volume used to get the compiled elements for Guice Cassandra packaging and Cassandra-LDAP packaging. -- --volume $PWD/dockerfiles/run/guice/jpa/destination:/jpa/destination : is the volume used to get the compiled elements for Guice JPA packaging. -- --volume $PWD/swagger:/swagger : is the volume used to get the swagger json files for webadmin documentation. - -Some tests needs a DOCKER_HOST environment variable in order to be played, they will be ignored if you don't provide this variable. -If you wish to play them, you may use a command like the following (depending on your docker configuration): - - $ docker run --env DOCKER_HOST=tcp://172.17.0.1:2376 -v $PWD/.m2:/root/.m2 -v $PWD:/origin -v $PWD/dockerfiles/run/spring/destination:/destination -t james/project SHA1 - -If you are using a a fresh installation of Docker, your DOCKER_HOST should be unix:///var/run/docker.sock and you should mount this socket as a volume: - - $ docker run --env DOCKER_HOST=unix:///var/run/docker.sock -v /var/run/docker.sock:/var/run/docker.sock -v $PWD/.m2:/root/.m2 -v $PWD:/origin -v $PWD/dockerfiles/run/spring/destination:/destination -t james/project SHA1 - - == How to run James in Docker This feature is available for three configurations : --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
