Skip to content

Commit

Permalink
Fix comments from Stas: DDEV_UID/GID.
Browse files Browse the repository at this point in the history
  • Loading branch information
ygerasimov committed Jul 29, 2024
1 parent fccd72c commit 14e1f09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.diffy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
hooks:
post-start:
- exec: cd /mnt/ddev_config/diffy-worker-main && npm install
- exec: bash -ci 'worker=/mnt/ddev_config/diffy-worker-main; ( [ ! -d $worker/node_modules ] && npm install --prefix $worker && chown -R $DDEV_UID:$DDEV_GID $worker/node_modules ) || rm -rf $worker/node_modules'
service: diffy
3 changes: 2 additions & 1 deletion docker-compose.diffy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ services:
container_name: ddev-${DDEV_SITENAME}-diffy
image: diffywebsite2/screenshot-worker:0.0.1
command: tail -f /dev/null
networks: [default, ddev_default]
restart: "no"
# These labels ensure this service is discoverable by ddev.
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
environment:
- DDEV_HOSTNAME
- DDEV_UID
- DDEV_GID
volumes:
- ".:/mnt/ddev_config"
- "ddev-global-cache:/mnt/ddev-global-cache"
2 changes: 1 addition & 1 deletion install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ global_files:
post_install_actions:
- wget https://github.com/DiffyWebsite/diffy-worker/archive/refs/heads/main.zip
- unzip main.zip
- rm main.zip
- rm -f main.zip
- |
#ddev-nodisplay
#ddev-description:Create .env file
Expand Down

0 comments on commit 14e1f09

Please sign in to comment.