mirror of
https://github.com/coder/code-server.git
synced 2024-11-23 11:42:39 +03:00
Merge pull request #179 from codercom/anmol
Update docker oneliner and fix clone task
This commit is contained in:
commit
60937c604e
@ -29,5 +29,4 @@ RUN apt-get install -y locales && \
|
|||||||
# configured in /etc/default/locale so we need to set it manually.
|
# configured in /etc/default/locale so we need to set it manually.
|
||||||
ENV LANG=en_US.UTF-8
|
ENV LANG=en_US.UTF-8
|
||||||
ENTRYPOINT code-server
|
ENTRYPOINT code-server
|
||||||
# Unfortunately `.` does not work with code-server so we use shell form.
|
CMD ["."]
|
||||||
CMD code-server $PWD
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
Try it out:
|
Try it out:
|
||||||
```bash
|
```bash
|
||||||
docker run -t -p 127.0.0.1:8443:8443 -v "${PWD}:/root/project" codercom/code-server code-server --allow-http --no-auth
|
docker run -t -p 127.0.0.1:8443:8443 -v "${PWD}:/root/project" codercom/code-server --allow-http --no-auth
|
||||||
```
|
```
|
||||||
|
|
||||||
- Code on your Chromebook, tablet, and laptop with a consistent dev environment.
|
- Code on your Chromebook, tablet, and laptop with a consistent dev environment.
|
||||||
|
@ -241,6 +241,10 @@ const ensureClean = register("vscode:clean", async (runner) => {
|
|||||||
throw new Error(`Failed to remove unstaged files: ${removeUnstaged.stderr}`);
|
throw new Error(`Failed to remove unstaged files: ${removeUnstaged.stderr}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const fetch = await runner.execute("git", ["fetch", "--prune"]);
|
||||||
|
if (fetch.exitCode !== 0) {
|
||||||
|
throw new Error(`Failed to fetch latest changes: ${fetch.stderr}`);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ensurePatched = register("vscode:patch", async (runner) => {
|
const ensurePatched = register("vscode:patch", async (runner) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user