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 \ && 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 && sed -i -e "s#bin/bash#bin/zsh#" /etc/passwd
WORKDIR /WORKDIR/
# Install Python packages # Install Python packages
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && \ 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 pip3 install --no-cache-dir -r /usr/lib/code-server/defaults/requirements.txt
@ -95,7 +98,6 @@ RUN find /usr/local \
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

View file

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

View file

@ -12,4 +12,4 @@ export HASS_SERVER="http://supervisor/core"
export HASS_TOKEN="${SUPERVISOR_TOKEN:-}" export HASS_TOKEN="${SUPERVISOR_TOKEN:-}"
# Run the code server # 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_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_DIR="/root/.config/code-server/"
readonly CODE_SERVER_CONFIG="$CODE_SERVER_CONFIG_DIR/config.yaml" readonly CODE_SERVER_CONFIG="$CODE_SERVER_CONFIG_DIR/config.yaml"