1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

Fixed scripts, removed build packages

This commit is contained in:
Eldad Fux 2020-07-20 23:05:36 +03:00
parent ac2ee0a025
commit a295b9c3c6
14 changed files with 20 additions and 24 deletions

View file

@ -33,9 +33,6 @@ RUN \
zlib-dev \
brotli
#ca-certificates \
# software-properties-common wget git openssl make zip unzip libbrotli-dev libz-dev
RUN docker-php-ext-install sockets
RUN \
@ -100,27 +97,26 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN \
apk update && apk add --no-cache --virtual .deps \
bash \
make \
automake \
autoconf \
gcc \
g++ \
libwebp \
certbot \
htop \
procps \
# libwebp \
# htop \
# procps \
docker \
oniguruma-dev \
# oniguruma-dev \
curl-dev \
imagemagick \
imagemagick-libs \
imagemagick-dev \
yaml-dev \
&& pecl install imagick yaml \
&& docker-php-ext-enable imagick yaml
RUN docker-php-ext-install sockets curl opcache pdo pdo_mysql
&& docker-php-ext-enable imagick yaml \
&& docker-php-ext-install sockets opcache pdo_mysql \
&& apk del make automake autoconf gcc g++ curl-dev imagemagick imagemagick-libs imagemagick-dev yaml-dev
WORKDIR /usr/src/code

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
php /usr/src/code/app/tasks/init.php doctor

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
php /usr/src/code/app/tasks/migrate.php run

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
REDIS_BACKEND="${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" RESQUE_PHP='/usr/src/code/vendor/autoload.php' php /usr/src/code/vendor/bin/resque-scheduler

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
export PHP_VERSION=$PHP_VERSION

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
/usr/src/code/vendor/bin/phpunit --configuration /usr/src/code/phpunit.xml

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
QUEUE='v1-audits' APP_INCLUDE='/usr/src/code/app/workers/audits.php' REDIS_BACKEND="${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
QUEUE='v1-certificates' APP_INCLUDE='/usr/src/code/app/workers/certificates.php' REDIS_BACKEND="${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
QUEUE='v1-deletes' APP_INCLUDE='/usr/src/code/app/workers/deletes.php' REDIS_BACKEND="${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
QUEUE='v1-functions' APP_INCLUDE='/usr/src/code/app/workers/functions.php' REDIS_BACKEND="${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
QUEUE='v1-mails' APP_INCLUDE='/usr/src/code/app/workers/mails.php' REDIS_BACKEND="${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
QUEUE='v1-tasks' APP_INCLUDE='/usr/src/code/app/workers/tasks.php' REDIS_BACKEND="${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
QUEUE='v1-usage' APP_INCLUDE='/usr/src/code/app/workers/usage.php' REDIS_BACKEND="${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/sh
QUEUE='v1-webhooks' APP_INCLUDE='/usr/src/code/app/workers/webhooks.php' REDIS_BACKEND="${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php