diff options
author | Matt Arnold <matt@thegnuguru.org> | 2023-01-04 23:15:26 -0500 |
---|---|---|
committer | Matt Arnold <matt@thegnuguru.org> | 2023-01-04 23:15:26 -0500 |
commit | 40fdfd29b720f73330df039579ccdef5fb6b6d27 (patch) | |
tree | b68f8846e434bb12c872517f34b679a7b3313d2b | |
parent | 231dca7a940eff16d2bd9415ed57f0466ae8f3dd (diff) |
Dockerless build
-rw-r--r-- | Makefile | 10 | ||||
-rwxr-xr-x[-rw-r--r--] | appbuild.sh | 16 |
2 files changed, 20 insertions, 6 deletions
diff --git a/Makefile b/Makefile index 1f3b4a5..c6be5c8 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,18 @@ build: sign docker build --no-cache . -t deepblue sign: ./sign.sh -up: sign build +up: sign docker run --net customnetwork --ip 172.42.0.2 -d deepblue --name blueproxy clean: rm -fv intercept* + rm -rfv app +nodocker: + mkdir -pv app/src + cp appbuild.sh app/src + cp intercept.* app + cd app/src + export appRoot=` realpath ../app` + ./appbuild.sh all: sign build up diff --git a/appbuild.sh b/appbuild.sh index 7ae04bb..f5d1702 100644..100755 --- a/appbuild.sh +++ b/appbuild.sh @@ -1,15 +1,21 @@ #!/bin/sh - +if [ ! -n $appRoot ] +then + export appRoot="/app" +fi +mkdir -pv $appRoot/src +cd $appRoot/src +echo $appRoot git clone https://git.piusbird.space/miniweb.git/ cd miniweb make -cp miniwebproxy /app -cp -r scripts/ /app +cp miniwebproxy $appRoot +cp -r scripts/ $appRoot chmod +x sign.sh cd .. sh -c miniweb/sign.sh git clone https://git.piusbird.space/poseidon.git/ cd poseidon go build -cp *.html /app -cp poseidon /app +cp *.html $appRoot +cp poseidon $appRoot |