mirror of https://git.tuxpa.in/a/code-server.git
24 lines
335 B
Bash
Executable File
24 lines
335 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
main() {
|
|
cd "$(dirname "$0")/../../.."
|
|
source ./ci/lib.sh
|
|
|
|
docker run \
|
|
-it \
|
|
--rm \
|
|
-v "$PWD:/src" \
|
|
-w /src \
|
|
-p 127.0.0.1:8080:8080 \
|
|
"$(docker_build ./ci/images/debian8)" \
|
|
"$@"
|
|
}
|
|
|
|
docker_build() {
|
|
docker build "$@" >&2
|
|
docker build -q "$@"
|
|
}
|
|
|
|
main "$@"
|