mirror of https://git.tuxpa.in/a/code-server.git
Add $HOME to ./ci/dev/image/run.sh
This commit is contained in:
parent
eacca7d692
commit
b22f3cb72f
|
@ -12,3 +12,4 @@ node_modules
|
||||||
node-*
|
node-*
|
||||||
/plugins
|
/plugins
|
||||||
/lib/coder-cloud-agent
|
/lib/coder-cloud-agent
|
||||||
|
.home
|
||||||
|
|
|
@ -14,7 +14,8 @@ main() {
|
||||||
release-images \
|
release-images \
|
||||||
dist \
|
dist \
|
||||||
.cache \
|
.cache \
|
||||||
node-*
|
node-* \
|
||||||
|
.home
|
||||||
|
|
||||||
pushd lib/vscode
|
pushd lib/vscode
|
||||||
git clean -xffd
|
git clean -xffd
|
||||||
|
|
|
@ -4,11 +4,13 @@ set -euo pipefail
|
||||||
main() {
|
main() {
|
||||||
cd "$(dirname "$0")/../../.."
|
cd "$(dirname "$0")/../../.."
|
||||||
source ./ci/lib.sh
|
source ./ci/lib.sh
|
||||||
|
mkdir -p .home
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
-it \
|
-it \
|
||||||
--rm \
|
--rm \
|
||||||
-v "$PWD:/src" \
|
-v "$PWD:/src" \
|
||||||
|
-e HOME="/src/.home" \
|
||||||
-w /src \
|
-w /src \
|
||||||
-p 127.0.0.1:8080:8080 \
|
-p 127.0.0.1:8080:8080 \
|
||||||
-u "$(id -u):$(id -g)" \
|
-u "$(id -u):$(id -g)" \
|
||||||
|
|
Loading…
Reference in New Issue