mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
devenv
This commit is contained in:
parent
ea10f2b668
commit
ee493f87c7
4 changed files with 15 additions and 15 deletions
|
@ -14,9 +14,11 @@
|
||||||
},
|
},
|
||||||
"cSpell.words": [
|
"cSpell.words": [
|
||||||
"elif",
|
"elif",
|
||||||
|
"homeassistant",
|
||||||
"pinage",
|
"pinage",
|
||||||
"robbyrussell",
|
"robbyrussell",
|
||||||
"seti"
|
"seti",
|
||||||
|
"uart"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
"dictionaries": [],
|
"dictionaries": [],
|
||||||
"words": [
|
"words": [
|
||||||
"bashio",
|
"bashio",
|
||||||
|
"codenotary",
|
||||||
"colordiff",
|
"colordiff",
|
||||||
"contenv",
|
"contenv",
|
||||||
"devcontainers",
|
"devcontainers",
|
||||||
|
|
|
@ -106,13 +106,10 @@ RUN find /usr/local \
|
||||||
-exec rm -rf '{}' + && \
|
-exec rm -rf '{}' + && \
|
||||||
rm -fr /root/.cache /tmp/* /var/{cache,log}/* /var/lib/apt/lists/*
|
rm -fr /root/.cache /tmp/* /var/{cache,log}/* /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Health check
|
# Health check
|
||||||
HEALTHCHECK \
|
HEALTHCHECK \
|
||||||
CMD curl --fail http://127.0.0.1:1337/healthz || exit 1
|
CMD curl --fail http://127.0.0.1:1337/healthz || exit 1
|
||||||
|
|
||||||
|
|
||||||
# Build Final image
|
# Build Final image
|
||||||
ARG BUILD_ARCH
|
ARG BUILD_ARCH
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# this file is to prevent spaghetti paths
|
# this file is to prevent spaghetti paths
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
|
readonly -a DIRECTORIES=(addons addon_configs backup config media share ssl)
|
||||||
|
|
||||||
|
readonly GIT_USER_PATH="/data/git"
|
||||||
|
readonly SSH_USER_PATH="/data/.ssh"
|
||||||
|
readonly ZSH_HISTORY_FILE="/root/.zsh_history"
|
||||||
|
readonly ZSH_HISTORY_PERSISTENT_FILE="/data/.zsh_history"
|
||||||
|
|
||||||
|
readonly CUSTOM_BASH_SCRIPTS_PATH="/data/vscode/custom_boot_scripts"
|
||||||
|
readonly CODE_SERVER_WORKSPACE_DIR="/data/workspace"
|
||||||
readonly DEFAULT_CONFIG_PATH="/data/vscode"
|
readonly DEFAULT_CONFIG_PATH="/data/vscode"
|
||||||
readonly DEFAULT_FILES_PATH="/var/lib/code-server/defaults"
|
readonly DEFAULT_FILES_PATH="/var/lib/code-server/defaults"
|
||||||
readonly ROOT_CODE_SERVER_CONFIG_PATH="/root/.config/code-server/" # needed for code-server to cleanly
|
readonly ROOT_CODE_SERVER_CONFIG_PATH="/root/.config/code-server/" # needed for code-server to cleanly
|
||||||
readonly ROOT_CODE_SERVER_USER_PATH="/root/.config/code-server/user" # needed for code-server to cleanly
|
|
||||||
|
|
||||||
|
readonly ROOT_CODE_SERVER_USER_PATH="$DEFAULT_CONFIG_PATH/user" # needed for code-server to cleanly
|
||||||
readonly CODE_SERVER_EXTENSIONS_INSTALL_PATH="$DEFAULT_CONFIG_PATH/extensions"
|
readonly CODE_SERVER_EXTENSIONS_INSTALL_PATH="$DEFAULT_CONFIG_PATH/extensions"
|
||||||
readonly CODE_SERVER_EXTENSIONS_LIST="$DEFAULT_CONFIG_PATH/vscode.extensions"
|
readonly CODE_SERVER_EXTENSIONS_LIST="$DEFAULT_CONFIG_PATH/vscode.extensions"
|
||||||
readonly CODE_SERVER_WORKSPACE_DIR="/data/workspace"
|
|
||||||
readonly CODE_SERVER_WORKSPACE_FILE="$CODE_SERVER_WORKSPACE_DIR/SERVER.code-workspace"
|
readonly CODE_SERVER_WORKSPACE_FILE="$CODE_SERVER_WORKSPACE_DIR/SERVER.code-workspace"
|
||||||
readonly CODE_SERVER_VSCODE_DIR="$CODE_SERVER_WORKSPACE_DIR/.vscode"
|
readonly CODE_SERVER_VSCODE_DIR="$CODE_SERVER_WORKSPACE_DIR/.vscode"
|
||||||
readonly CODE_SERVER_VSCODE_TASKS="$CODE_SERVER_VSCODE_DIR/tasks.json"
|
readonly CODE_SERVER_VSCODE_TASKS="$CODE_SERVER_VSCODE_DIR/tasks.json"
|
||||||
|
|
||||||
readonly CUSTOM_BASH_SCRIPTS_PATH="/data/vscode/custom_boot_scripts"
|
readonly USER_CUSTOM_DIR="$CUSTOM_BASH_SCRIPTS_PATH/storage"
|
||||||
readonly -a DIRECTORIES=(addons addon_configs backup config media share ssl)
|
|
||||||
|
|
||||||
readonly GIT_USER_PATH=/data/git
|
|
||||||
readonly SSH_USER_PATH=/data/.ssh
|
|
||||||
readonly ZSH_HISTORY_FILE=/root/.zsh_history
|
|
||||||
readonly ZSH_HISTORY_PERSISTENT_FILE=/data/.zsh_history
|
|
||||||
|
|
||||||
readonly USER_CUSTOM_DIR=$CUSTOM_BASH_SCRIPTS_PATH/storage
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue