From 6d9d4dc8c7b0ad962ba01fa884336d1985cdbf10 Mon Sep 17 00:00:00 2001 From: Ashlie Martinez Date: Tue, 3 May 2022 15:38:43 -0700 Subject: [PATCH] Add some information of note for later scripts. Mostly using bash filepath mangling and known values to build up information used to find the proper locations of golang code in a container. --- docker/paths.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docker/paths.sh diff --git a/docker/paths.sh b/docker/paths.sh new file mode 100644 index 000000000..18029fae7 --- /dev/null +++ b/docker/paths.sh @@ -0,0 +1,9 @@ +#! /bin/bash + +# TODO(ashmrtnz): Needs adjusting based on where source code lands in the repo +# and where the scripts land in the repo. +REPO_ROOT=$(dirname $(pwd)) +REPO_CODE="${REPO_ROOT}/src" +GOLANG_BASE_REPO_PATH="/go/src/github.com/alcionai" +GOLANG_REPO_PATH="${GOLANG_BASE_REPO_PATH}/$(basename $REPO_ROOT)" +DEV_TAG="alcionai/dev"