mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-07 04:31:24 +00:00
devenv
This commit is contained in:
parent
582995c164
commit
4b6b10902d
9 changed files with 7 additions and 9 deletions
|
@ -67,6 +67,8 @@ RUN chown -R root:root /root \
|
||||||
&& chown -R root:root /etc/s6-overlay/s6-rc.d/ \
|
&& chown -R root:root /etc/s6-overlay/s6-rc.d/ \
|
||||||
&& chmod 755 -R /etc/s6-overlay/s6-rc.d/
|
&& chmod 755 -R /etc/s6-overlay/s6-rc.d/
|
||||||
|
|
||||||
|
COPY data /data
|
||||||
|
|
||||||
# Install Oh My ZSH
|
# Install Oh My ZSH
|
||||||
# hadolint ignore=SC2086
|
# hadolint ignore=SC2086
|
||||||
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" \
|
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" \
|
||||||
|
|
|
@ -28,8 +28,6 @@ map:
|
||||||
read_only: false
|
read_only: false
|
||||||
- type: data
|
- type: data
|
||||||
read_only: false
|
read_only: false
|
||||||
- type: all_addon_configs
|
|
||||||
read_only: false
|
|
||||||
- type: backup
|
- type: backup
|
||||||
read_only: false
|
read_only: false
|
||||||
- type: config
|
- type: config
|
||||||
|
|
|
@ -22,16 +22,14 @@ readonly -a PREVIOUS_DEFAULT_CONFIG_HASHES=(
|
||||||
dbe905f0935b2fea8bb5ba379bff78db9d056ea6d0965c68aa9b07938a52cbbf117186452b2b6c766aa4cf93cc3494ad91b763e8500e515e41d8cde31a3821ae
|
dbe905f0935b2fea8bb5ba379bff78db9d056ea6d0965c68aa9b07938a52cbbf117186452b2b6c766aa4cf93cc3494ad91b763e8500e515e41d8cde31a3821ae
|
||||||
2212babaa9dc46d38ba239052c9c05151abe517cc8b493d0d351a96bf70c1efa4f7479f6ed0b75811429ba649906eb5657d73b0732b460e718a5c66603dcdbda
|
2212babaa9dc46d38ba239052c9c05151abe517cc8b493d0d351a96bf70c1efa4f7479f6ed0b75811429ba649906eb5657d73b0732b460e718a5c66603dcdbda
|
||||||
)
|
)
|
||||||
|
readonly DEFAULT_FILES_PATH="/data/defaults"
|
||||||
readonly -a DIRECTORIES=(addon_configs addons backup config media share ssl)
|
readonly DEFAULT_CONFIG_PATH="/data/vscode"
|
||||||
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 startup.
|
||||||
readonly DEFAULT_CONFIG_PATH="/config/addon_configs/vscode"
|
|
||||||
readonly ROOT_CODE_SERVER_CONFIG_PATH="/root/.config/code-server/"
|
|
||||||
|
|
||||||
CODE_SERVER_CONFIG="$DEFAULT_CONFIG_PATH/config.yaml"
|
|
||||||
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 -a DIRECTORIES=(addons addon_configs data backup config media share ssl)
|
||||||
|
|
||||||
|
CODE_SERVER_CONFIG="$DEFAULT_CONFIG_PATH/config.yaml"
|
||||||
|
|
||||||
# Links some common directories to the user's home folder for convenience
|
# Links some common directories to the user's home folder for convenience
|
||||||
for dir in "${DIRECTORIES[@]}"; do
|
for dir in "${DIRECTORIES[@]}"; do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue