Skip to content

Commit

Permalink
adding dev scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkernel committed Apr 11, 2022
1 parent e939135 commit 0fa9b17
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions scripts/gcloud.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docker run --rm -it \
-v $PWD/config:/root/.config/gcloud \
-v $PWD:/root google/cloud-sdk bash
3 changes: 3 additions & 0 deletions scripts/node.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docker run --rm -it -u node --net=host -P \
-e GOOGLE_APPLICATION_CREDENTIALS="/home/node/config/legacy_credentials/[email protected]/adc.json" \
-v $PWD:/home/node -w /home/node node bash

0 comments on commit 0fa9b17

Please sign in to comment.