-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f34a4f6
commit 5c1220e
Showing
12 changed files
with
112 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$OLD_PS1" ]; then | ||
OLD_PS1="$PS1" | ||
export PS1="(graphkb) $PS1" | ||
fi | ||
|
||
if [ $(id -u) = 0 ]; then | ||
echo "Cannot run as root, defaulting to UID 1000" | ||
export USER_ID=1000 | ||
else | ||
export USER_ID=$(id -u) | ||
fi | ||
|
||
if [ $(id -g) = 0 ]; then | ||
echo "Cannot run as root, defaulting to GID 1000" | ||
export GROUP_ID=1000 | ||
else | ||
export GROUP_ID=$(id -g) | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM node:12-alpine | ||
|
||
ARG USER_ID | ||
ARG GROUP_ID | ||
|
||
RUN deluser node && \ | ||
addgroup --gid ${GROUP_ID} dev && \ | ||
adduser --uid ${USER_ID} -G dev -D dev | ||
USER dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM golang:1.13-alpine | ||
|
||
ARG USER_ID | ||
ARG GROUP_ID | ||
|
||
RUN addgroup --gid ${GROUP_ID} dev && \ | ||
adduser --uid ${USER_ID} -G dev -D dev | ||
|
||
USER dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
go get github.com/cespare/reflex | ||
|
||
reflex -r '\.go|\.yml' -s -- sh -c "go run cmd/go-graphkb/main.go --config cmd/go-graphkb/config.yml listen" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,5 +51,5 @@ | |
"last 1 safari version" | ||
] | ||
}, | ||
"proxy": "http://localhost:8090" | ||
} | ||
"proxy": "http://graphkb:8080" | ||
} |