Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Dec 15, 2018
1 parent f6be156 commit b187f9f
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 40 deletions.
File renamed without changes
28 changes: 0 additions & 28 deletions Dockerfile

This file was deleted.

5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build-sandbox:
docker build -t planette/nette-sandbox sandbox

build-web-project:
docker build -t planette/nette-web-project web-project
19 changes: 7 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Nette Sandbox in Docker
# Nette in Docker

## Protip

Expand All @@ -13,16 +13,11 @@ There are many docker images that could help you:
- [dockette/ci](https://github.com/dockette/ci)
- [dockette/devstack](https://github.com/dockette/devstack)

## Images

## Usage
| Description | Docker image | Github |
|---------------|------------------------|----------|
| Nette Sandbox | planette/nette-sandbox | [nette/sandbox](https://github.com/nette/sandbox) |
| Nette Web Project | planette/nette-web-project | [nette/sandbox](https://github.com/nette/web-project) |

You have to download and run our special docker image via following command.

```bash
docker run -it --rm -p 8000:80 fonette/sandbox
```

Now you can open `http://localhost:8000` in your browser.


![](https://raw.githubusercontent.com/FriendsOfNette/docker-sandbox/master/sandbox.png "Nette Sandbox")
![](https://raw.githubusercontent.com/planette/dockerfiles/master/.docs/sandbox.png "Nette Sandbox")
29 changes: 29 additions & 0 deletions sandbox/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM debian:stretch

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y wget curl apt-transport-https ca-certificates unzip && \
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list && \
apt-get update && apt-get install -y \
curl \
git \
php7.3-cli \
php7.3-mbstring \
php7.3-intl \
php7.3-json \
php7.3-gd \
php7.3-xml \
php7.3-sqlite3 \
php7.3-zip \
php7.3-tokenizer && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
cd /srv && \
composer create-project nette/sandbox /srv && \
apt-get remove -y curl wget git && \
apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*

WORKDIR /srv

CMD php -S 0.0.0.0:80 -t /srv/www
21 changes: 21 additions & 0 deletions sandbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Nette Sandbox in Docker

## Build

You can build this image locally, using:

```
docker build -t planette/nette-sandbox .
```

## Usage

```
docker run -it --rm -p 8000:80 planette/nette-sandbox
```

Now you can open `http://localhost:8000` in your browser.

## Demo

![](https://raw.githubusercontent.com/planette/dockerfiles/master/.docs/sandbox.png "Nette Sandbox")
29 changes: 29 additions & 0 deletions web-project/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM debian:stretch

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y wget curl apt-transport-https ca-certificates unzip && \
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list && \
apt-get update && apt-get install -y \
curl \
git \
php7.3-cli \
php7.3-mbstring \
php7.3-intl \
php7.3-json \
php7.3-gd \
php7.3-xml \
php7.3-sqlite3 \
php7.3-zip \
php7.3-tokenizer && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
cd /srv && \
composer create-project nette/web-project /srv && \
apt-get remove -y curl wget git && \
apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*

WORKDIR /srv

CMD php -S 0.0.0.0:80 -t /srv/www
21 changes: 21 additions & 0 deletions web-project/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Nette Web Project in Docker

## Build

You can build this image locally, using:

```
docker build -t planette/nette-web-project .
```

## Usage

```
docker run -it --rm -p 8000:80 planette/nette-web-project
```

Now you can open `http://localhost:8000` in your browser.

## Demo

![](https://raw.githubusercontent.com/planette/dockerfiles/master/.docs/sandbox.png "Nette Sandbox")

0 comments on commit b187f9f

Please sign in to comment.