File tree Expand file tree Collapse file tree 9 files changed +2145
-114
lines changed
module/Statistics/src/Builder Expand file tree Collapse file tree 9 files changed +2145
-114
lines changed Original file line number Diff line number Diff line change
1
+ COMPOSE_PROJECT_NAME = " supermetrics"
2
+
1
3
MEMCACHED_HOST = memcached
2
4
MEMCACHED_PORT = 11211
3
5
Original file line number Diff line number Diff line change 1
1
.idea /
2
2
vendor /
3
- packages /
3
+ packages /
4
+ .env
Original file line number Diff line number Diff line change
1
+ #
2
+ #
3
+ # Base install
4
+ #
5
+ FROM --platform=linux/amd64 php:8.0-apache as base
6
+
7
+ LABEL vendor="Supermetrics"
8
+
9
+ # Set common env variables
10
+ ENV TZ="UTC"
11
+ ENV APACHE_DOCUMENT_ROOT="/app/public"
12
+
13
+ RUN apt-get update -y \
14
+ && apt-get upgrade -y \
15
+ && apt-get install -y memcached libmemcached-dev libmemcached-tools libzip-dev
16
+
17
+ RUN pecl install memcached
18
+
19
+ RUN a2enmod rewrite
20
+
21
+ COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
22
+
23
+ COPY --chown=root:root docker/php/php.ini /usr/local/etc/php/php.ini
24
+ COPY --chown=root:root docker/apache/000-default.conf /etc/apache2/sites-available/000-default.conf
25
+ COPY --chown=www-data:www-data . /app
26
+
27
+ RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
28
+ RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
29
+
30
+ WORKDIR /app
31
+
32
+ RUN composer install --no-interaction --no-ansi -o
33
+
34
+ #
35
+ # Build dev stuff
36
+ #
37
+ FROM base as local
38
+
39
+ ENV PHP_IDE_CONFIG="serverName=sm_assignment"
40
+ ENV APP_ENV="local"
41
+
42
+ # RUN pecl install -f xdebug \
43
+ # && docker-php-ext-enable xdebug
Original file line number Diff line number Diff line change 10
10
"minimum-stability" : " stable" ,
11
11
"require" : {
12
12
"php" : " ^8.0" ,
13
+ "ext-memcached" : " *" ,
13
14
"guzzlehttp/guzzle" : " ^7.3" ,
14
15
"symfony/cache" : " ^5.3" ,
15
- "vlucas/phpdotenv" : " ^5.3"
16
+ "vlucas/phpdotenv" : " ^5.3" ,
17
+ "phpunit/php-timer" : " ^5.0"
16
18
},
17
19
"require-dev" : {
18
20
"phpunit/phpunit" : " ^9.3.3"
31
33
},
32
34
"scripts" : {
33
35
"serve" : [
34
- " php -S 0.0.0.0:7777 -t public public/index.php "
36
+ " docker-compose build --force-rm && docker-compose up "
35
37
]
36
38
}
37
39
}
You can’t perform that action at this time.
0 commit comments