Changes between Version 2 and Version 3 of dockerfile


Ignore:
Timestamp:
Oct 19, 2018, 3:38:13 PM (3 weeks ago)
Author:
ehb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • dockerfile

    v2 v3  
    88FROM ubuntu
    99
    10 ENV GENAPP /src/genapp
    11 ENV PS1 '\! \j [gadocker \u@\h] \w $ '
     10# user config
    1211
    13 RUN mkdir -p /src
     12ENV SRCBASE /src
     13ENV GENAPP $SRCBASE/genapp
     14ENV WSPORT 30777
     15ENV APPBASE /opt/genapp
     16ENV WEBROOT /var/www/html
     17ENV LOCKDIR $GENAPP/etc
     18
     19# user config
     20
     21ENV DEBIAN_FRONTEND noninteractive
     22
     23RUN mkdir -p $SRCBASE
    1424
    1525# basic install stuff
     
    1727RUN apt-get update && \
    1828    apt-get install -y --no-install-recommends apt-utils && \
    19     apt-get install -y subversion build-essential libssl-dev bc apache2 && \
    20     cd /src && svn co svn://svn.genapp.rocks/svn/base/genappalpha genapp
     29    apt-get install -y subversion build-essential libssl-dev bc apache2 curl && \
     30    apt-get install -y zlib1g-dev && \
     31    apt-get install -y software-properties-common && \
     32    apt-get install -y pkg-config && \
     33    apt-get install -y mlocate php5.6-dev libapache2-mod-php5.6 php5.6-xml && \
     34    apt-get install -y re2c && \
     35    apt-get install -y libzmq3-dev && \
     36    apt-get install -y uuid-dev && \
     37    apt-get install -y abiword && \
     38    apt-get install -y wget && \
     39    apt-get install -y mongodb && \
     40    apt-get install -y libmagickwand-6.q16-dev && \
     41Join from PC, Mac, Linux, iOS or Android: https://zoom.us/j/914506962 Or iPhone one-tap : US: +16468769923,,914506962# or +16699006833,,914506962# Or Telephone: Dial(for higher quality, dial a number based on your current location): US: +1 646 876 9923 or +1 669 900 6833 Meeting ID: 914 506 962 International numbers available: https://zoom.us/u/abSCZGKjGq    cd /src && svn co svn://svn.genapp.rocks/svn/base/genappalpha genap\
     42p
    2143
    2244# cpan minus for modules
    2345
    24 RUN apt-get install -y curl
    25 
    2646RUN curl -L http://cpanmin.us | perl - App::cpanminus
    2747
    28 RUN cpanm JSON Hash::Merge Data::Dumper Try::Tiny LWP::UserAgent MIME::Lite MIME::Base64
     48RUN cpanm JSON Hash::Merge Data::Dumper Try::Tiny LWP::UserAgent MIME::Lite MIME::Base64 LWP::Protocol::https
    2949
    30 RUN apt-get install -y zlib1g-dev
    31 RUN cpanm LWP::Protocol::https
    32 
    33 RUN apt-get install -y software-properties-common
    3450RUN  add-apt-repository -y ppa:ondrej/php && \
    3551     apt-get -y update
    36 
    37 ENV DEBIAN_FRONTEND noninteractive
    38 
    39 RUN apt-get -y install pkg-config
    40 
    41 RUN apt-get -y install mlocate php5.6-dev libapache2-mod-php5.6 php5.6-xml
    42 RUN apt-get -y install re2c
    43 RUN apt-get -y install libzmq3-dev
    44 RUN apt-get -y install uuid-dev
    45 RUN apt-get -y install abiword
    46 RUN apt-get -y install wget
    47 RUN apt-get -y install mongodb
    48 RUN apt-get -y install libmagickwand-6.q16-dev
    4952
    5053RUN pear channel-update pear.php.net
     
    5558; priority=20\n\
    5659extension=zmq.so\n'\
    57 >> /etc/php/5.6/mods-available/zmq.ini
     60> /etc/php/5.6/mods-available/zmq.ini
    5861
    5962RUN echo '; Enable imagick extension module\n\
    6063extension=imagick.so\n'\
    61 >> /etc/php/5.6/mods-available/imagick.ini
     64> /etc/php/5.6/mods-available/imagick.ini
    6265
    6366RUN echo '; Enable mongo extension module\n\
    6467extension=mongo.so\n'\
    65 >> /etc/php/5.6/mods-available/mongo.ini
     68> /etc/php/5.6/mods-available/mongo.ini
    6669
    6770RUN phpenmod zmq mongo imagick
    6871
    6972RUN sed -i.org "s/^disable_functions = pcntl/;disable_functions = pcntl/" /etc/php/5.6/apache2/php.ini
     73
     74RUN echo "# ws proxy pass\n\
     75# priority=20\n\
     76ProxyPass /ws2 ws://localhost:$WSPORT/\n"\
     77> /etc/apache2/mods-available/wsproxy.conf
     78
     79RUN echo '\n'\
     80> /etc/apache2/mods-available/wsproxy.load
     81
     82RUN echo "# wss proxy pass\n\
     83# priority=20\n\
     84ProxyPass /wss2 ws://localhost:$WSPORT/\n"\
     85> /etc/apache2/mods-available/wssproxy.conf
     86
     87RUN echo '\n'\
     88> /etc/apache2/mods-available/wssproxy.load
     89
     90RUN a2enmod proxy proxy_wstunnel wsproxy
     91
     92RUN ln -s /usr/bin/php /usr/local/bin/php
     93
     94
    7095}}}