From 891f2093ef76ec39c270138f44b4372678bd0479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Henry?= Date: Wed, 7 Mar 2018 12:02:33 +0100 Subject: [PATCH] Docker: add bash-completion.sh in image --- scripts/ci/create_docker_image.minimal.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/scripts/ci/create_docker_image.minimal.sh b/scripts/ci/create_docker_image.minimal.sh index a17ad864f..a19e75e97 100755 --- a/scripts/ci/create_docker_image.minimal.sh +++ b/scripts/ci/create_docker_image.minimal.sh @@ -33,12 +33,14 @@ cp -a "$build_dir"/leveldb-$leveldb_version-r0.apk \ mkdir -p "$tmp_dir"/bin mkdir -p "$tmp_dir"/scripts container=$(docker create $build_image_name) -for bin in tezos-client tezos-node; do +for bin in tezos-client tezos-admin-client tezos-node; do docker cp -L $container:/home/opam/tezos/$bin "$tmp_dir"/bin done -cp -a "$script_dir"/docker "$tmp_dir"/scripts/ +cp -a "$script_dir"/docker/entrypoint.sh "$tmp_dir"/bin/ +cp -a "$script_dir"/docker/entrypoint.inc.sh "$tmp_dir"/bin/ cp "$script_dir"/alphanet.sh "$tmp_dir"/scripts/ cp "$script_dir"/alphanet_version "$tmp_dir"/scripts/ +cp "$src_dir"/src/bin_client/bash-completion.sh "$tmp_dir"/scripts/ echo echo "### Building minimal docker image..." @@ -57,15 +59,9 @@ RUN apk --no-cache add \ leveldb-1.18-r0.apk && \ rm leveldb-$leveldb_version-r0.apk -COPY bin/tezos-node \ - bin/tezos-client \ - scripts/docker/entrypoint.sh \ - scripts/docker/entrypoint.inc.sh \ - /usr/local/bin/ +COPY bin/* /usr/local/bin/ -COPY scripts/alphanet_version \ - scripts/alphanet.sh \ - /usr/local/share/tezos/ +COPY scripts/* /usr/local/share/tezos/ RUN adduser -S tezos && \ mkdir -p /var/run/tezos/node /var/run/tezos/client && \