rename scripts
This commit is contained in:
parent
f46ab98ac2
commit
538e901fcb
3 changed files with 0 additions and 2 deletions
26
scripts/server-docker
Executable file
26
scripts/server-docker
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh -eu
|
||||
|
||||
: "${DOCKER_BIN:=docker}"
|
||||
: "${UNWIND_PORT:=8097}"
|
||||
|
||||
cd "$RUN_DIR"
|
||||
|
||||
[ -z "${DEBUG:-}" ] || set -x
|
||||
|
||||
version=$(cat build/version)
|
||||
|
||||
localhost=127.0.0.1
|
||||
localport=8000
|
||||
netloc="$localhost:$localport"
|
||||
|
||||
echo >&2 "Unwind will be available on http://$netloc/
|
||||
"
|
||||
|
||||
$DOCKER_BIN run \
|
||||
--init \
|
||||
-it --rm \
|
||||
--read-only \
|
||||
--memory '500m' \
|
||||
--publish "$netloc":"$UNWIND_PORT" \
|
||||
--volume "$RUN_DIR"/data:/data \
|
||||
"code.dumpr.org/ducklet/unwind":"$version"
|
||||
Loading…
Add table
Add a link
Reference in a new issue