mirror of
https://github.com/coder/code-server.git
synced 2024-11-27 00:10:01 +03:00
28 lines
420 B
Bash
Executable File
28 lines
420 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
main() {
|
|
cd "$(dirname "$0")/../../.."
|
|
source ./ci/lib.sh
|
|
mkdir -p .home
|
|
|
|
docker run \
|
|
-it \
|
|
--rm \
|
|
-v "$PWD:/src" \
|
|
-e HOME="/src/.home" \
|
|
-w /src \
|
|
-p 127.0.0.1:8080:8080 \
|
|
-u "$(id -u):$(id -g)" \
|
|
-e CI \
|
|
"$(docker_build ./ci/images/debian8)" \
|
|
"$@"
|
|
}
|
|
|
|
docker_build() {
|
|
docker build "$@" >&2
|
|
docker build -q "$@"
|
|
}
|
|
|
|
main "$@"
|