Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
migrate to stable alpine image
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonderfall committed Apr 25, 2017
1 parent 3b97570 commit 453f6d5
Show file tree
Hide file tree
Showing 9 changed files with 115 additions and 120 deletions.
5 changes: 2 additions & 3 deletions ghost/Dockerfile
@@ -1,6 +1,6 @@
FROM alpine:edge
FROM alpine:3.5

ARG GHOST_VERSION=0.11.7
ARG GHOST_VERSION=0.11.8

ENV GHOST_NODE_VERSION_CHECK=false \
GID=991 \
Expand Down Expand Up @@ -34,7 +34,6 @@ RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/a
tini@commuedge \
su-exec \
nodejs \
nodejs-npm \
&& wget -q https://github.com/TryGhost/Ghost/releases/download/${GHOST_VERSION}/Ghost-${GHOST_VERSION}.zip -P /tmp \
&& unzip -q /tmp/Ghost-${GHOST_VERSION}.zip -d /ghost \
&& cd /ghost \
Expand Down
4 changes: 2 additions & 2 deletions libresonic/Dockerfile
@@ -1,12 +1,12 @@
FROM alpine:edge
FROM alpine:3.5

ARG VERSION=6.2.beta3

ENV UID=991 GID=991

WORKDIR /libresonic

RUN echo "@community https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
RUN echo "@community https://nl.alpinelinux.org/alpine/v3.5/community" >> /etc/apk/repositories \
&& apk -U upgrade && apk add \
ffmpeg \
su-exec \
Expand Down
81 changes: 39 additions & 42 deletions nextcloud/11.0/Dockerfile
@@ -1,8 +1,8 @@
FROM alpine:edge
FROM alpine:3.5

ARG NEXTCLOUD_VERSION=11.0.2
ARG NEXTCLOUD_VERSION=11.0.3
ARG GNU_LIBICONV_VERSION=1.15
ARG PHP_SOURCES_VERSION=7.1.3
ARG PHP_SOURCES_VERSION=7.0.18
ARG GPG_nextcloud="2880 6A87 8AE4 23A2 8372 792E D758 99B9 A724 937A"

ENV UID=991 GID=991 \
Expand All @@ -16,8 +16,7 @@ ENV UID=991 GID=991 \
DB_TYPE=sqlite3 \
DOMAIN=localhost

RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& BUILD_DEPS=" \
RUN BUILD_DEPS=" \
gnupg \
tar \
build-base \
Expand All @@ -36,49 +35,47 @@ RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/r
samba-client \
su-exec \
tzdata \
php7@testing \
php7-fpm@testing \
php7-intl@testing \
php7-mbstring@testing \
php7-curl@testing \
php7-gd@testing \
php7-fileinfo@testing \
php7-mcrypt@testing \
php7-opcache@testing \
php7-json@testing \
php7-session@testing \
php7-pdo@testing \
php7-dom@testing \
php7-ctype@testing \
php7-mysqlnd@testing \
php7-pdo_mysql@testing \
php7-pdo_pgsql@testing \
php7-pgsql@testing \
php7-pdo_sqlite@testing \
php7-sqlite3@testing \
php7-zlib@testing \
php7-zip@testing \
php7-xmlreader@testing \
php7-xml@testing \
php7-xmlwriter@testing \
php7-posix@testing \
php7-openssl@testing \
php7-ldap@testing \
php7-imap@testing \
php7-ftp@testing \
php7-pcntl@testing \
php7-exif@testing \
php7-pear@testing \
php7-dev@testing \
&& pecl install smbclient apcu redis \
php7 \
php7-fpm \
php7-intl \
php7-mbstring \
php7-curl \
php7-gd \
php7-mcrypt \
php7-opcache \
php7-json \
php7-session \
php7-pdo \
php7-dom \
php7-ctype \
php7-mysqlnd \
php7-pdo_mysql \
php7-pdo_pgsql \
php7-pgsql \
php7-pdo_sqlite \
php7-sqlite3 \
php7-zlib \
php7-zip \
php7-xmlreader \
php7-xml \
php7-posix \
php7-openssl \
php7-ldap \
php7-imap \
php7-ftp \
php7-pcntl \
php7-exif \
php7-pear \
php7-dev \
&& sed -i "$ s|\-n||g" /usr/bin/pecl && pecl install smbclient apcu redis \
&& cd /tmp && wget -q http://ftp.gnu.org/pub/gnu/libiconv/libiconv-${GNU_LIBICONV_VERSION}.tar.gz \
&& tar xzf libiconv-${GNU_LIBICONV_VERSION}.tar.gz && cd libiconv-${GNU_LIBICONV_VERSION} \
&& ./configure --prefix=/usr/local \
&& make && make install && libtool --finish /usr/local/lib && cd /tmp \
&& wget -q http://is1.php.net/get/php-${PHP_SOURCES_VERSION}.tar.gz/from/this/mirror -O php7.tar.gz \
&& wget -q http://ch1.php.net/get/php-${PHP_SOURCES_VERSION}.tar.gz/from/this/mirror -O php7.tar.gz \
&& tar xzf php7.tar.gz && cd /tmp/php-${PHP_SOURCES_VERSION}/ext/iconv && phpize7 \
&& ./configure --with-iconv=/usr/local --with-php-config=/usr/bin/php-config7 \
&& make && cp modules/iconv.so /usr/lib/php7 && cd /tmp \
&& make && cp modules/iconv.so /usr/lib/php7/modules && cd /tmp \
&& echo "extension=iconv.so" > /etc/php7/conf.d/00_iconv.ini \
&& echo "extension=smbclient.so" > /etc/php7/conf.d/00_smbclient.ini \
&& echo "extension=redis.so" > /etc/php7/conf.d/redis.ini \
Expand Down
4 changes: 2 additions & 2 deletions nextcloud/README.md
Expand Up @@ -12,8 +12,8 @@
**This image was made for my own use and I have no intention to make this official. Support won't be regular so if there's an update, or a fix, you can open a pull request. Any contribution is welcome, but please be aware I'm very busy currently. Before opening an issue, please check if there's already one related. Also please use Github instead of Docker Hub, otherwise I won't see your comments. Thanks.**

### Features
- Based on Alpine Linux Edge.
- Bundled with nginx and PHP 7.1.
- Based on Alpine Linux.
- Bundled with nginx and PHP 7.
- Automatic installation using environment variables.
- Package integrity (SHA512) and authenticity (PGP) checked during building process.
- Data and apps persistence.
Expand Down
76 changes: 38 additions & 38 deletions nextcloud/daily/Dockerfile
@@ -1,7 +1,7 @@
FROM alpine:edge
FROM alpine:3.5

ARG GNU_LIBICONV_VERSION=1.15
ARG PHP_SOURCES_VERSION=7.1.3
ARG PHP_SOURCES_VERSION=7.0.18

ENV UID=991 GID=991 \
UPLOAD_MAX_SIZE=10G \
Expand All @@ -14,7 +14,7 @@ ENV UID=991 GID=991 \
DB_TYPE=sqlite3 \
DOMAIN=localhost

RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
RUN echo " https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& BUILD_DEPS=" \
gnupg \
tar \
Expand All @@ -34,40 +34,40 @@ RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/r
samba-client \
su-exec \
tzdata \
php7@testing \
php7-fpm@testing \
php7-intl@testing \
php7-mbstring@testing \
php7-curl@testing \
php7-gd@testing \
php7-fileinfo@testing \
php7-mcrypt@testing \
php7-opcache@testing \
php7-json@testing \
php7-session@testing \
php7-pdo@testing \
php7-dom@testing \
php7-ctype@testing \
php7-mysqlnd@testing \
php7-pdo_mysql@testing \
php7-pdo_pgsql@testing \
php7-pgsql@testing \
php7-pdo_sqlite@testing \
php7-sqlite3@testing \
php7-zlib@testing \
php7-zip@testing \
php7-xmlreader@testing \
php7-xml@testing \
php7-xmlwriter@testing \
php7-posix@testing \
php7-openssl@testing \
php7-ldap@testing \
php7-imap@testing \
php7-ftp@testing \
php7-pcntl@testing \
php7-exif@testing \
php7-pear@testing \
php7-dev@testing \
php7 \
php7-fpm \
php7-intl \
php7-mbstring \
php7-curl \
php7-gd \
php7-fileinfo \
php7-mcrypt \
php7-opcache \
php7-json \
php7-session \
php7-pdo \
php7-dom \
php7-ctype \
php7-mysqlnd \
php7-pdo_mysql \
php7-pdo_pgsql \
php7-pgsql \
php7-pdo_sqlite \
php7-sqlite3 \
php7-zlib \
php7-zip \
php7-xmlreader \
php7-xml \
php7-xmlwriter \
php7-posix \
php7-openssl \
php7-ldap \
php7-imap \
php7-ftp \
php7-pcntl \
php7-exif \
php7-pear \
php7-dev \
&& pecl install smbclient apcu redis \
&& cd /tmp && wget -q http://ftp.gnu.org/pub/gnu/libiconv/libiconv-${GNU_LIBICONV_VERSION}.tar.gz \
&& tar xzf libiconv-${GNU_LIBICONV_VERSION}.tar.gz && cd libiconv-${GNU_LIBICONV_VERSION} \
Expand All @@ -76,7 +76,7 @@ RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/r
&& wget -q http://is1.php.net/get/php-${PHP_SOURCES_VERSION}.tar.gz/from/this/mirror -O php7.tar.gz \
&& tar xzf php7.tar.gz && cd /tmp/php-${PHP_SOURCES_VERSION}/ext/iconv && phpize7 \
&& ./configure --with-iconv=/usr/local --with-php-config=/usr/bin/php-config7 \
&& make && cp modules/iconv.so /usr/lib/php7 && cd /tmp \
&& make && cp modules/iconv.so /usr/lib/php7/modules && cd /tmp \
&& echo "extension=iconv.so" > /etc/php7/conf.d/00_iconv.ini \
&& echo "extension=smbclient.so" > /etc/php7/conf.d/00_smbclient.ini \
&& echo "extension=redis.so" > /etc/php7/conf.d/redis.ini \
Expand Down
39 changes: 19 additions & 20 deletions piwik/Dockerfile
@@ -1,12 +1,11 @@
FROM alpine:edge
FROM alpine:3.5

ARG VERSION=3.0.3
ARG GPG_matthieu="814E 346F A01A 20DB B04B 6807 B5DB D592 5590 A237"

ENV UID=991 GID=991

RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& BUILD_DEPS=" \
RUN BUILD_DEPS=" \
git \
tar \
build-base \
Expand All @@ -22,23 +21,23 @@ RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/r
su-exec \
geoip \
tzdata \
php7-fpm@testing \
php7-gd@testing \
php7-curl@testing \
php7-session@testing \
php7-json@testing \
php7-ctype@testing \
php7-mbstring@testing \
php7-iconv@testing \
php7-zlib@testing \
php7-dom@testing \
php7-openssl@testing \
php7-mysqli@testing \
php7-mysqlnd@testing \
php7-pdo@testing \
php7-pdo_mysql@testing \
php7-dev@testing \
php7-pear@testing \
php7-fpm \
php7-gd \
php7-curl \
php7-session \
php7-json \
php7-ctype \
php7-mbstring \
php7-iconv \
php7-zlib \
php7-dom \
php7-openssl \
php7-mysqli \
php7-mysqlnd \
php7-pdo \
php7-pdo_mysql \
php7-dev \
php7-pear \
&& sed -i "$ s|\-n||g" /usr/bin/pecl && pecl install geoip-1.1.1 \
&& echo 'extension=geoip.so' >> /etc/php7/conf.d/00_geoip.ini \
&& echo 'geoip.custom_directory=/piwik/misc' >> /etc/php7/php.ini \
Expand Down
14 changes: 7 additions & 7 deletions privatebin/Dockerfile
@@ -1,19 +1,19 @@
FROM alpine:edge
FROM alpine:3.5

ENV GID=991 UID=991

RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
RUN echo " https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& BUILD_DEPS="tar libressl ca-certificates" \
&& apk -U upgrade && apk add \
$BUILD_DEPS \
nginx \
s6 \
su-exec \
php7-fpm@testing \
php7-gd@testing \
php7-mcrypt@testing \
php7-json@testing \
php7-zlib@testing \
php7-fpm \
php7-gd \
php7-mcrypt \
php7-json \
php7-zlib \
&& mkdir zerobin && cd zerobin \
&& wget -qO- https://github.com/PrivateBin/PrivateBin/archive/master.tar.gz | tar xz --strip 1 \
&& mv cfg/conf.ini.sample cfg/conf.ini \
Expand Down
6 changes: 3 additions & 3 deletions rtorrent-flood/Dockerfile
@@ -1,9 +1,10 @@
FROM alpine:edge
FROM alpine:3.5

ARG RTORRENT_VER=0.9.6
ARG LIBTORRENT_VER=0.13.6
ARG MEDIAINFO_VER=0.7.94
ARG FILEBOT_VER=4.7.9
ARG FLOOD_VER=1.0.0
ARG BUILD_CORES

ENV UID=991 GID=991 \
Expand Down Expand Up @@ -42,7 +43,6 @@ RUN NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \
su-exec \
python \
nodejs \
nodejs-npm \
&& apk add -X http://dl-cdn.alpinelinux.org/alpine/v3.4/community -U openjdk8-jre==8.111.14-r0 openjdk8-jre-base==8.111.14-r0 openjdk8-jre-lib==8.111.14-r0 \
&& cd /tmp && mkdir libtorrent rtorrent \
&& cd libtorrent && wget -qO- https://github.com/rakshasa/libtorrent/archive/${LIBTORRENT_VER}.tar.gz | tar xz --strip 1 \
Expand Down Expand Up @@ -70,7 +70,7 @@ RUN NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \
&& mkdir /filebot && cd /filebot \
&& wget -q https://netcologne.dl.sourceforge.net/project/filebot/filebot/FileBot_${FILEBOT_VER}/FileBot_${FILEBOT_VER}-portable.tar.xz \
&& tar xJf FileBot_${FILEBOT_VER}-portable.tar.xz && rm FileBot_${FILEBOT_VER}-portable.tar.xz \
&& cd /usr && git clone https://github.com/jfurrow/flood && cd flood \
&& mkdir /usr/flood && cd /usr/flood && wget -qO- https://github.com/jfurrow/flood/archive/v${FLOOD_VER}.tar.gz | tar xz --strip 1 \
&& npm install --production \
&& apk del ${BUILD_DEPS} \
&& rm -rf /var/cache/apk/* /tmp/*
Expand Down
6 changes: 3 additions & 3 deletions searx/Dockerfile
@@ -1,9 +1,9 @@
FROM alpine:edge
FROM alpine:3.5

ENV BASE_URL=False IMAGE_PROXY=False \
UID=991 GID=991

RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
RUN echo "@community https://nl.alpinelinux.org/alpine/v3.5/community" >> /etc/apk/repositories \
&& BUILD_DEPS=" \
build-base \
python-dev \
Expand All @@ -20,7 +20,7 @@ RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/a
libxml2 \
libxslt \
openssl \
tini@commuedge \
tini@community \
py2-pip \
&& pip install --no-cache -r https://raw.githubusercontent.com/asciimoo/searx/master/requirements.txt \
&& mkdir /usr/local/searx && cd /usr/local/searx \
Expand Down

7 comments on commit 453f6d5

@klaxa
Copy link

@klaxa klaxa commented on 453f6d5 Apr 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alpine 3.5 packages php 7.0.16, this basically reopens #130 and #155. I've been spending at least 3 hours troubleshooting this. I've run out of motivation to run nextcloud with this. Are there any workarounds/fixes you can propose before I finally lose my mind?

@Wonderfall
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@klaxa Have you tried? If it's the case, I would contact the maintainer.
I was tired of fixing bugs so I did this migration. But if it's still buggy, I will make my own image nginx/php image.

@klaxa
Copy link

@klaxa klaxa commented on 453f6d5 Apr 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Wonderfall tried what? I tried building the latest Dockerfile and also older versions still running on Apline:edge, those raise different errors for nginx needing different libcrypto and libssl versions than available. I'll try to debug that and see if i can get it to work.

@Wonderfall
Copy link
Owner

@Wonderfall Wonderfall commented on 453f6d5 Apr 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant, have you tried this image. It would be surprising if the maintainer didn't update php 7.0.x packages as well. Regarding your errors, you cannot fix them at the moment, it's a problem with the nginx package in Alpine Edge (part of the reason of the migration to more stable images).

@klaxa
Copy link

@klaxa klaxa commented on 453f6d5 Apr 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it seems like Apline:edge is, excuse my choice of words, fucked up. (The libraries it complains about not finding are in /lib, but ldconfig exists with return code 1? What ldconfig am I even using? It seems busybox stopped buildig it? I don't even know anymore.) I'll go ask whoever maintains the Alpine:3.5 image to update their php to 7.0.18 I guess? It's really frustrating as I ran nextcloud 11.0.2 for weeks now and it comes down to either getting php >= 7.0.17 (7.0.16 currently) or kernel >= 3.17 (3.16 on my machine currently) and in my opinion a single container does not justify a kernel upgrade and reboot on a productive server.

@Wonderfall
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we should flag the php 7.0 package... I'm trying to make my own nginx-php image so I can compile both nginx and PHP from source.

@macmeck
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I can confirm that we have this issue (again)... Requesting updated versions of php7 seems to be the best solution here. https://bugs.alpinelinux.org/issues/7146

Please sign in to comment.