Skip to content

Commit

Permalink
fix(containers/slic) scaffold a free-for-all /cache directory
Browse files Browse the repository at this point in the history
Some plugins will use the `/cache` directory in the `slic` container to
store test-related information in it.

This PR ensures the directory is there.j
  • Loading branch information
lucatume committed Sep 2, 2022
1 parent 70f6cbf commit b3f4944
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions containers/slic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ COPY ./bashrc_scripts.sh /home/slic/bashrc_scripts.sh

RUN chown -R slic:slic $NVM_DIR

# Create a /cache directory any user will be able to read, write and execute from.
RUN mkdir /cache && chmod a+rwx /cache

COPY ./slic-entrypoint.sh /usr/local/bin/slic-entrypoint.sh
RUN chmod a+x /usr/local/bin/slic-entrypoint.sh
ENTRYPOINT ["/usr/local/bin/slic-entrypoint.sh"]
Expand Down
6 changes: 3 additions & 3 deletions slic-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ networks:
slic:

volumes:
function-mocker-cache: # @todo move to file cache
function-mocker-cache:

services:

Expand Down Expand Up @@ -149,7 +149,7 @@ services:
# 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 `codeception` image provides to avoid file mode issues.
# 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}:${COMPOSER_CACHE_DIR}
# Scripts volume
Expand Down Expand Up @@ -181,4 +181,4 @@ services:
# ports:
# # Expose MailCatcher ports on localhost.
# - "1025:1025"
# - "1080:1080"
# - "1080:1080"

0 comments on commit b3f4944

Please sign in to comment.