Skip to content

Commit

Permalink
fix(docker): added proper dockerfile and docker-compose. Fixes MEMB-613
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Peshkov committed Sep 12, 2019
1 parent 24e01e9 commit 96167d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
image: ubuntu-1604:201903-01
steps:
- checkout
- run: (cd docker/oms-events/ && docker build --tag aegee/oms-events:$(node -p "require('../../package.json').version") --tag aegee/oms-events:latest -f Dockerfile.dev .)
- run: docker build --tag aegee/oms-events:$(node -p "require('./package.json').version") --tag aegee/oms-events:latest -f docker/oms-events/Dockerfile.dev .
- run: docker login --username $DOCKER_LOGIN --password $DOCKER_PASSWORD
- run: docker push aegee/oms-events:$(node -p "require('./package.json').version")
- run: docker push aegee/oms-events:latest
Expand Down
8 changes: 4 additions & 4 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ services:
volumes:
- postgres-events:/var/lib/postgresql/data
expose:
- 5432
- "5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${PW_POSTGRES}

oms-events:
restart: on-failure
build:
context: ./$PATH_OMS_EVENTS/oms-events
dockerfile: ./Dockerfile.dev
context: ./$PATH_OMS_EVENTS/..
dockerfile: ./docker/oms-events/Dockerfile.dev
image: aegee/oms-events:dev
volumes:
- oms-events-media:/usr/app/media
Expand All @@ -26,7 +26,7 @@ services:
links:
- postgres-oms-events
expose:
- 8084
- "8084"
environment:
BUGSNAG_KEY: 6f6a7c00507fceca0818c48405dbd2a6
PG_PASSWORD: ${PW_POSTGRES}
Expand Down
3 changes: 2 additions & 1 deletion docker/oms-events/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ RUN mkdir -p /usr/app/src \
&& mkdir -p /usr/app/media \
&& mkdir -p /usr/app/scripts

ADD ./bootstrap.sh /usr/app/scripts/bootstrap.sh
COPY ./docker/oms-events/bootstrap.sh /usr/app/scripts/bootstrap.sh
COPY . /usr/app/src

RUN chown -R node:node /usr/app

Expand Down

0 comments on commit 96167d1

Please sign in to comment.