You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by ja...@apache.org on 2015/09/28 15:19:54 UTC
bigtop git commit: BIGTOP-2067. Dockerfile should build
transaction-queue from zero.
Repository: bigtop
Updated Branches:
refs/heads/master 24e2be2ed -> 266ab0c0e
BIGTOP-2067. Dockerfile should build transaction-queue from zero.
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/266ab0c0
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/266ab0c0
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/266ab0c0
Branch: refs/heads/master
Commit: 266ab0c0e3f94ffd51db06396e705f502afb684b
Parents: 24e2be2
Author: jayvyas <ja...@apache.org>
Authored: Sun Sep 27 15:11:31 2015 -0400
Committer: jayvyas <ja...@apache.org>
Committed: Mon Sep 28 09:18:34 2015 -0400
----------------------------------------------------------------------
.../bigpetstore-transaction-queue/Dockerfile | 24 ++++++++++++++------
1 file changed, 17 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/bigtop/blob/266ab0c0/bigtop-bigpetstore/bigpetstore-transaction-queue/Dockerfile
----------------------------------------------------------------------
diff --git a/bigtop-bigpetstore/bigpetstore-transaction-queue/Dockerfile b/bigtop-bigpetstore/bigpetstore-transaction-queue/Dockerfile
index 10b0655..8ee4416 100644
--- a/bigtop-bigpetstore/bigpetstore-transaction-queue/Dockerfile
+++ b/bigtop-bigpetstore/bigpetstore-transaction-queue/Dockerfile
@@ -12,12 +12,22 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-FROM centos
+FROM centos:7
+MAINTAINER jay@apache.org
RUN yum update -y
-RUN yum install -y java-1.7.0-openjdk
-RUN yum install -y unzip
-ADD build/distributions/bigpetstore-transaction-queue-1.0.zip /opt/
+RUN yum install -y java-1.7.0-openjdk unzip wget
+RUN yum install -y java-1.7.0-openjdk-devel
+
WORKDIR /opt/
-RUN unzip -o bigpetstore-transaction-queue-1.0.zip
-CMD /opt/bigpetstore-transaction-queue-1.0/bin/bigpetstore-transaction-queue
+
+# Get Bigtop
+# This comes with a gradlew wrapper we can use.
+RUN wget http://www.apache.org/dist/bigtop/bigtop-1.0.0/bigtop-1.0.0-project.tar.gz
+RUN tar -xvf bigtop-1.0.0-project.tar.gz
+
+# Install bigpetstore transaction queue
+WORKDIR /opt/bigtop-1.0.0/bigtop-bigpetstore/bigpetstore-transaction-queue
+RUN /opt/bigtop-1.0.0/gradlew distZip
+RUN unzip build/distributions/bigpetstore-transaction-queue-1.0.zip
+RUN mv ./bigpetstore-transaction-queue-1.0 /opt/bigpetstore-transaction-queue-1.0/
+CMD /opt/bigpetstore-transaction-queue-1.0/bigpetstore-transaction-queue-1.0/bin/bigpetstore-transaction-queue