-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update postgres images, make sure all db services have versions in them
- Loading branch information
1 parent
c7e96d0
commit 447477c
Showing
11 changed files
with
551 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ services: | |
nginx: | ||
build: ./nginx | ||
|
||
mssql: | ||
mssql2017: | ||
build: | ||
context: ./mssql | ||
dockerfile: 2017/Dockerfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
FROM php:5.6-fpm-alpine | ||
|
||
ARG TIME_ZONE=Pacific/Auckland | ||
|
||
#RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list \ | ||
# && sed -i 's|security.debian.org|archive.debian.org/|g' /etc/apt/sources.list \ | ||
# && sed -i '/stretch-updates/d' /etc/apt/sources.list | ||
|
||
#RUN apk add --no-cache --update \ | ||
# freetds-bin \ | ||
# freetds-common \ | ||
# freetds-dev \ | ||
# libpq-dev \ | ||
# freetype-dev \ | ||
# musl-locales | ||
|
||
RUN apk add --no-cache --update \ | ||
libgd libpng-dev libjpeg-turbo-dev freetype-dev \ | ||
libxml2-dev \ | ||
icu-dev \ | ||
postgresql-dev \ | ||
# musl \ | ||
# openssl-dev \ | ||
# pkgconf \ | ||
# libpq \ | ||
# libpq-dev \ | ||
# freetype-dev \ | ||
# libjpeg-turbo-dev \ | ||
# libmcrypt-dev \ | ||
# libpng-dev \ | ||
# libxml2-dev \ | ||
# icu-dev \ | ||
# nano \ | ||
# vim \ | ||
# git \ | ||
# musl \ | ||
# musl-utils \ | ||
# tzdata \ | ||
# libmemcached-dev \ | ||
# zip \ | ||
# bc \ | ||
# ghostscript \ | ||
# graphviz \ | ||
# aspell \ | ||
# wget \ | ||
# libldap \ | ||
# openldap-dev \ | ||
# bash \ | ||
# curl \ | ||
# autoconf \ | ||
# gcc \ | ||
# make \ | ||
# g++ \ | ||
&& docker-php-ext-install -j$(nproc) xmlrpc \ | ||
zip \ | ||
intl \ | ||
soap \ | ||
opcache \ | ||
pdo_pgsql \ | ||
pdo_mysql \ | ||
pgsql \ | ||
mysqli \ | ||
exif \ | ||
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | ||
&& docker-php-ext-install -j$(nproc) gd | ||
|
||
#RUN wget --no-check-certificate https://pecl.php.net/get/xhprof-0.9.4.tgz \ | ||
# && pecl install --offline ./xhprof-0.9.4.tgz | ||
# | ||
#RUN echo "extension=xhprof.so" >> /usr/local/etc/php/conf.d/tideways_xhprof.ini | ||
|
||
RUN pecl install xhprof-0.9.4 \ | ||
&& docker-php-ext-enable xhprof | ||
|
||
RUN pecl install -o -f redis-4.3.0 \ | ||
&& rm -rf /tmp/pear \ | ||
&& docker-php-ext-enable redis | ||
|
||
RUN pecl install -o -f igbinary-2.0.8 \ | ||
&& rm -rf /tmp/pear \ | ||
&& docker-php-ext-enable igbinary | ||
|
||
RUN pecl install -o -f memcached-2.2.0 \ | ||
&& rm -rf /tmp/pear \ | ||
&& docker-php-ext-enable memcached | ||
|
||
# we need en_AU locales for behat to work | ||
#RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ | ||
# sed -i -e 's/# en_AU.UTF-8 UTF-8/en_AU.UTF-8 UTF-8/' /etc/locale.gen && \ | ||
# dpkg-reconfigure --frontend=noninteractive locales && \ | ||
# update-locale LANG=en_US.UTF-8 | ||
|
||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US.UTF-8 | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
RUN apk add --no-cache --update \ | ||
libsybdb5 \ | ||
unixodbc \ | ||
libct4 | ||
|
||
RUN cd /usr/lib && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.a | ||
|
||
RUN docker-php-ext-install -j$(nproc) mssql | ||
|
||
COPY config/freetds.conf /etc/freetds/freetds.conf | ||
|
||
RUN cd / && git clone https://github.com/wolfcw/libfaketime.git \ | ||
&& cd /libfaketime/src && make install | ||
|
||
RUN ln -fs /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime \ | ||
&& dpkg-reconfigure --frontend noninteractive tzdata | ||
|
||
COPY config/php.ini /usr/local/etc/php/php.ini | ||
COPY config/fpm.conf /usr/local/etc/php-fpm.d/zz-totara.conf | ||
|
||
# Source each .sh file found in the /shell/ folder | ||
RUN echo 'for f in ~/custom_shell/*.sh; do [[ -e "$f" ]] && source "$f"; done;' >> ~/.bashrc | ||
|
||
# Have the option of using the oh my zsh shell. | ||
RUN apk add --no-cache --update zsh | ||
RUN sh -c "$(curl https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" --unattended | ||
RUN git clone https://github.com/romkatv/powerlevel10k ~/.oh-my-zsh/custom/themes/powerlevel10k | ||
RUN git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions | ||
RUN git clone https://github.com/zsh-users/zsh-completions ~/.oh-my-zsh/custom/plugins/zsh-completions | ||
RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting | ||
RUN echo 'setopt +o nomatch' > ~/.zshrc | ||
RUN echo 'source ~/custom_shell/.zshrc' >> ~/.zshrc | ||
RUN cat ~/.bashrc >> ~/.zshrc |
Oops, something went wrong.