You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/10/05 19:19:34 UTC

[GitHub] [trafficcontrol] zrhoffman commented on a change in pull request #5004: Added transitive source build for ATS.

zrhoffman commented on a change in pull request #5004:
URL: https://github.com/apache/trafficcontrol/pull/5004#discussion_r482312255



##########
File path: traffic_server/tsb/Dockerfile
##########
@@ -0,0 +1,75 @@
+# Licensed to the Apache Software Fou:qndation (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.
+#
+# SPDX-License-Identifier: Apache-2.0
+FROM centos:7
+
+RUN	yum clean all \
+	&& yum install -y deltarpm epel-release centos-release-scl-rh \
+	&& yum-config-manager --enable rhel-server-rhscl-7-rpms \
+	&& yum clean all \
+	&& yum install -y \
+		autoconf \
+		automake \
+		pkgconfig \
+		libtool \
+		perl-ExtUtils-MakeMaker \
+		gcc-c++ \
+		glibc-devel \
+		tcl-devel \
+		expat-devel \
+		pcre \
+		pcre-devel \
+		libcap-devel \
+		flex \
+		hwloc-devel \
+		libuuid-devel \
+		lua-devel \
+		make \
+		git \
+		rpm-build \
+		man \
+		sudo \
+		python3 \
+		python35 \
+		ed \
+		zlib \
+		zlib-devel \
+		ncurses-devel \
+		libcurl-devel \
+		devtoolset-7 \
+		luajit-devel \
+		openssl \
+		openssl-devel \
+		hwloc \
+		perl-URI \
+		nmap-ncat \
+		perl-Digest-SHA \
+		nano \
+		ed \
+	&& yum clean all
+
+ADD	jansson.pic.patch /opt/src/
+ADD	cjose.pic.patch /opt/src/
+ADD	https://bootstrap.pypa.io/get-pip.py /
+RUN	python get-pip.py
+RUN	pip install --user Sphinx
+ADD	run.sh /
+ADD	trafficserver.spec /rpmbuilddir/SPECS/trafficserver.spec
+ADD	traffic_server_jemalloc /rpmbuilddir/SOURCES/traffic_server_jemalloc
+RUN	/usr/sbin/useradd -u 176 -r ats -s /sbin/nologin -d /
+CMD	set -o pipefail; scl enable devtoolset-7 ./run.sh 2>&1 | tee /rpmbuilddir/RPMS/x86_64/build.log

Review comment:
       `CMD set -o pipefail` fails with some base images (e.g., `debian`), so that command should follow the Dockerfile convention of using `&&`, not `;` (to catch `set -o pipefail` returning a nonzero exit code)




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org