navi/scripts/docker

16 lines
491 B
Text
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
2020-03-04 21:01:23 +00:00
export NAVI_HOME="$(cd "$(dirname "$0")/.." && pwd)"
2020-03-04 21:01:23 +00:00
cd "$NAVI_HOME"
./scripts/action release x86_64-unknown-linux-musl
docker run \
2020-03-11 14:30:25 +00:00
-e HOMEBREW_NO_AUTO_UPDATE=1 \
-e HOMEBREW_NO_INSTALL_CLEANUP=1 \
-v "$(pwd):/navi" \
-it 'bashell/alpine-bash' \
bash -c 'apk add git; apk add curl; git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && yes | ln -s /navi/target/debug/navi /usr/local/bin/navi; source $HOME/.bashrc; bash'