Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- joga@ubuntu:~/simplenight/docker$ sh ./start.sh
- Cloning into '/home/joga/www/simplenight'...
- remote: Counting objects: 241749, done.
- remote: Compressing objects: 100% (147/147), done.
- remote: Total 241749 (delta 90), reused 62 (delta 39), pack-reused 241561
- Receiving objects: 100% (241749/241749), 472.94 MiB | 3.47 MiB/s, done.
- Resolving deltas: 100% (173952/173952), done.
- Checking connectivity... done.
- Cloning into '/home/joga/www/simplenight/suppliers'...
- remote: Counting objects: 35691, done.
- remote: Compressing objects: 100% (18/18), done.
- remote: Total 35691 (delta 7), reused 14 (delta 6), pack-reused 35667
- Receiving objects: 100% (35691/35691), 55.54 MiB | 1.47 MiB/s, done.
- Resolving deltas: 100% (24284/24284), done.
- Checking connectivity... done.
- Cloning into '/home/joga/www/simplenight/developers'...
- remote: Counting objects: 6549, done.
- remote: Compressing objects: 100% (51/51), done.
- remote: Total 6549 (delta 659), reused 618 (delta 618), pack-reused 5880
- Receiving objects: 100% (6549/6549), 5.90 MiB | 1.01 MiB/s, done.
- Resolving deltas: 100% (4870/4870), done.
- Checking connectivity... done.
- Cloning into '/home/joga/www/simplenight/docker'...
- remote: Counting objects: 329, done.
- remote: Compressing objects: 100% (15/15), done.
- remote: Total 329 (delta 2), reused 10 (delta 1), pack-reused 311
- Receiving objects: 100% (329/329), 62.15 KiB | 0 bytes/s, done.
- Resolving deltas: 100% (154/154), done.
- Checking connectivity... done.
- docker-compose -p sn build
- Building mongo
- Step 1/4 : FROM mongo:3.2
- ---> 4ece83276ddb
- Step 2/4 : MAINTAINER Paul Allen <paul@simplenight.com>
- ---> Using cache
- ---> be6c6120c652
- Step 3/4 : CMD ["mongod"]
- ---> Using cache
- ---> 7ef34f5bbc30
- Step 4/4 : EXPOSE 27017
- ---> Using cache
- ---> 925467e46f49
- Successfully built 925467e46f49
- Successfully tagged sn_mongo:latest
- Building apps
- Step 1/4 : FROM busybox:latest
- ---> 8ac48589692a
- Step 2/4 : MAINTAINER Paul Allen <paul@simplenight.com>
- ---> Using cache
- ---> b93abd8e38b7
- Step 3/4 : WORKDIR /www/simplenight
- ---> Using cache
- ---> 7ff739865d0e
- Step 4/4 : CMD ["true"]
- ---> Using cache
- ---> e18edfa53f34
- Successfully built e18edfa53f34
- Successfully tagged sn_apps:latest
- Building rabbitmq
- Step 1/4 : FROM rabbitmq
- ---> b17bd9d70e8b
- Step 2/4 : MAINTAINER Paul Allen<paul@simplenight.com>
- ---> Using cache
- ---> 07d500b47f22
- Step 3/4 : RUN rabbitmq-plugins enable --offline rabbitmq_management
- ---> Using cache
- ---> fca6beec3214
- Step 4/4 : EXPOSE 15671 15672
- ---> Using cache
- ---> 7373dfc4a932
- Successfully built 7373dfc4a932
- Successfully tagged sn_rabbitmq:latest
- Building elasticsearch
- Step 1/11 : FROM openjdk:8-jre
- ---> 1b56aa0fd38c
- Step 2/11 : ENV ES_PKG_NAME elasticsearch-1.7.6
- ---> Using cache
- ---> 644646adb799
- Step 3/11 : RUN cd / && curl -OL https://download.elastic.co/elasticsearch/elasticsearch/$ES_PKG_NAME.tar.gz && tar -xvzf $ES_PKG_NAME.tar.gz && rm -f $ES_PKG_NAME.tar.gz && mv /$ES_PKG_NAME /elasticsearch
- ---> Using cache
- ---> 139fca68a958
- Step 4/11 : RUN echo 'vm.max_map_count=262144' >> /etc/sysctl.conf
- ---> Using cache
- ---> 754d9bc491b2
- Step 5/11 : RUN echo 'root - memlock unlimited' >> /etc/security/limits.conf
- ---> Using cache
- ---> ad2c5aab3afe
- Step 6/11 : ADD elasticsearch.yml /data/elasticsearch.yml
- ---> Using cache
- ---> aa9a3623586f
- Step 7/11 : VOLUME ["/data"]
- ---> Using cache
- ---> 596d1b6aabd6
- Step 8/11 : WORKDIR /data
- ---> Using cache
- ---> cdb1d904dd2d
- Step 9/11 : CMD ["/elasticsearch/bin/elasticsearch","-Des.config=/data/elasticsearch.yml"]
- ---> Using cache
- ---> a3928ed15eb3
- Step 10/11 : EXPOSE 9200
- ---> Using cache
- ---> a0911f1b0437
- Step 11/11 : EXPOSE 9300
- ---> Using cache
- ---> bb484cc53d23
- Successfully built bb484cc53d23
- Successfully tagged sn_elasticsearch:latest
- Building mysql
- Step 1/9 : FROM mysql:5.6
- ---> 079344ce5ebd
- Step 2/9 : MAINTAINER Paul Allen <paul@simpenight.com>
- ---> Using cache
- ---> f441acfe6471
- Step 3/9 : ARG TZ=UTC
- ---> Using cache
- ---> 9d7161a30db2
- Step 4/9 : ENV TZ ${TZ}
- ---> Using cache
- ---> aa78b3a3b780
- Step 5/9 : RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
- ---> Using cache
- ---> 542441b4b378
- Step 6/9 : RUN chown -R mysql:root /var/lib/mysql/
- ---> Using cache
- ---> 69c1fa351b49
- Step 7/9 : ADD my.cnf /etc/mysql/conf.d/my.cnf
- ---> Using cache
- ---> 3d499df1718d
- Step 8/9 : CMD ["mysqld"]
- ---> Using cache
- ---> 8bfb085226f4
- Step 9/9 : EXPOSE 3306
- ---> Using cache
- ---> e1bcb4377cbc
- Successfully built e1bcb4377cbc
- Successfully tagged sn_mysql:latest
- Building memcached
- Step 1/4 : FROM memcached:latest
- ---> 784b59c50820
- Step 2/4 : MAINTAINER Paul ALlen <paul@simplenight.com>
- ---> Using cache
- ---> 1827d5e288a0
- Step 3/4 : CMD ["memcached"]
- ---> Using cache
- ---> ef39549e71ea
- Step 4/4 : EXPOSE 11211
- ---> Using cache
- ---> 448f73311881
- Successfully built 448f73311881
- Successfully tagged sn_memcached:latest
- Building php
- Step 1/16 : FROM php:5.6-fpm
- ---> b755db32196e
- Step 2/16 : MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
- ---> Using cache
- ---> cb205f58fdf0
- Step 3/16 : ADD ./simplenight.ini /usr/local/etc/php/conf.d
- ---> Using cache
- ---> a0770c042f93
- Step 4/16 : ADD ./vh-simplenight.pool.conf /usr/local/etc/php-fpm.d/
- ---> Using cache
- ---> 7342cfafa47b
- Step 5/16 : RUN apt-get update && apt-get install -y libpq-dev libmemcached-dev curl mysql-client postgresql-client libpng12-dev libfreetype6-dev libssl-dev libmcrypt-dev --no-install-recommends && rm -r /var/lib/apt/lists/*
- ---> Using cache
- ---> bc458b9df8d6
- Step 6/16 : RUN pecl install mongodb
- ---> Using cache
- ---> 4819e7680adb
- Step 7/16 : RUN pecl install mongo
- ---> Using cache
- ---> 50c54f291341
- Step 8/16 : RUN docker-php-ext-configure gd --enable-gd-native-ttf --with-freetype-dir=/usr/include/freetype2
- ---> Using cache
- ---> d0cb6bbb445a
- Step 9/16 : RUN docker-php-ext-install pdo_mysql pdo_pgsql mysqli gd mcrypt bcmath
- ---> Using cache
- ---> a4533518b515
- Step 10/16 : RUN pecl install memcached-2.2.0 && docker-php-ext-enable memcached
- ---> Using cache
- ---> 2fea753dd5b8
- Step 11/16 : RUN docker-php-ext-enable mongodb && docker-php-ext-enable mongo
- ---> Using cache
- ---> 866940a93c70
- Step 12/16 : RUN pecl install xdebug-2.5.5 && docker-php-ext-enable xdebug
- ---> Using cache
- ---> 61c6dc1e4539
- Step 13/16 : RUN usermod -u 1000 www-data
- ---> Using cache
- ---> dd8edddc7379
- Step 14/16 : WORKDIR /www/simplenight
- ---> Using cache
- ---> 577bbf39951e
- Step 15/16 : CMD ["php-fpm"]
- ---> Using cache
- ---> 1fe6bfabe787
- Step 16/16 : EXPOSE 9000
- ---> Using cache
- ---> 3d1c8f560275
- Successfully built 3d1c8f560275
- Successfully tagged sn_php:latest
- Building workspace
- Step 1/52 : FROM phusion/baseimage:latest
- ---> 166cfc3f6974
- Step 2/52 : MAINTAINER Paul Allen <paul@paulallen.org>
- ---> Using cache
- ---> ce755bc56fab
- Step 3/52 : RUN DEBIAN_FRONTEND=noninteractive
- ---> Using cache
- ---> 4733e1fc168f
- Step 4/52 : RUN locale-gen en_US.UTF-8
- ---> Using cache
- ---> f5a447819eed
- Step 5/52 : ENV LANGUAGE=en_US.UTF-8
- ---> Using cache
- ---> 2bd14f74cad6
- Step 6/52 : ENV LC_ALL=en_US.UTF-8
- ---> Using cache
- ---> aaa77750e43b
- Step 7/52 : ENV LC_CTYPE=UTF-8
- ---> Using cache
- ---> c8be20a6ab8c
- Step 8/52 : ENV LANG=en_US.UTF-8
- ---> Using cache
- ---> c854802c6eda
- Step 9/52 : ENV TERM xterm
- ---> Using cache
- ---> 6ee9a5e3317e
- Step 10/52 : ARG PUID=1000
- ---> Using cache
- ---> 9588cfe35a0c
- Step 11/52 : ARG PGID=1000
- ---> Using cache
- ---> 6c41bc94da78
- Step 12/52 : ARG USERNAME=allenp
- ---> Using cache
- ---> c6121256bee1
- Step 13/52 : ENV PUID ${PUID}
- ---> Using cache
- ---> ec7265a6ab10
- Step 14/52 : ENV PGID ${PGID}
- ---> Using cache
- ---> 88b68aded824
- Step 15/52 : ENV USERNAME ${USERNAME}
- ---> Using cache
- ---> bb91886421a3
- Step 16/52 : RUN groupadd -g ${PGID} ${USERNAME} && useradd -u ${PUID} -g www-data -m ${USERNAME} && adduser ${USERNAME} www-data && adduser ${USERNAME} sudo
- ---> Using cache
- ---> cb774dbbf420
- Step 17/52 : USER root
- ---> Using cache
- ---> ada2fcdf1ce1
- Step 18/52 : RUN apt-get update && apt-get install -y software-properties-common
- ---> Using cache
- ---> 3350137c5a25
- Step 19/52 : RUN add-apt-repository -y ppa:ondrej/php
- ---> Using cache
- ---> 32798b357377
- Step 20/52 : RUN apt-get update && apt-get install -y --allow-downgrades --allow-remove-essential --allow-change-held-packages php5.6-cli php5.6-common php5.6-curl php5.6-intl php5.6-json php5.6-xml php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-pgsql php5.6-sqlite php5.6-sqlite3 php5.6-zip php5.6-bcmath php5.6-memcached php5.6-gd php5.6-dev php5.6-soap pkg-config libcurl4-openssl-dev libedit-dev libssl-dev libxml2-dev xz-utils libsqlite3-dev sqlite3 git curl vim nano postgresql-client mysql-client mongodb-clients && apt-get clean
- ---> Using cache
- ---> c241a66841ae
- Step 21/52 : RUN apt-get install -y --force-yes php5.6-xdebug && sed -i 's/^;//g' /etc/php/5.6/cli/conf.d/20-xdebug.ini && echo "alias phpunit='php -dzend_extension=xdebug.so /www/simplenight/api/vendor/bin/phpunit'" >> /home/${USERNAME}/.bashrc
- ---> Using cache
- ---> 0e69f68b52f6
- Step 22/52 : RUN curl -s http://getcomposer.org/installer | php && echo "export PATH=${PATH}:/www/simplenight/api/vendor/bin" >> /home/${USERNAME}/.bashrc && mv composer.phar /usr/local/bin/composer
- ---> Using cache
- ---> ebfec300b518
- Step 23/52 : RUN . /home/${USERNAME}/.bashrc
- ---> Using cache
- ---> 31a7b7007a11
- Step 24/52 : RUN echo "alias phpunit='php -dzend_extension=xdebug.so /www/simplenight/api/vendor/bin/phpunit'" >> /home/${USERNAME}/.bashrc
- ---> Using cache
- ---> b1c6c8e1be55
- Step 25/52 : RUN pecl install mongodb && pecl install mongo
- ---> Using cache
- ---> 2ff3a0517af5
- Step 26/52 : RUN echo "extension=mongodb.so" >> /etc/php/5.6/cli/php.ini
- ---> Using cache
- ---> f7dbeb55f9c1
- Step 27/52 : RUN echo "extension=mongo.so" >> /etc/php/5.6/cli/php.ini
- ---> Using cache
- ---> 3d1b623dc2e2
- Step 28/52 : USER ${USERNAME}
- ---> Using cache
- ---> 0c85fa88f547
- Step 29/52 : RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
- ---> Using cache
- ---> c1626519813b
- Step 30/52 : ENV NVM_DIR=/home/${USERNAME}/.nvm
- ---> Using cache
- ---> b9e4dd67a272
- Step 31/52 : RUN . /home/${USERNAME}/.nvm/nvm.sh && nvm install stable && nvm use stable && nvm alias stable && npm install -g gulp bower grunt-cli elasticsearch-tools yarn
- ---> Using cache
- ---> 3d3b201f6a12
- Step 32/52 : USER root
- ---> Using cache
- ---> a87460d49071
- Step 33/52 : RUN apt-get install -y -qq ruby-dev
- ---> Using cache
- ---> e40fedfce583
- Step 34/52 : RUN apt-get install make
- ---> Using cache
- ---> 94adea3eedd2
- Step 35/52 : RUN gem install --no-rdoc --no-ri compass
- ---> Using cache
- ---> f02f7eea10ef
- Step 36/52 : RUN git clone https://github.com/amix/vimrc.git /home/${USERNAME}/.vim_runtime
- ---> Using cache
- ---> 4b014b99d191
- Step 37/52 : RUN . /home/${USERNAME}/.bashrc
- ---> Using cache
- ---> 8598cfdb97fc
- Step 38/52 : RUN chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/
- ---> Using cache
- ---> 49c8e5b67602
- Step 39/52 : USER ${USERNAME}
- ---> Using cache
- ---> cd8d8d63495f
- Step 40/52 : RUN bash /home/${USERNAME}/.vim_runtime/install_awesome_vimrc.sh
- ---> Using cache
- ---> b2c22b2bf717
- Step 41/52 : RUN echo "source ~/.nvm/nvm.sh" >> /home/${USERNAME}/.bashrc
- ---> Using cache
- ---> d3c79b3d7ef9
- Step 42/52 : RUN echo "export LARAVEL_ENV=local" >> /home/${USERNAME}/.bashrc && echo "export ENV=local" >> /home/${USERNAME}/.bashrc
- ---> Using cache
- ---> 65f5010fb2a1
- Step 43/52 : ADD my_configs.vim /home/${USERNAME}/.vim_runtime/
- ---> Using cache
- ---> cb0a1e1b52cb
- Step 44/52 : ADD .ssh/id_rsa /home/${USERNAME}/.ssh/
- ---> Using cache
- ---> d9f33413735b
- Step 45/52 : ADD .ssh/id_rsa.pub /home/${USERNAME}/.ssh/
- ---> Using cache
- ---> ddf2baa95f34
- Step 46/52 : USER root
- ---> Using cache
- ---> 760efc3c7b11
- Step 47/52 : ADD my.cnf /etc/mysql/conf.d/my.cnf
- ---> Using cache
- ---> 587332405169
- Step 48/52 : RUN chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.ssh/
- ---> Using cache
- ---> 2080958df81e
- Step 49/52 : RUN chmod 700 /home/${USERNAME}/.ssh/ && chmod 600 /home/${USERNAME}/.ssh/id_rsa
- ---> Using cache
- ---> 89fc47bc7f34
- Step 50/52 : RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
- ---> Using cache
- ---> 6d53768d8a19
- Step 51/52 : WORKDIR /www/simplenight
- ---> Using cache
- ---> f75171556d37
- Step 52/52 : RUN chown -R ${USERNAME}:www-data /www/simplenight
- ---> Using cache
- ---> 7c6f1797cd48
- Successfully built 7c6f1797cd48
- Successfully tagged sn_workspace:latest
- Building nginx
- Step 1/8 : FROM nginx:latest
- ---> c5c4e8fa2cf7
- Step 2/8 : MAINTAINER Bo-Yi Wu <appleboy.tw@gmail.com>
- ---> Using cache
- ---> 65034ec1d003
- Step 3/8 : ADD nginx.conf /etc/nginx/
- ---> Using cache
- ---> 2bf5fb474675
- Step 4/8 : ADD simplenight.conf /etc/nginx/sites-available/
- ---> Using cache
- ---> fd0ffdafdda1
- Step 5/8 : RUN echo "upstream php-upstream { server php:9000; }" > /etc/nginx/conf.d/upstream.conf
- ---> Using cache
- ---> 956a4de6e573
- Step 6/8 : RUN usermod -u 1000 www-data
- ---> Using cache
- ---> f51aabed8243
- Step 7/8 : CMD ["nginx"]
- ---> Using cache
- ---> fae192e47726
- Step 8/8 : EXPOSE 80 443
- ---> Using cache
- ---> 986704f7d125
- Successfully built 986704f7d125
- Successfully tagged sn_nginx:latest
- docker-compose -p sn up -d
- Starting apps
- Starting memcached
- Starting rabbitmq
- Starting mongo
- Starting elasticsearch
- Starting mysql
- Starting php
- Starting workspace
- Starting nginx
- Error: No such container: sn_workspace_1
- Error: No such container: sn_rabbitmq_1
- Error: No such container: sn_workspace_1
- Done!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement