zrhoffman commented on a change in pull request #6532: URL: https://github.com/apache/trafficcontrol/pull/6532#discussion_r798070615
########## File path: dev/t3c/run.sh ########## @@ -0,0 +1,81 @@ +#!/bin/sh + +# 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. + +set -o errexit +trap '[ $? -eq 0 ] && exit 0 || echo "Error on line ${LINENO} of ${0}"; exit 1' EXIT + + +cd "$TC/cache-config" + +# Build area may contain non-debug binaries +make clean && make -j debug + +if [[ ! -f /usr/bin/t3c ]]; then + ln -s /root/go/src/github.com/apache/trafficcontrol/cache-config/t3c/t3c /usr/bin/ +fi +if [[ ! -f /usr/bin/t3c-apply ]]; then + ln -s /root/go/src/github.com/apache/trafficcontrol/cache-config/t3c-apply/t3c-apply /usr/bin/ +fi +if [[ ! -f /usr/bin/t3c-check ]]; then + ln -s /root/go/src/github.com/apache/trafficcontrol/cache-config/t3c-check/t3c-check /usr/bin/ +fi +if [[ ! -f /usr/bin/t3c-check-refs ]]; then + ln -s /root/go/src/github.com/apache/trafficcontrol/cache-config/t3c-check-refs/t3c-check-refs /usr/bin/ +fi +if [[ ! -f /usr/bin/t3c-check-reload ]]; then + ln -s /root/go/src/github.com/apache/trafficcontrol/cache-config/t3c-check-reload/t3c-check-reload /usr/bin/ +fi +if [[ ! -f /usr/bin/t3c-diff ]]; then + ln -s /root/go/src/github.com/apache/trafficcontrol/cache-config/t3c-diff/t3c-diff /usr/bin/ +fi +if [[ ! -f /usr/bin/t3c-generate ]]; then + ln -s /root/go/src/github.com/apache/trafficcontrol/cache-config/t3c-generate/t3c-generate /usr/bin/ +fi +if [[ ! -f /usr/bin/t3c-preprocess ]]; then + ln -s /root/go/src/github.com/apache/trafficcontrol/cache-config/t3c-preprocess/t3c-preprocess /usr/bin/ +fi +if [[ ! -f /usr/bin/t3c-request ]]; then + ln -s /root/go/src/github.com/apache/trafficcontrol/cache-config/t3c-request/t3c-request /usr/bin/ +fi +if [[ ! -f /usr/bin/t3c-update ]]; then + ln -s /root/go/src/github.com/apache/trafficcontrol/cache-config/t3c-update/t3c-update /usr/bin/ +fi +if [[ ! -f /usr/bin/tm-health-client ]]; then + ln -s /root/go/src/github.com/apache/trafficcontrol/cache-config/tm-health-client/tm-health-client /usr/bin/ +fi Review comment: Can this be a *for* loop? ########## File path: dev/traffic_router/run.sh ########## @@ -0,0 +1,42 @@ +#!/bin/sh +# 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. + +set -o errexit +trap '[ $? -eq 0 ] && exit 0 || echo "Error on line ${LINENO} of ${0}"; exit 1' EXIT + +cd "$TC/traffic_router" + +mvn -Dmaven.test.skip=true compile -P \!rpm-build +mvn -Dmaven.test.skip=true package -P \!rpm-build + +cp core/target/ROOT.war /opt/tomcat/webapps/ +ln -s "$TC/dev/traffic_router/conf/*" /opt/tomcat/conf/ Review comment: The result of this command: ```shell trafficrouter:/# ls -l /opt/tomcat/conf total 240 lrwxrwxrwx 1 root root 71 Feb 2 22:25 * -> /root/go/src/github.com/apache/trafficcontrol/dev/traffic_router/conf/* drwxr-x--- 3 root root 4096 Feb 2 22:25 Catalina -rw------- 1 root root 12873 Jan 28 2021 catalina.policy -rw------- 1 root root 7262 Jan 28 2021 catalina.properties -rw------- 1 root root 1400 Jan 28 2021 context.xml -rw------- 1 root root 1149 Jan 28 2021 jaspic-providers.xml -rw------- 1 root root 2313 Jan 28 2021 jaspic-providers.xsd -rw------- 1 root root 4144 Jan 28 2021 logging.properties -rw------- 1 root root 7588 Jan 28 2021 server.xml -rw------- 1 root root 2164 Jan 28 2021 tomcat-users.xml -rw------- 1 root root 2558 Jan 28 2021 tomcat-users.xsd -rw------- 1 root root 172359 Jan 28 2021 web.xml ``` -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
