changed init-cp run

This commit is contained in:
Richard Sperry 2025-04-15 16:35:19 -07:00
parent f5fd113ffe
commit 0385ca1048
4 changed files with 26 additions and 10 deletions

View file

@ -75,6 +75,9 @@ RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master
&& git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting \
&& sed -i -e "s#bin/bash#bin/zsh#" /etc/passwd
WORKDIR /WORKDIR/
# Install Python packages
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && \
pip3 install --no-cache-dir -r /usr/lib/code-server/defaults/requirements.txt
@ -95,7 +98,6 @@ RUN find /usr/local \
HEALTHCHECK \
CMD curl --fail http://127.0.0.1:1337/healthz || exit 1
# Build Final image
ARG BUILD_ARCH
ARG BUILD_DATE

View file

@ -19,13 +19,27 @@ hassio_api: true
hassio_role: manager
homeassistant_api: true
map:
- addons:rw
- all_addon_configs:rw
- backup:rw
- homeassistant_config:rw
- media:rw
- share:rw
- ssl:rw
- type: addons
read_only: false
path: /WORKDIR/addons
- type: all_addon_configs
read_only: false
path: /WORKDIR/all_addon_configs
- type: backup
read_only: false
path: /WORKDIR/backup
- type: homeassistant_config
read_only: false
path: /WORKDIR/config
- type: media
read_only: false
path: /WORKDIR/media
- type: share
read_only: false
path: /WORKDIR/share
- type:
read_only: false
path: /WORKDIR/ssl
services:
- mysql:want
- mqtt:want

View file

@ -12,4 +12,4 @@ export HASS_SERVER="http://supervisor/core"
export HASS_TOKEN="${SUPERVISOR_TOKEN:-}"
# Run the code server
exec code-server /config
exec code-server /WORKDIR

View file

@ -24,7 +24,7 @@ readonly -a PREVIOUS_DEFAULT_CONFIG_HASHES=(
)
readonly DEFAULT_FILES_PATH="/usr/lib/code-server/defaults"
readonly DEFAULT_CONFIG_PATH="/config/addon_configs/vscode"
readonly DEFAULT_CONFIG_PATH="/WORKDIR/config/addon_configs/vscode"
readonly CODE_SERVER_CONFIG_DIR="/root/.config/code-server/"
readonly CODE_SERVER_CONFIG="$CODE_SERVER_CONFIG_DIR/config.yaml"