Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUTOMATIC1111: Enable running as non root user. #546

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Jul 13, 2023

  1. AUTOMATIC1111: Enable running as non root user.

    Expose build args to container which allow the web service
    to run as given uid:gid.
    
    By default, this behavior is "off". Building via docker compose still
    defaults to root:root on everything. Unless these args are explicitly
    set, no users should notice a difference.
    
    Build arguments are also exposed as Docker environment variables, so they can
    be freely referenced in the `entrypoint.sh`
    
    Output files will be owned by PUID and PGID, so if set, no more root:root
    images (unless desired).
    
    New arguments:
      - ARG PUID=0
      - ARG PGID=0
      - ARG USER_HOME=/root
    
    New environment variable:
      - RSYNC_FLAGS
        - NFS share doesn't like `-a` changing every bit on a directory
    
    Example docker-compose.override.yaml using these flags
    
    ```
    version: '3.9'
    
    services:
      auto:
        environment:
          RSYNC_FLAGS: -vrlgotO
        build:
          args:
            USER_HOME: /opt/stablediffusion
            PUID: 1000
            PGID: 1002
        volumes:
          - /media/data:/data
          - /tmp:/output
      download:
        volumes:
          - /media/data:/data
    ```
    sethdmoore committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    a5367ac View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. Configuration menu
    Copy the full SHA
    bac12e2 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2023

  1. Configuration menu
    Copy the full SHA
    64b5d90 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2023

  1. Configuration menu
    Copy the full SHA
    5cd32cf View commit details
    Browse the repository at this point in the history