mirror of https://github.com/coder/code-server.git
Compare commits
7 Commits
963060b0e2
...
3d15259c89
Author | SHA1 | Date |
---|---|---|
Benjamin Ummenhofer | 3d15259c89 | |
xfl12345 | dd2e9fce27 | |
Asher | bea906f90b | |
Asher | 15752526bd | |
Asher | 7c298653f1 | |
Benjamin Ummenhofer | a5e3bf3ef1 | |
Benjamin Ummenhofer | 175c68295f |
|
@ -138,8 +138,6 @@ jobs:
|
||||||
package-lock.json
|
package-lock.json
|
||||||
test/package-lock.json
|
test/package-lock.json
|
||||||
|
|
||||||
- run: SKIP_SUBMODULE_DEPS=1 npm ci
|
|
||||||
|
|
||||||
- name: Install cross-compiler and system dependencies
|
- name: Install cross-compiler and system dependencies
|
||||||
run: |
|
run: |
|
||||||
dpkg --add-architecture $TARGET_ARCH
|
dpkg --add-architecture $TARGET_ARCH
|
||||||
|
@ -151,7 +149,10 @@ jobs:
|
||||||
libsecret-1-dev:$TARGET_ARCH \
|
libsecret-1-dev:$TARGET_ARCH \
|
||||||
libkrb5-dev:$TARGET_ARCH \
|
libkrb5-dev:$TARGET_ARCH \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl wget rsync gettext-base
|
curl wget rsync gettext-base \
|
||||||
|
python3
|
||||||
|
|
||||||
|
- run: SKIP_SUBMODULE_DEPS=1 npm ci
|
||||||
|
|
||||||
- name: Install nfpm
|
- name: Install nfpm
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -7,7 +7,7 @@ eval "$(fixuid -q)"
|
||||||
|
|
||||||
if [ "${DOCKER_USER-}" ]; then
|
if [ "${DOCKER_USER-}" ]; then
|
||||||
USER="$DOCKER_USER"
|
USER="$DOCKER_USER"
|
||||||
if [ "$DOCKER_USER" != "$(whoami)" ]; then
|
if [ -z "$(id -u "$DOCKER_USER" 2>/dev/null)" ]; then
|
||||||
echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
|
echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
|
||||||
# Unfortunately we cannot change $HOME as we cannot move any bind mounts
|
# Unfortunately we cannot change $HOME as we cannot move any bind mounts
|
||||||
# nor can we bind mount $HOME into a new home as that requires a privileged container.
|
# nor can we bind mount $HOME into a new home as that requires a privileged container.
|
||||||
|
|
|
@ -56,6 +56,12 @@
|
||||||
if (el) {
|
if (el) {
|
||||||
el.value = location.href
|
el.value = location.href
|
||||||
}
|
}
|
||||||
|
// get password from the url
|
||||||
|
let url = new URL(window.location.href)
|
||||||
|
if( url.searchParams.get("session_password") ){
|
||||||
|
document.getElementsByName("password")[0].value = url.searchParams.get("session_password")
|
||||||
|
document.getElementsByClassName("submit")[0].click()
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -49,7 +49,9 @@ export interface OpenCommandPipeArgs {
|
||||||
export const runCodeCli = async (args: DefaultedArgs): Promise<void> => {
|
export const runCodeCli = async (args: DefaultedArgs): Promise<void> => {
|
||||||
logger.debug("Running Code CLI")
|
logger.debug("Running Code CLI")
|
||||||
try {
|
try {
|
||||||
const mod = require(path.join(vsRootPath, "out/server-main")) as VSCodeModule
|
// See vscode.loadVSCode for more on this jank.
|
||||||
|
const modPath = path.join(vsRootPath, "out/server-main.js")
|
||||||
|
const mod = (await eval(`import("${modPath}")`)) as VSCodeModule
|
||||||
const serverModule = await mod.loadCodeWithNls()
|
const serverModule = await mod.loadCodeWithNls()
|
||||||
await serverModule.spawnCli(await toCodeArgs(args))
|
await serverModule.spawnCli(await toCodeArgs(args))
|
||||||
// Rather than have the caller handle errors and exit, spawnCli will exit
|
// Rather than have the caller handle errors and exit, spawnCli will exit
|
||||||
|
|
Loading…
Reference in New Issue