Fix dev env setup

This commit is contained in:
Ari Timonen 2020-03-22 15:55:27 +02:00
parent f17d788bf6
commit a5a627dce4
3 changed files with 9 additions and 6 deletions

View file

@ -29,7 +29,9 @@ Just run and open http://localhost:4000/
## Handy commands
docker-compose -f docker-compose.dev.yml exec -u root web /bin/bash`
docker-compose -f docker-compose.dev.yml exec -u web web /bin/bash`
docker-compose -f docker-compose.dev.yml exec -u root test /bin/bash`
docker-compose -f docker-compose.dev.yml exec -u web test /bin/bash`
docker-compose -f docker-compose.dev.yml restart web`
docker-compose -f docker-compose.dev.yml exec -u web test bundle exec rspec`

View file

@ -29,5 +29,4 @@ RUN bundle config github.https true && \
bundle config set path '/var/bundle' && \
bundle install --jobs 8
USER root
CMD ["/var/www/bin/script/entry.sh"]

View file

@ -2,16 +2,17 @@ version: "3"
services:
web:
# Debug
stdin_open: true
command: /bin/bash
command: "bundle exec puma"
tty: true
stdin_open: true
# Debug
# command: /bin/bash
container_name: ensl_dev
build:
context: ./
dockerfile: Dockerfile.dev
args:
buildno: 1
# args:
# buildno: 1
volumes:
- ".:/var/www/"
ports:
@ -99,5 +100,6 @@ services:
memcached:
image: memcached:latest
#redis:
# image: redis