cat input file to log for troubleshooting
[yaml_builds.git] / tools / pegleg.sh
1 #!/usr/bin/env bash
2 ##############################################################################
3 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.        #
4 #                                                                            #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
6 # not use this file except in compliance with the License.                   #
7 #                                                                            #
8 # You may obtain a copy of the License at                                    #
9 #       http://www.apache.org/licenses/LICENSE-2.0                           #
10 #                                                                            #
11 # Unless required by applicable law or agreed to in writing, software        #
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
14 # See the License for the specific language governing permissions and        #
15 # limitations under the License.                                             #
16 ##############################################################################
17
18 set -x
19
20 PEGLEG_IMAGE=${PEGLEG_IMAGE:-quay.io/airshipit/pegleg:09d85465827f1468d3469e5bbcf6b48f25338e7c}
21
22 echo
23 echo "== NOTE: Workspace $WORKSPACE  is available as /workspace in container context =="
24 echo
25
26 docker run --rm -t \
27     --net=none \
28     --workdir="/site" \
29     -v "${WORKSPACE}:/site" \
30     -v "${AIRSHIP_TREASUREMAP}:/global" \
31     "${PEGLEG_IMAGE}" \
32         pegleg "${@}"