Updated everything related with dependencies in docker images

This commit is contained in:
Alejandro Celaya 2020-05-07 10:16:20 +02:00
parent 5f258b6a28
commit d9ae83a92b
5 changed files with 14 additions and 23 deletions

View File

@ -17,7 +17,7 @@ cache:
before_install: before_install:
- sudo ./data/infra/ci/install-ms-odbc.sh - sudo ./data/infra/ci/install-ms-odbc.sh
- docker-compose -f docker-compose.yml -f docker-compose.ci.yml up -d shlink_db_ms shlink_db shlink_db_postgres shlink_db_maria - docker-compose -f docker-compose.yml -f docker-compose.ci.yml up -d shlink_db_ms shlink_db shlink_db_postgres shlink_db_maria
- yes | pecl install pdo_sqlsrv swoole-4.4.15 - yes | pecl install pdo_sqlsrv swoole-4.4.18
- echo 'extension = apcu.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - echo 'extension = apcu.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- phpenv config-rm xdebug.ini || return 0 - phpenv config-rm xdebug.ini || return 0

View File

@ -1,8 +1,8 @@
FROM php:7.4.2-alpine3.11 as base FROM php:7.4.5-alpine3.11 as base
ARG SHLINK_VERSION=2.0.5 ARG SHLINK_VERSION=2.1.4
ENV SHLINK_VERSION ${SHLINK_VERSION} ENV SHLINK_VERSION ${SHLINK_VERSION}
ENV SWOOLE_VERSION 4.4.15 ENV SWOOLE_VERSION 4.4.18
ENV LC_ALL "C" ENV LC_ALL "C"
WORKDIR /etc/shlink WORKDIR /etc/shlink
@ -25,15 +25,12 @@ RUN \
# Install swoole and sqlsrv driver # Install swoole and sqlsrv driver
RUN wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.5.1.1-1_amd64.apk && \ RUN wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.5.1.1-1_amd64.apk && \
wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.5.1.1-1_amd64.apk && \
apk add --allow-untrusted msodbcsql17_17.5.1.1-1_amd64.apk && \ apk add --allow-untrusted msodbcsql17_17.5.1.1-1_amd64.apk && \
apk add --allow-untrusted mssql-tools_17.5.1.1-1_amd64.apk && \
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS unixodbc-dev && \ apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS unixodbc-dev && \
pecl install swoole-${SWOOLE_VERSION} pdo_sqlsrv && \ pecl install swoole-${SWOOLE_VERSION} pdo_sqlsrv && \
docker-php-ext-enable swoole pdo_sqlsrv && \ docker-php-ext-enable swoole pdo_sqlsrv && \
apk del .phpize-deps && \ apk del .phpize-deps && \
rm msodbcsql17_17.5.1.1-1_amd64.apk && \ rm msodbcsql17_17.5.1.1-1_amd64.apk
rm mssql-tools_17.5.1.1-1_amd64.apk
# Install shlink # Install shlink

View File

@ -1,4 +1,4 @@
FROM php:7.4.2-fpm-alpine3.11 FROM php:7.4.5-fpm-alpine3.11
MAINTAINER Alejandro Celaya <alejandro@alejandrocelaya.com> MAINTAINER Alejandro Celaya <alejandro@alejandrocelaya.com>
ENV APCU_VERSION 5.1.18 ENV APCU_VERSION 5.1.18
@ -67,15 +67,12 @@ RUN rm /tmp/xdebug.tar.gz
# Install sqlsrv driver # Install sqlsrv driver
RUN wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.5.1.1-1_amd64.apk && \ RUN wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.5.1.1-1_amd64.apk && \
wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.5.1.1-1_amd64.apk && \
apk add --allow-untrusted msodbcsql17_17.5.1.1-1_amd64.apk && \ apk add --allow-untrusted msodbcsql17_17.5.1.1-1_amd64.apk && \
apk add --allow-untrusted mssql-tools_17.5.1.1-1_amd64.apk && \
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS unixodbc-dev && \ apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS unixodbc-dev && \
pecl install pdo_sqlsrv && \ pecl install pdo_sqlsrv && \
docker-php-ext-enable pdo_sqlsrv && \ docker-php-ext-enable pdo_sqlsrv && \
apk del .phpize-deps && \ apk del .phpize-deps && \
rm msodbcsql17_17.5.1.1-1_amd64.apk && \ rm msodbcsql17_17.5.1.1-1_amd64.apk
rm mssql-tools_17.5.1.1-1_amd64.apk
# Install composer # Install composer
RUN php -r "readfile('https://getcomposer.org/installer');" | php RUN php -r "readfile('https://getcomposer.org/installer');" | php

View File

@ -1,10 +1,10 @@
FROM php:7.4.2-alpine3.11 FROM php:7.4.5-alpine3.11
MAINTAINER Alejandro Celaya <alejandro@alejandrocelaya.com> MAINTAINER Alejandro Celaya <alejandro@alejandrocelaya.com>
ENV APCU_VERSION 5.1.18 ENV APCU_VERSION 5.1.18
ENV APCU_BC_VERSION 1.0.5 ENV APCU_BC_VERSION 1.0.5
ENV INOTIFY_VERSION 2.0.0 ENV INOTIFY_VERSION 2.0.0
ENV SWOOLE_VERSION 4.4.15 ENV SWOOLE_VERSION 4.4.18
RUN apk update RUN apk update
@ -68,15 +68,12 @@ RUN rm /tmp/inotify.tar.gz
# Install swoole and mssql driver # Install swoole and mssql driver
RUN wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.5.1.1-1_amd64.apk && \ RUN wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.5.1.1-1_amd64.apk && \
wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.5.1.1-1_amd64.apk && \
apk add --allow-untrusted msodbcsql17_17.5.1.1-1_amd64.apk && \ apk add --allow-untrusted msodbcsql17_17.5.1.1-1_amd64.apk && \
apk add --allow-untrusted mssql-tools_17.5.1.1-1_amd64.apk && \
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS unixodbc-dev && \ apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS unixodbc-dev && \
pecl install swoole-${SWOOLE_VERSION} pdo_sqlsrv && \ pecl install swoole-${SWOOLE_VERSION} pdo_sqlsrv && \
docker-php-ext-enable swoole pdo_sqlsrv && \ docker-php-ext-enable swoole pdo_sqlsrv && \
apk del .phpize-deps && \ apk del .phpize-deps && \
rm msodbcsql17_17.5.1.1-1_amd64.apk && \ rm msodbcsql17_17.5.1.1-1_amd64.apk
rm mssql-tools_17.5.1.1-1_amd64.apk
# Install composer # Install composer
RUN php -r "readfile('https://getcomposer.org/installer');" | php RUN php -r "readfile('https://getcomposer.org/installer');" | php

View File

@ -79,7 +79,7 @@ services:
shlink_db_postgres: shlink_db_postgres:
container_name: shlink_db_postgres container_name: shlink_db_postgres
image: postgres:10.7-alpine image: postgres:12.2-alpine
ports: ports:
- "5433:5432" - "5433:5432"
volumes: volumes:
@ -92,7 +92,7 @@ services:
shlink_db_maria: shlink_db_maria:
container_name: shlink_db_maria container_name: shlink_db_maria
image: mariadb:10.2 image: mariadb:10.5
ports: ports:
- "3308:3306" - "3308:3306"
volumes: volumes:
@ -114,7 +114,7 @@ services:
shlink_redis: shlink_redis:
container_name: shlink_redis container_name: shlink_redis
image: redis:5.0-alpine image: redis:6.0-alpine
ports: ports:
- "6380:6379" - "6380:6379"
@ -131,7 +131,7 @@ services:
shlink_mercure: shlink_mercure:
container_name: shlink_mercure container_name: shlink_mercure
image: dunglas/mercure:v0.8 image: dunglas/mercure:v0.9
ports: ports:
- "3080:80" - "3080:80"
environment: environment: