Skip to content

Commit

Permalink
build(slic-stack*.yaml) remove :cached flag (deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Mar 21, 2023
1 parent ed40da4 commit 74da789
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions slic-stack.site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@ services:
volumes:
# Paths are relative to the directory that contains this file, NOT the current working directory.
# Share the WordPress core installation files in the `_wordpress` directory.
- ${SLIC_WP_DIR}:/var/www/html:cached
- ${SLIC_WP_DIR}:/var/www/html

cli:
volumes:
# Paths are relative to the directory that contains this file, NOT the current working directory.
# Share the WordPress core installation files in the `_wordpress` directory.
- ${SLIC_WP_DIR}:/var/www/html:cached
- ${SLIC_WP_DIR}:/var/www/html

codeception:
environment:
# Move to the target directory before running the command from the plugins directory.
CODECEPTION_PROJECT_DIR: /var/www/html/${SLIC_CURRENT_PROJECT_RELATIVE_PATH}
volumes:
# Set the current site as project.
- ${SLIC_HERE_DIR}/${SLIC_CURRENT_PROJECT_RELATIVE_PATH}:/project:cached
- ${SLIC_HERE_DIR}/${SLIC_CURRENT_PROJECT_RELATIVE_PATH}:/project
# Paths are relative to the directory that contains this file, NOT the current working directory.
# Share the WordPress core installation files in the `_wordpress` directory.
- ${SLIC_WP_DIR}:/var/www/html:cached
- ${SLIC_WP_DIR}:/var/www/html

composer:
volumes:
# Set the current target as project.
- ${SLIC_HERE_DIR}/${SLIC_CURRENT_PROJECT_RELATIVE_PATH}:/project:cached
- ${COMPOSER_CACHE_DIR}:${COMPOSER_CACHE_DIR}:cached
- ${SLIC_HERE_DIR}/${SLIC_CURRENT_PROJECT_RELATIVE_PATH}:/project
- ${COMPOSER_CACHE_DIR}:${COMPOSER_CACHE_DIR}

npm:
volumes:
# Set the current plugin as project.
- ${SLIC_HERE_DIR}/${SLIC_CURRENT_PROJECT_RELATIVE_PATH}:/project:cached
- ${SLIC_HERE_DIR}/${SLIC_CURRENT_PROJECT_RELATIVE_PATH}:/project
16 changes: 8 additions & 8 deletions slic-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ services:
XDEBUG_DISABLE: "${XDEBUG_DISABLE:-0}"
volumes:
# Paths are relative to the directory that contains this file, NOT the current working directory.
- ${SLIC_WP_DIR}:/var/www/html:cached
- ${SLIC_PLUGINS_DIR}:/var/www/html/wp-content/plugins:cached
- ${SLIC_THEMES_DIR}:/var/www/html/wp-content/themes:cached
- ${COMPOSER_CACHE_DIR:-./.cache}:/composer-cache:cached
- ${SLIC_WP_DIR}:/var/www/html
- ${SLIC_PLUGINS_DIR}:/var/www/html/wp-content/plugins
- ${SLIC_THEMES_DIR}:/var/www/html/wp-content/themes
- ${COMPOSER_CACHE_DIR:-./.cache}:/composer-cache
healthcheck: # Apache service should be running correctly.
test: service apache2 status
start_period: 5s
Expand Down Expand Up @@ -179,15 +179,15 @@ services:
volumes:
# Paths are relative to the directory that contains this file, NOT the current working directory.
# Share the WordPress core installation files in the `_wordpress` directory.
- ${SLIC_WP_DIR}:/var/www/html:cached
- ${SLIC_WP_DIR}:/var/www/html
# Share the plugins in the `/var/www/hmtl/wp-content/plugins` directory.
- ${SLIC_PLUGINS_DIR}:/var/www/html/wp-content/plugins:cached
- ${SLIC_THEMES_DIR}:/var/www/html/wp-content/themes:cached
- ${SLIC_PLUGINS_DIR}:/var/www/html/wp-content/plugins
- ${SLIC_THEMES_DIR}:/var/www/html/wp-content/themes
# In some plugins we use function-mocker and set it up to cache in `/tmp/function-mocker`.
# To avoid a long re-caching on each run, let's cache in a docker volume, caching on the host
# filesystem would be a worse cure than the disease.
# The volume is bound to the `a+rwx` directory the `slic` image provides to avoid file mode issues.
- function-mocker-cache:/cache
- ${COMPOSER_CACHE_DIR:-./.cache}:/composer-cache
# Scripts volume
- ${SLIC_SCRIPTS}:/slic-scripts:cached
- ${SLIC_SCRIPTS}:/slic-scripts

0 comments on commit 74da789

Please sign in to comment.