From 0fa9b175d5f4c0998bb3de1dde30c53ea11b2187 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 10 Apr 2022 19:47:33 -0700 Subject: [PATCH] adding dev scripts --- Makefile | 21 +++++++++++++++++++++ scripts/gcloud.sh | 3 +++ scripts/node.sh | 3 +++ 3 files changed, 27 insertions(+) create mode 100644 Makefile create mode 100755 scripts/gcloud.sh create mode 100755 scripts/node.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5f83517 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +### +# Makefile +# +# (C) 2022, Simon Luetzelschwab +### +.PHONY: all node + +USER=$(shell whoami) +USER_ID=$(shell id -u) +GROUP_ID=$(shell id -g) + +BS_CMD=bash + +PWD=$(shell pwd) +WORK_DIR=/opt + +node: + ./scripts/node.sh + +gcloud: + ./scripts/gcloud.sh diff --git a/scripts/gcloud.sh b/scripts/gcloud.sh new file mode 100755 index 0000000..f3c2ff8 --- /dev/null +++ b/scripts/gcloud.sh @@ -0,0 +1,3 @@ +docker run --rm -it \ + -v $PWD/config:/root/.config/gcloud \ + -v $PWD:/root google/cloud-sdk bash diff --git a/scripts/node.sh b/scripts/node.sh new file mode 100755 index 0000000..0b9df10 --- /dev/null +++ b/scripts/node.sh @@ -0,0 +1,3 @@ +docker run --rm -it -u node --net=host -P \ + -e GOOGLE_APPLICATION_CREDENTIALS="/home/node/config/legacy_credentials/simon@kernel.community/adc.json" \ + -v $PWD:/home/node -w /home/node node bash