Skip to content

Commit

Permalink
added docker files to this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchojaf committed May 27, 2017
1 parent 35dad9b commit 8690bd9
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 7 deletions.
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM ruby:2.2.1

# 1. Install dependencies
RUN set -x; \
apt-get update \
&& apt-get install -y --no-install-recommends \
openssh-server \
zlib1g-dev \
build-essential \
libssl-dev \
libreadline-dev \
libyaml-dev \
libsqlite3-dev \
sqlite3 \
libxml2-dev \
libxslt1-dev \
libcurl4-openssl-dev \
python-software-properties \
libffi-dev \
nodejs \
git \
imagemagick \
libmagickwand-dev

# 2. Clone and install cenit
RUN git clone https://github.com/cenit-io/cenit.git /var/www/cenit
RUN /var/www/cenit/bin/bundle install
WORKDIR /var/www/cenit
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ An example of integration data flow (Fancy <=> Shipstation):

After [install docker compose](https://docs.docker.com/compose/install)

Clone the docker repo for Cenit and move to the folder.

```batch
git clone https://github.com/cenit-io/cenit_docker.git
cd cenit_docker
```

Then run docker compose:

```batch
Expand Down
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
cenit:
environment:
- DB_PORT=mongodb
- RABBITMQ_BIGWIG_TX_URL=amqp://cenit_rabbit:cenit_rabbit@rabbitmq/cenit_rabbit_vhost
build: .
command: /usr/bin/mongod
command: rails server -p 3000 -b '0.0.0.0'
ports:
- "3000:3000"
links:
- mongodb
- rabbitmq

rabbitmq:
image: rabbitmq
environment:
RABBITMQ_DEFAULT_PASS: cenit_rabbit
RABBITMQ_DEFAULT_USER: cenit_rabbit
RABBITMQ_DEFAULT_VHOST: cenit_rabbit_vhost

mongodb:
image: mongo:3.0.2

0 comments on commit 8690bd9

Please sign in to comment.