Skip to content

Commit

Permalink
Add install step for developers
Browse files Browse the repository at this point in the history
  • Loading branch information
williamjallen committed Jun 28, 2023
1 parent 8e39fe0 commit 6d34e70
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .rsyncignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vendor
node_modules
storage
bootstrap/cache
6 changes: 5 additions & 1 deletion docker/cdash.docker
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN apt-get update \
# Install xdebug and newer version of CMake for development builds
RUN if [ "$DEVELOPMENT_BUILD" = '1' ]; then \
apt-get update \
&& apt-get install -y cmake \
&& apt-get install -y cmake rsync \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug; \
fi
Expand Down Expand Up @@ -71,6 +71,10 @@ fi
# Assign www-data ownership of apache2 configuration files
RUN chown -R www-data:www-data /etc/apache2

RUN if [ "$DEVELOPMENT_BUILD" = '1' ]; then \
echo "alias cdash_install='rsync -r -l --exclude-from /cdash_src/.rsyncignore /cdash_src/ /cdash'" >> /etc/bash.bashrc; \
fi

# Run the rest of the commands as www-data
USER www-data

Expand Down
2 changes: 2 additions & 0 deletions docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ services:
build:
args:
DEVELOPMENT_BUILD: 1
volumes:
- ..:/cdash_src:ro

selenium-hub:
image: selenium/hub:3.141.59-mercury
Expand Down

0 comments on commit 6d34e70

Please sign in to comment.