Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ubl
bdd_dev
docker
vufind-php
Commits
261b2159
Commit
261b2159
authored
Aug 02, 2022
by
Robert Lange
Browse files
use php 7.4 as base image
parent
e3b5a410
Pipeline
#12568
failed with stages
in 9 minutes and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
7.4/Dockerfile
0 → 100644
View file @
261b2159
FROM
php:7.4-fpm-alpine3.10
ENTRYPOINT
[ "/docker-entrypoint" ]
VOLUME
[ "/var/cache/vufind", "/usr/local/vufind" ]
ENV
VUFIND_CACHE_DIR=/var/cache/vufind \
VUFIND_APPLICATION_PATH=/usr/local/vufind \
VUFIND_LOCAL_DIR=/usr/local/vufind/local \
VUFIND_ENV=production \
NODE_ENV=production \
LIBRARY_PATH=/lib:/usr/lib
COPY
assets/docker-entrypoint /docker-entrypoint
RUN
apk add
--no-cache
--update
--virtual
.build-deps icu-dev freetype-dev libjpeg-turbo-dev libpng-dev libxslt-dev postgresql-dev zlib-dev libzip-dev bzip2-dev autoconf
\
&&
apk add
--no-cache
--update
libpng libjpeg-turbo freetype icu-libs libpq libxslt libzip python make g++ coreutils nodejs nodejs-npm git subversion openssh openssl bash
\
&&
pear config-set http_proxy
"
`
printenv
http_proxy
`
"
\
&&
docker-php-ext-configure gd
--with-freetype-dir
=
/usr/include
--with-jpeg-dir
=
/usr/include
\
&&
docker-php-ext-install
-j
$(
nproc
)
zip mysqli pdo_pgsql pdo_mysql pdo gd xsl intl soap bz2
\
&&
apk del .build-deps
\
&&
npm
install
-g
@ubleipzig/autoconfig eslint@
"<3.0.0"
\
# hack for issue https://github.com/sass/node-sass/issues/1757
&& cd /tmp \
&& npm install -j$(nproc) grunt-sass@"^1.0.0" \
&& cd /tmp/node_modules/node-sass \
&& node scripts/build -f -j $(nproc) \
&& SASS_VER=`ls /tmp/node_modules/node-sass/vendor/` \
&& cp /tmp/node_modules/node-sass/vendor/${SASS_VER}/binding.node /root/.npm/node-sass/3.13.1/${SASS_VER}_binding.node \
&& rm /tmp/* -rf \
&& cp -a ~/.npm ~www-data/.npm \
&& chown www-data:www-data ~www-data/.npm -R \
&& rm /var/lib/apt/lists/* -rf \
&& pear install pear/Http_Request2 \
&& pear channel-discover pear.phing.info \
&& pear install phing/phing \
&& chmod a+x /docker-entrypoint
WORKDIR
${VUFIND_APPLICATION_PATH}
CMD
[ "php-fpm" ]
7.4/debug/Dockerfile
0 → 100644
View file @
261b2159
FROM
image-7.4
VOLUME
[ "/home/www-data/.npm", "/home/www-data/.composer" ]
ENV
VUFIND_ENV=development \
NODE_ENV=development
COPY
assets/docker-entrypoint-debug /docker-entrypoint
RUN
apk add
--no-cache
--update
autoconf
\
&&
pear config-set http_proxy
"
`
printenv
http_proxy
`
"
\
&&
pecl
install
xdebug
\
&&
docker-php-ext-enable xdebug
\
&&
apk del autoconf
\
&&
sed
-i
'1 a xdebug.remote_autostart=true'
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
\
&&
sed
-i
'1 a xdebug.remote_mode=req'
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
\
&&
sed
-i
'1 a xdebug.remote_handler=dbgp'
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
\
&&
sed
-i
'1 a xdebug.remote_connect_back=1 '
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
\
&&
sed
-i
'1 a xdebug.remote_port=9000'
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
\
&&
sed
-i
'1 a xdebug.remote_enable=1'
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
\
&&
echo
'error_reporting=E_ALL'
>
/usr/local/etc/php/conf.d/development.ini
\
&&
sed
-e
"s!^#
\s
*StrictHostKeyChecking ask!StrictHostKeyChecking no!"
-i
/etc/ssh/ssh_config
\
&&
chmod
a+x /docker-entrypoint
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment