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 ## 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 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 exec -u web test /bin/bash`
docker-compose -f docker-compose.dev.yml restart web` docker-compose -f docker-compose.dev.yml restart web`
docker-compose -f docker-compose.dev.yml exec -u web test bundle exec rspec` 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 config set path '/var/bundle' && \
bundle install --jobs 8 bundle install --jobs 8
USER root
CMD ["/var/www/bin/script/entry.sh"] CMD ["/var/www/bin/script/entry.sh"]

View file

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