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



##########
File path: .github/actions/run-ciab/entrypoint.sh
##########
@@ -0,0 +1,52 @@
+#!/bin/sh -l
+# 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 -ex;
+export COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 # use Docker BuildKit for 
better image building performance
+(
+cd dist;
+mv -- */*.rpm .;
+);
+
+docker-compose --version;
+cd infrastructure/cdn-in-a-box;
+make; # All RPMs should have already been built
+
+docker images;
+logged_services='trafficrouter readiness';
+other_services='dns edge enroller mid origin trafficmonitor trafficops 
trafficops-perl trafficstats trafficvault';
+docker_compose='docker-compose -f ./docker-compose.yml -f 
./docker-compose.readiness.yml';
+time $docker_compose build --parallel $logged_services $other_services;
+$docker_compose up -d $logged_services $other_services;
+$docker_compose logs -f $logged_services &
+
+set +e;
+container_exit_code="$(timeout 10m docker wait "$($docker_compose ps -q 
readiness)")"
+exit_code=$?;
+set -e;
+if [ $exit_code -ne 0 ]; then
+       echo "CDN-in-a-Box didn't become ready within 10 minutes - exiting" >&2;
+  $docker_compose --no-ansi logs --no-color $other_services;
+elif [ "$container_exit_code" -ne 0 ]; then
+       echo 'Readiness container exited with an error' >&2;
+  $docker_compose --no-ansi logs --no-color $other_services;
+       exit_code="$container_exit_code";

Review comment:
       Whitespace made consistent in d3036d0a3.




----------------------------------------------------------------
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:
[email protected]


Reply via email to