-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: Add dev Docker image (#1425)
* Switch to recent rebar3 build for erlang/rebar3#1326 * Add docker-compose.yml * Update docs
- Loading branch information
Showing
6 changed files
with
106 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM alpine:3.4 | ||
|
||
COPY docker/zotonic.config /etc/zotonic/zotonic.config | ||
COPY docker/erlang.config.sed /opt/zotonic/docker/erlang.config.sed | ||
COPY priv/erlang.config.in /opt/zotonic/priv/erlang.config.in | ||
|
||
WORKDIR /opt/zotonic | ||
|
||
RUN sed -f docker/erlang.config.sed priv/erlang.config.in > /etc/zotonic/erlang.config | ||
|
||
RUN apk add --no-cache ca-certificates bash curl make gcc musl-dev g++ bsd-compat-headers git imagemagick inotify-tools wget \ | ||
&& apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ \ | ||
erlang erlang-inets erlang-compiler erlang-crypto erlang-mnesia erlang-ssl erlang-stdlib erlang-public-key erlang-tools erlang-dev erlang-asn1 erlang-syntax-tools erlang-eunit erlang-parsetools erlang-snmp erlang-sasl erlang-xmerl erlang-erl-interface | ||
|
||
VOLUME /opt/zotonic | ||
VOLUME /etc/zotonic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '2' | ||
|
||
services: | ||
postgres: | ||
image: postgres:9.5 | ||
environment: | ||
POSTGRES_USER: zotonic | ||
volumes: | ||
- ./data:/data | ||
working_dir: /data | ||
|
||
zotonic: | ||
image: zotonic/zotonic-dev | ||
privileged: true | ||
links: | ||
- postgres | ||
volumes: | ||
- ./:/opt/zotonic | ||
ports: | ||
- 80:8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters