Skip to content

Commit

Permalink
add drupal
Browse files Browse the repository at this point in the history
  • Loading branch information
vimagick committed Mar 5, 2016
1 parent dc5d99d commit 73be3c8
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 16 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ dockerfiles

- [x] centurylink/watchtower
- [x] drone/drone
- [x] drupal
- [x] ghost
- [x] gitlab/gitlab-ce
- [ ] gliderlabs/logspout
Expand Down
33 changes: 33 additions & 0 deletions drupal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
drupal
======

```
drupal:
image: drupal
ports:
- "8888:80"
links:
- mysql
restart: always
mysql:
image: mysql
ports:
- "127.0.0.1:3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=drupal
restart: always
```

```
cd ~/fig/drupal/
docker-compose up -d mysql
sleep 30
docker-compose up -d drupal
docker cp drupal_mysql_1:/usr/bin/mysql /usr/local/bin/
mysql -h127.0.0.1 -P3306 -uroot -proot drupal
firefox http://127.0.0.1:8888
```
7 changes: 7 additions & 0 deletions drupal/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
drupal:
image: drupal
ports:
- "8888:80"
volumes:
- /var/www/html/sites
restart: always
15 changes: 7 additions & 8 deletions h2o/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ ENV H2O_VER 1.7.0
ENV H2O_URL https://github.com/h2o/h2o/archive/v${H2O_VER}.tar.gz
ENV H2O_DIR h2o-${H2O_VER}

RUN apk add -U build-base \
cmake \
curl \
linux-headers \
zlib-dev \
RUN set -xe \
&& apk add -U build-base \
cmake \
curl \
linux-headers \
zlib-dev \
&& curl -sSL ${H2O_URL} | tar xz \
&& cd ${H2O_DIR} \
&& cmake -DWITH_BUNDLED_SSL=on . \
Expand All @@ -28,9 +29,7 @@ RUN apk add -U build-base \
&& rm -rf /var/cache/apk/*

COPY h2o.conf /etc/

WORKDIR /var/www/html

EXPOSE 80 443

EXPOSE 80
CMD ["h2o", "-c", "/etc/h2o.conf"]
15 changes: 7 additions & 8 deletions h2o/arm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ ENV H2O_VER 1.7.0
ENV H2O_URL https://github.com/h2o/h2o/archive/v${H2O_VER}.tar.gz
ENV H2O_DIR h2o-${H2O_VER}

RUN apk add -U build-base \
cmake \
curl \
linux-headers \
zlib-dev \
RUN set -xe \
&& apk add -U build-base \
cmake \
curl \
linux-headers \
zlib-dev \
&& curl -sSL ${H2O_URL} | tar xz \
&& cd ${H2O_DIR} \
&& cmake -DWITH_BUNDLED_SSL=on . \
Expand All @@ -28,9 +29,7 @@ RUN apk add -U build-base \
&& rm -rf /var/cache/apk/*

COPY h2o.conf /etc/

WORKDIR /var/www/html

EXPOSE 80 443

EXPOSE 80
CMD ["h2o", "-c", "/etc/h2o.conf"]
3 changes: 3 additions & 0 deletions rtmp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ server:

client:
image: vimagick/rtmp-client-arm
# command: ffmpeg -i /dev/video0 -vf "hflip,vflip" -f flv rtmp://cctv.datageek.info/live/webcam
devices:
- /dev/video0:/dev/video0
environment:
- RTMP_URI=rtmp://datageek.info/live/webcam
restart: always
```
> You can run customized `ffmpeg` command.

## Server

```
Expand Down

0 comments on commit 73be3c8

Please sign in to comment.