You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2018/08/30 22:26:49 UTC
[trafficserver] branch 8.0.x updated: Makefile to make Fedora and
Centos docker images
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/8.0.x by this push:
new bebe064 Makefile to make Fedora and Centos docker images
bebe064 is described below
commit bebe064557d43b09d00fc67ae4178e279e8d3434
Author: Bryan Call <bc...@apache.org>
AuthorDate: Thu Jul 26 09:02:50 2018 -0700
Makefile to make Fedora and Centos docker images
(cherry picked from commit 5850125dccda2c0887dd368fbc25fd7c9e15642d)
---
ci/docker/Makefile | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/ci/docker/Makefile b/ci/docker/Makefile
new file mode 100644
index 0000000..7ac4375
--- /dev/null
+++ b/ci/docker/Makefile
@@ -0,0 +1,50 @@
+# Makefile to make docker images
+#
+# 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.
+
+.DEFAULT_GOAL := help
+
+help:
+ @echo 'fedora26 create ATS docker image for Fedora 27'
+ @echo 'fedora27 create ATS docker image for Fedora 27'
+ @echo 'fedora28 create ATS docker image for Fedora 28'
+ @echo 'centos6 create ATS docker image for Centos 6'
+ @echo 'centos7 create ATS docker image for Centos 7'
+ @echo 'all build all images'
+
+all: fedora centos
+
+# Fedora Docker images
+fedora: fedora26 fedora27 fedora28
+
+fedora26:
+ docker build -t ats_$@ --build-arg OS_VERSION=26 --build-arg OS_TYPE=fedora yum/
+
+fedora27:
+ docker build -t ats_$@ --build-arg OS_VERSION=27 --build-arg OS_TYPE=fedora yum/
+
+fedora28:
+ docker build -t ats_$@ --build-arg OS_VERSION=28 --build-arg OS_TYPE=fedora yum/
+
+# Centos Docker images
+centos: centos6 centos7
+
+centos6:
+ docker build -t ats_$@ --build-arg OS_VERSION=6 --build-arg OS_TYPE=centos yum/
+
+centos7:
+ docker build -t ats_$@ --build-arg OS_VERSION=7 --build-arg OS_TYPE=centos yum/