test_imagefile raw
1 # Copyright (c) The Bitcoin Core developers
2 # Distributed under the MIT software license, see the accompanying
3 # file COPYING or https://opensource.org/license/mit/.
4
5 # See ci/README.md for usage.
6
7 # We never want scratch, but default arg silences a Warning
8 ARG CI_IMAGE_NAME_TAG=scratch
9 FROM ${CI_IMAGE_NAME_TAG}
10
11 ARG FILE_ENV
12 ENV FILE_ENV=${FILE_ENV}
13
14 ARG BASE_ROOT_DIR
15 ENV BASE_ROOT_DIR=${BASE_ROOT_DIR}
16
17 # Make retry available in PATH, needed for CI_RETRY_EXE
18 COPY ./ci/retry/retry /usr/bin/retry
19 COPY ./ci/test/00_setup_env.sh ./${FILE_ENV} ./ci/test/01_base_install.sh /ci_container_base/ci/test/
20 COPY ./ci/test/*.patch /ci_container_base/ci/test/
21
22 # Bash is required, so install it when missing
23 RUN sh -c "bash -c 'true' || ( apk update && apk add --no-cache bash )"
24
25 RUN ["bash", "-c", "cd /ci_container_base/ && set -o errexit && source ./ci/test/00_setup_env.sh && DANGER_RUN_CI_ON_HOST=1 ./ci/test/01_base_install.sh"]
26