-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18855c5
commit 7cd8491
Showing
6 changed files
with
107 additions
and
32 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
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,47 @@ | ||
version: '3.7' | ||
|
||
x-app-args: &app-args | ||
APP_BASE: ${APP_BASE} | ||
BUNDLE_VERSION: ${BUNDLE_VERSION} | ||
RUBY_VERSION: ${RUBY_VERSION} | ||
BUNDLE_WITHOUT: production | ||
|
||
x-default-environment: &default-environment | ||
HERE_APP_CODE: ${HERE_APP_CODE} | ||
HERE_APP_ID: ${HERE_APP_ID} | ||
RAVEN_DSN: localhost | ||
REDIS_COUNT_HOST: redis-count | ||
REDIS_HOST: redis-cache | ||
|
||
services: | ||
redis-cache: | ||
image: redis:${REDIS_VERSION:-6.2.5-alpine} | ||
volumes: | ||
- ./redis:/data | ||
hostname: redis-cache | ||
|
||
redis-count: | ||
image: redis:${REDIS_VERSION:-6.2.5-alpine} | ||
volumes: | ||
- ./redis-count:/data | ||
hostname: redis-count | ||
command: redis-server --appendonly yes | ||
|
||
main: | ||
build: | ||
args: | ||
<<: *app-args | ||
context: . | ||
dockerfile: docker/dev/Dockerfile | ||
image: dev.example.com/mapotempo/mt-router | ||
volumes: | ||
- ./:/srv/app/ | ||
- app_cache_vendor:/srv/app/vendor | ||
environment: | ||
<<: *default-environment | ||
ports: | ||
- "4899:4899" | ||
tty: true | ||
|
||
volumes: | ||
app_cache_vendor: |
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,21 @@ | ||
# Take car of the latest version containing bundler 1.17 | ||
FROM ruby:2.5 | ||
|
||
ARG BUNDLE_WITHOUT="production" | ||
|
||
# Set correct environment variables. | ||
ENV LANG C.UTF-8 | ||
ENV HOME /root | ||
|
||
|
||
ENV REDIS_HOST redis-cache | ||
|
||
ADD . /srv/app | ||
WORKDIR /srv/app | ||
|
||
# Install app | ||
# because of Certificate verification failed | ||
RUN apt update && apt upgrade -y | ||
RUN apt-get install -y git build-essential zlib1g-dev zlib1g > /dev/null | ||
RUN gem install bundler --version 1.17.3 | ||
RUN bundle install --path vendor/bundle --full-index --without ${BUNDLE_WITHOUT} |