-
-
Save kelunik/ccc412ac0ed9c9899e92ab04461394f0 to your computer and use it in GitHub Desktop.
Airship Docker
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
FROM ubuntu:16.04 | |
RUN apt-get update | |
RUN apt-get -y upgrade | |
RUN apt-get -y install wget git | |
RUN apt-get -y install php7.0 php7.0-cli php7.0-fpm php7.0-json php7.0-pgsql php7.0-curl php7.0-dev | |
RUN wget https://pear.php.net/go-pear.phar | |
RUN echo "8322214a6979a0917f0068af924428a80ff7083b94343396b13dac1d0f916748025fab72290af340d30633837222c277 go-pear.phar" | sha384sum -c | |
RUN php go-pear.phar | |
RUN apt-get -y install postgresql | |
RUN git clone https://github.com/jedisct1/libsodium.git /tmp/sodium | |
WORKDIR /tmp/sodium | |
RUN git checkout tags/1.0.10 | |
RUN ./autogen.sh | |
RUN ./configure && make distcheck | |
RUN make install | |
RUN pecl install libsodium | |
RUN phpenmod libsodium | |
RUN apt-get -y install apache2 | |
RUN apt-get -y install composer | |
WORKDIR /var/www | |
RUN git clone https://github.com/paragonie/airship.git | |
WORKDIR /var/www/airship | |
RUN git checkout v1.0.2 | |
RUN composer install | |
RUN chown -R www-data:www-data . | |
RUN chmod -R g+w . | |
RUN su postgres -c "createuser airship -P" | |
RUN su postgres -c "createdb -O airship airship" | |
CMD ["apache2", "-D", "FOREGROUND"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment