You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2017/01/30 15:29:08 UTC

[02/19] incubator-trafficcontrol git commit: Add TM2 docker build

Add TM2 docker build


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/b36c65ec
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/b36c65ec
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/b36c65ec

Branch: refs/heads/master
Commit: b36c65ec9b9afd1ddf40d4246811b2683c9a962e
Parents: 594b851
Author: Robert Butts <ro...@gmail.com>
Authored: Thu Jan 26 14:34:40 2017 -0700
Committer: Dave Neuman <ne...@apache.org>
Committed: Mon Jan 30 08:28:46 2017 -0700

----------------------------------------------------------------------
 .../build/Dockerfile-traffic_monitor_golang     | 43 ++++++++++++++++++++
 infrastructure/docker/build/docker-compose.yml  | 11 +++++
 2 files changed, 54 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/b36c65ec/infrastructure/docker/build/Dockerfile-traffic_monitor_golang
----------------------------------------------------------------------
diff --git a/infrastructure/docker/build/Dockerfile-traffic_monitor_golang b/infrastructure/docker/build/Dockerfile-traffic_monitor_golang
new file mode 100644
index 0000000..209d4b7
--- /dev/null
+++ b/infrastructure/docker/build/Dockerfile-traffic_monitor_golang
@@ -0,0 +1,43 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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:7
+
+MAINTAINER Dan Kirkwood
+
+RUN	yum -y install \
+		git \
+		rpm-build && \
+	yum -y clean all
+
+ENV GITREPO https://github.com/apache/incubator-trafficcontrol
+ENV BRANCH master
+
+WORKDIR /repo
+
+# Go specific
+RUN	yum -y install \
+		golang && \
+	yum -y clean all
+###
+
+VOLUME ./artifacts:/artifacts
+
+ADD run-build.sh .
+
+CMD ./run-build.sh traffic_monitor_golang 2>&1 | tee /artifacts/build-traffic_monitor_golang.log
+
+# vi:syntax=Dockerfile

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/b36c65ec/infrastructure/docker/build/docker-compose.yml
----------------------------------------------------------------------
diff --git a/infrastructure/docker/build/docker-compose.yml b/infrastructure/docker/build/docker-compose.yml
index 879446d..caa490a 100644
--- a/infrastructure/docker/build/docker-compose.yml
+++ b/infrastructure/docker/build/docker-compose.yml
@@ -44,6 +44,17 @@ services:
     volumes:
       - ./artifacts:/artifacts
 
+  traffic_monitor_golang_build:
+    image: traffic_monitor_golang_builder
+    build:
+      dockerfile: Dockerfile-traffic_monitor_golang
+      context: .
+    environment:
+      - GITREPO
+      - BRANCH
+    volumes:
+      - ./artifacts:/artifacts
+
   traffic_ops_build:
     image: traffic_ops_builder
     build: