mirror of
https://github.com/Cacti/cacti.git
synced 2026-10-23 03:27:02 +09:00
build: make the containerised test image run the whole suite (#7953)
This commit is contained in:
1 parent
b489dbfab3
commit
d8d81f273d
2 files changed
+12
-2
No files matched your search
@@ -1,5 +1,7 @@
|
||||
.git
|
||||
.github
|
||||
# check-changelog.py is a composer 'check' step
|
||||
!.github/scripts
|
||||
*.md
|
||||
!README.md
|
||||
LICENSE
|
||||
@@ -9,6 +11,10 @@ LICENSE
|
||||
docker-compose.override.yml
|
||||
data/
|
||||
cache/
|
||||
# the tracked redirect guards are part of the sink inventory
|
||||
!cache/index.php
|
||||
!cache/**/index.php
|
||||
log/
|
||||
!log/index.php
|
||||
rra/*.rrd
|
||||
*.log
|
||||
@@ -3,7 +3,7 @@ FROM cacti-web
|
||||
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends git unzip \
|
||||
&& apt-get install -y --no-install-recommends git unzip nodejs npm python3 ripgrep \
|
||||
&& pecl install xdebug \
|
||||
&& docker-php-ext-enable xdebug \
|
||||
&& apt-get clean \
|
||||
@@ -13,11 +13,15 @@ WORKDIR /work
|
||||
|
||||
COPY . ./
|
||||
|
||||
RUN composer install --prefer-dist --no-progress --no-interaction \
|
||||
# include/js/htmx.js is generated from package.json rather than committed,
|
||||
# and the htmx suites fail without it.
|
||||
RUN npm_config_cache=/tmp/.npm npm ci \
|
||||
&& composer install --prefer-dist --no-progress --no-interaction \
|
||||
&& mkdir -p cache log rra \
|
||||
&& touch log/cacti.log \
|
||||
&& chmod -R a+rwX cache log rra \
|
||||
&& cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini \
|
||||
&& sed -i 's/^memory_limit = .*/memory_limit = 2G/' /usr/local/etc/php/php.ini \
|
||||
&& git init \
|
||||
&& git add --force . \
|
||||
&& chown -R www-data:www-data /work
|
||||
|
||||
Reference in new issue
Block a user