-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add development environment with docker and fig
- Loading branch information
Showing
8 changed files
with
84 additions
and
4 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,11 @@ | ||
.git | ||
|
||
# Ignore bundler config. | ||
.bundle | ||
|
||
# Ignore all logfiles and tempfiles. | ||
log/*.log | ||
tmp/* | ||
|
||
# our data dir | ||
data/* |
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,13 @@ | ||
FROM ruby:2.1.5 | ||
|
||
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev postgresql-client nodejs poppler-utils advancecomp gifsicle jhead jpegoptim libjpeg-progs optipng pngcrush pngquant | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
ADD Gemfile /app/Gemfile | ||
ADD Gemfile.lock /app/Gemfile.lock | ||
RUN bundle install | ||
|
||
ADD . /app | ||
|
||
EXPOSE 5000 |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
web: bundle exec rails server -p $PORT | ||
web: bundle exec rails server -b 0.0.0.0 -p $PORT | ||
worker: TERM_CHILD=1 QUEUE=* bundle exec rake environment resque:work |
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,38 @@ | ||
web: | ||
build: . | ||
command: foreman start | ||
ports: | ||
- "5000:5000" | ||
volumes: | ||
- .:/app | ||
links: | ||
- db:database | ||
- redis | ||
- tika | ||
- elasticsearch | ||
environment: | ||
ELASTICSEARCH_URL: http://elasticsearch:9200/ | ||
REDIS_URL: redis://redis:6379 | ||
DATABASE_URL: postgres://kleineanfragen:@database/kleineanfragen | ||
TIKA_SERVER_URL: http://tika:9998/tika | ||
|
||
db: | ||
image: postgres | ||
environment: | ||
POSTGRES_USER: kleineanfragen | ||
# ports: | ||
# - "5432:5432" | ||
|
||
redis: | ||
image: redis | ||
|
||
## FIXME: use matts image when released | ||
tika: | ||
image: logicalspark/docker-tikaserver | ||
|
||
elasticsearch: | ||
image: dockerfile/elasticsearch | ||
# ports: | ||
# - "9200:9200" | ||
|
||
## FIXME: add image for nomenklatura |