You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2018/01/04 08:13:32 UTC
[17/21] james-project git commit: JAMES-2274 Allow to build package
from specific docker image
JAMES-2274 Allow to build package from specific docker image
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/0e6e17d5
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/0e6e17d5
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/0e6e17d5
Branch: refs/heads/master
Commit: 0e6e17d5ab99bc5a373505252234607227eba976
Parents: 64d2d19
Author: benwa <bt...@linagora.com>
Authored: Thu Dec 28 13:18:03 2017 +0700
Committer: benwa <bt...@linagora.com>
Committed: Thu Jan 4 15:12:47 2018 +0700
----------------------------------------------------------------------
README.adoc | 10 ++++++----
dockerfiles/packaging/guice/cassandra/Dockerfile | 3 ++-
2 files changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/0e6e17d5/README.adoc
----------------------------------------------------------------------
diff --git a/README.adoc b/README.adoc
index 3df60ec..7e3acc9 100644
--- a/README.adoc
+++ b/README.adoc
@@ -357,11 +357,16 @@ You can generate a deb package and an RPM package for James by using the followi
First step, you have to build the Docker image used to generate the package
- $ docker build -t build-james-packages --build-arg RELEASE=3.0-beta6 --build-arg ITERATION=1 dockerfiles/packaging/guice/cassandra
+ $ docker build -t build-james-packages \
+ --build-arg RELEASE=3.0-beta6 \
+ --build-arg ITERATION=1 \
+ --build-arg BASE=linagora/james-project
+ dockerfiles/packaging/guice/cassandra
Where:
- ITERATION is the release number used after the last hyphen (e.g. 3.0-beta6-1, 3.0-beta6-2, 3.0-beta6-3...)
+- BASE is the image jar and executable are copied from. Defaults to linagora/james-project:latest
Then, you have to run the container:
@@ -370,6 +375,3 @@ Then, you have to run the container:
Where:
- $PWD/result is the folder where the deb and the RPM packages will be copied
-
-This process will use the last generated docker image of James. You can change this behaviour by editing the first line of
-dockerfiles/packaging/Dockerfile and choose the source image you want to use.
http://git-wip-us.apache.org/repos/asf/james-project/blob/0e6e17d5/dockerfiles/packaging/guice/cassandra/Dockerfile
----------------------------------------------------------------------
diff --git a/dockerfiles/packaging/guice/cassandra/Dockerfile b/dockerfiles/packaging/guice/cassandra/Dockerfile
index eed4b0f..21b99c6 100644
--- a/dockerfiles/packaging/guice/cassandra/Dockerfile
+++ b/dockerfiles/packaging/guice/cassandra/Dockerfile
@@ -1,4 +1,5 @@
-FROM linagora/james-project:latest as source
+ARG BASE=linagora/james-project:latest
+FROM ${BASE} as source
FROM debian:8.1
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org