Skip to content

Commit

Permalink
Permissions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Mar 2, 2024
1 parent 3719be5 commit d34b871
Show file tree
Hide file tree
Showing 8 changed files with 939 additions and 9 deletions.
929 changes: 929 additions & 0 deletions blog

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion build/COPY_ROOT/opt/ai-dock/bin/build/layer0/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ apt-get clean -y
micromamba clean -ay

fix-permissions.sh -o container

rm /etc/ld.so.cache
ldconfig
2 changes: 1 addition & 1 deletion build/COPY_ROOT/opt/ai-dock/bin/build/layer0/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ fi

$MAMBA_DEFAULT_RUN python /opt/ai-dock/tests/assert-torch-version.py

source /opt/ai-dock/bin/build/layer0/clean.sh
source /opt/ai-dock/bin/build/layer0/clean.sh
1 change: 0 additions & 1 deletion build/COPY_ROOT/opt/ai-dock/bin/preflight.d/10-default.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/false

# This file will be sourced in init.sh

function preflight_main() {
Expand Down
5 changes: 2 additions & 3 deletions build/COPY_ROOT/opt/ai-dock/bin/update-webui.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

umask 002
branch=master

if [[ -n "${WEBUI_BRANCH}" ]]; then
Expand All @@ -14,11 +14,10 @@ do
esac
done


printf "Updating stable-diffusion-webui (${branch})...\n"

cd /opt/stable-diffusion-webui
git checkout ${branch}
git pull

micromamba run -n webui ${PIP_INSTALL} -r requirements_versions.txt
micromamba run -n webui ${PIP_INSTALL} -r requirements_versions.txt
6 changes: 5 additions & 1 deletion build/COPY_ROOT_EXTRA/opt/ai-dock/bin/build/layer1/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,8 @@ function build_extra_download() {
wget -qnc --content-disposition --show-progress -e dotbytes="${3:-4M}" -P "$2" "$1"
}

build_extra_start
umask 002
build_extra_start
fix-permissions.sh -o container
rm /etc/ld.so.cache
ldconfig
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:

volumes:
# Workspace
- ./workspace:${WORKSPACE:-/workspace/}:rshared
#- ./workspace:${WORKSPACE:-/workspace/}:rshared
# You can share /workspace/storage with other non-WEBUI containers. See README
#- /path/to/common_storage:${WORKSPACE:-/workspace/}storage/:rshared
# Will echo to root-owned authorized_keys file;
Expand All @@ -42,7 +42,7 @@ services:
# Don't enclose values in quotes
- DIRECT_ADDRESS=${DIRECT_ADDRESS:-127.0.0.1}
- DIRECT_ADDRESS_GET_WAN=${DIRECT_ADDRESS_GET_WAN:-false}
- WORKSPACE=${WORKSPACE:-/workspace}
#- WORKSPACE=${WORKSPACE:-/workspace}
- WORKSPACE_SYNC=${WORKSPACE_SYNC:-false}
- CF_TUNNEL_TOKEN=${CF_TUNNEL_TOKEN:-}
- CF_QUICK_TUNNELS=${CF_QUICK_TUNNELS:-true}
Expand Down
Empty file removed workspace/.gitkeep
Empty file.

0 comments on commit d34b871

Please sign in to comment.