Compare commits

...

4 Commits

Author SHA1 Message Date
Mahmoud Zalt
1d8336a9e1 add cleaning to free some space during provisioning the workspace
Fixing E: You don't have enough free space in /var/cache/apt/archives/
2016-05-19 03:25:02 +03:00
Mahmoud Zalt
f0e2d83618 add sqlite in the workspace
it could be removed to it’s own container later
2016-05-19 03:06:34 +03:00
Mahmoud Zalt
7f1deb0342 update how to get IP address on Linux, in the readme 2016-05-19 02:49:07 +03:00
Mahmoud Zalt
703887a2a6 add Node, Gulp and Bower to the readme 2016-05-18 22:54:46 +03:00
2 changed files with 50 additions and 23 deletions

View File

@@ -92,7 +92,7 @@ docker-compose up nginx mysql
- Memcached
- Beanstalkd
- 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)*
- Application *(Application Code Container)*
@@ -691,14 +691,31 @@ eval $(docker-machine env)
```bash
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)*
**On Linux:**
Your IP Address is `127.0.0.1`
> **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.

View File

@@ -11,14 +11,16 @@ ENV LC_CTYPE=UTF-8
ENV LANG=en_US.UTF-8
ENV TERM xterm
# Install "software-properties-common" (for add-apt-repository) and add the "PHP 7" ppa
RUN apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:ondrej/php
# Install "software-properties-common" (for the "add-apt-repository")
RUN apt-get update && apt-get install -y \
software-properties-common
# Install PHP-CLI 7 and some useful Tools
RUN apt-get update \
&& apt-get install -y \
# Add the "PHP 7" ppa
RUN add-apt-repository -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-common \
php7.0-curl \
@@ -27,7 +29,11 @@ RUN apt-get update \
php7.0-mbstring \
php7.0-mcrypt \
php7.0-mysql \
php7.0-sqlite \
php7.0-sqlite3 \
php7.0-zip \
sqlite3 \
libsqlite3-dev \
git \
curl \
vim \
@@ -36,6 +42,20 @@ RUN apt-get update \
nodejs-dev \
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
RUN curl -s http://getcomposer.org/installer | php \
&& 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" \
&& 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
RUN . ~/.bashrc
# Clean up
RUN apt-get autoclean && apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /var/www/laravel