From 1fc2c1d3b49cae800d4df77c9e9aefae28d48ce0 Mon Sep 17 00:00:00 2001 From: Nemo Date: Sun, 10 Feb 2019 12:05:38 +0530 Subject: [PATCH] Adds makisu and go binaries --- files/bash/.bashrc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/files/bash/.bashrc b/files/bash/.bashrc index 9c32ec0..ee7a9fb 100644 --- a/files/bash/.bashrc +++ b/files/bash/.bashrc @@ -7,6 +7,7 @@ pathadd() { } pathadd '/home/nemo/bin' +pathadd '/home/nemo/projects/go/bin' alias watch='watch ' alias xclip='xclip -selection c' @@ -547,4 +548,20 @@ function sprint() { cut -d ' ' -f 4- | # To handle multiple commit-pull-reset-commit cycles uniq +} + +# https://github.com/uber/makisu + +function makisu_build() { + makisu_version=${MAKISU_VERSION:-v0.1.8} + + docker run -i --rm --net host \ + -v /var/run/docker.sock:/docker.sock \ + -e DOCKER_HOST=unix:///docker.sock \ + -v $(pwd):/makisu-context \ + -v /tmp/makisu-storage:/makisu-storage \ + gcr.io/makisu-project/makisu:$makisu_version build \ + --modifyfs=true --load \ + ${@:1:-1} /makisu-context + # popd } \ No newline at end of file