Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d8336a9e1 | ||
|
|
f0e2d83618 | ||
|
|
7f1deb0342 | ||
|
|
703887a2a6 |
27
README.md
27
README.md
@@ -92,7 +92,7 @@ docker-compose up nginx mysql
|
|||||||
- Memcached
|
- Memcached
|
||||||
- Beanstalkd
|
- Beanstalkd
|
||||||
- Beanstalkd Console
|
- Beanstalkd Console
|
||||||
- Workspace (includes: Composer, PHP7-CLI, Laravel Installer, Git, Vim, Nano and cURL)
|
- Workspace (contains: Composer, PHP7-CLI, Laravel Installer, Git, Node, Gulp, Bower, Vim, Nano and cURL)
|
||||||
- Data Volume *(Databases Data Container)*
|
- Data Volume *(Databases Data Container)*
|
||||||
- Application *(Application Code Container)*
|
- Application *(Application Code Container)*
|
||||||
|
|
||||||
@@ -691,14 +691,31 @@ eval $(docker-machine env)
|
|||||||
```bash
|
```bash
|
||||||
docker-machine ip default
|
docker-machine ip default
|
||||||
```
|
```
|
||||||
|
If your Host name is different then `default`, you have to specify it (`docker-machine ip my-host`).
|
||||||
|
|
||||||
*(The default IP is 192.168.99.100)*
|
*(The default IP is 192.168.99.100)*
|
||||||
|
|
||||||
**On Linux:**
|
|
||||||
|
|
||||||
Your IP Address is `127.0.0.1`
|
|
||||||
|
|
||||||
> **boot2docker** users: run `boot2docker ip` *(when boot2docker is up)*.
|
> **boot2docker** users: run `boot2docker ip` *(when boot2docker is up)*.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
**On Linux:**
|
||||||
|
|
||||||
|
1 - Run `ifconfig` in the terminal.
|
||||||
|
|
||||||
|
2 - In the result search for `docker0`, your IP address will be next to `inet addr`.
|
||||||
|
|
||||||
|
Example: (In this example your IP address is `172.17.0.1`).
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker0 Link encap:Ethernet HWaddr 02:42:41:2d:c4:24
|
||||||
|
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
|
||||||
|
UP BROADCAST MULTICAST MTU:1500 Metric:1
|
||||||
|
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
|
||||||
|
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
|
||||||
|
collisions:0 txqueuelen:0
|
||||||
|
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
|
||||||
|
```
|
||||||
|
>If you have an easier way to do it, share it with us.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,14 +11,16 @@ ENV LC_CTYPE=UTF-8
|
|||||||
ENV LANG=en_US.UTF-8
|
ENV LANG=en_US.UTF-8
|
||||||
ENV TERM xterm
|
ENV TERM xterm
|
||||||
|
|
||||||
# Install "software-properties-common" (for add-apt-repository) and add the "PHP 7" ppa
|
# Install "software-properties-common" (for the "add-apt-repository")
|
||||||
RUN apt-get update \
|
RUN apt-get update && apt-get install -y \
|
||||||
&& apt-get install -y software-properties-common \
|
software-properties-common
|
||||||
&& add-apt-repository -y ppa:ondrej/php
|
|
||||||
|
|
||||||
# Install PHP-CLI 7 and some useful Tools
|
# Add the "PHP 7" ppa
|
||||||
RUN apt-get update \
|
RUN add-apt-repository -y \
|
||||||
&& apt-get install -y \
|
ppa:ondrej/php
|
||||||
|
|
||||||
|
# Install PHP-CLI 7, some PHP extentions and some useful Tools with APT
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
php7.0-cli \
|
php7.0-cli \
|
||||||
php7.0-common \
|
php7.0-common \
|
||||||
php7.0-curl \
|
php7.0-curl \
|
||||||
@@ -27,7 +29,11 @@ RUN apt-get update \
|
|||||||
php7.0-mbstring \
|
php7.0-mbstring \
|
||||||
php7.0-mcrypt \
|
php7.0-mcrypt \
|
||||||
php7.0-mysql \
|
php7.0-mysql \
|
||||||
|
php7.0-sqlite \
|
||||||
|
php7.0-sqlite3 \
|
||||||
php7.0-zip \
|
php7.0-zip \
|
||||||
|
sqlite3 \
|
||||||
|
libsqlite3-dev \
|
||||||
git \
|
git \
|
||||||
curl \
|
curl \
|
||||||
vim \
|
vim \
|
||||||
@@ -36,6 +42,20 @@ RUN apt-get update \
|
|||||||
nodejs-dev \
|
nodejs-dev \
|
||||||
npm
|
npm
|
||||||
|
|
||||||
|
# Clean up, to free some space
|
||||||
|
RUN apt-get clean
|
||||||
|
|
||||||
|
# Install gulp and bower with NPM
|
||||||
|
RUN npm install -g \
|
||||||
|
gulp \
|
||||||
|
bower
|
||||||
|
|
||||||
|
# Add a symbolic link for Node
|
||||||
|
RUN ln -s /usr/bin/nodejs /usr/bin/node
|
||||||
|
|
||||||
|
# Add an alias for PHPUnit
|
||||||
|
RUN echo "alias phpunit='./vendor/bin/phpunit'" >> ~/.bashrc
|
||||||
|
|
||||||
# Install Composer
|
# Install Composer
|
||||||
RUN curl -s http://getcomposer.org/installer | php \
|
RUN curl -s http://getcomposer.org/installer | php \
|
||||||
&& mv composer.phar /usr/local/bin/ \
|
&& mv composer.phar /usr/local/bin/ \
|
||||||
@@ -45,20 +65,10 @@ RUN curl -s http://getcomposer.org/installer | php \
|
|||||||
RUN composer.phar global require "laravel/installer" \
|
RUN composer.phar global require "laravel/installer" \
|
||||||
&& echo "export PATH='~/.composer/vendor/bin:$PATH'" >> ~/.bashrc
|
&& echo "export PATH='~/.composer/vendor/bin:$PATH'" >> ~/.bashrc
|
||||||
|
|
||||||
# Install gulp and bower
|
|
||||||
RUN npm install -g gulp bower
|
|
||||||
|
|
||||||
# Add a symbolic link
|
|
||||||
RUN ln -s /usr/bin/nodejs /usr/bin/node
|
|
||||||
|
|
||||||
# Add an alias for PHPUnit
|
|
||||||
RUN echo "alias phpunit='./vendor/bin/phpunit'" >> ~/.bashrc
|
|
||||||
|
|
||||||
# Source the bash
|
# Source the bash
|
||||||
RUN . ~/.bashrc
|
RUN . ~/.bashrc
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
RUN apt-get autoclean && apt-get clean \
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
||||||
|
|
||||||
WORKDIR /var/www/laravel
|
WORKDIR /var/www/laravel
|
||||||
|
|||||||
Reference in New Issue
Block a user