You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lntop/docker/build.sh

29 lines
536 B
Bash

#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")"
. _settings.sh
# we rsync repo sources to play well with docker cache
echo "Staging lntop source code..."
mkdir -p lntop/_src
rsync -a \
--exclude='.git/' \
--exclude='.idea/' \
--exclude='docker/' \
--exclude='README.md' \
--exclude='LICENSE' \
"$LNTOP_SRC_DIR" \
lntop/_src
cd lntop
echo "Building lntop docker container..."
if [[ -n "$LNTOP_VERBOSE" ]]; then
set -x
fi
exec docker build \
--build-arg LNTOP_SRC_PATH=_src \
-t lntop:local \
"$@" \
.