This commit is contained in:
chabad360 2018-08-01 12:48:21 -07:00
parent 6e8bb9a142
commit ddede9b5a4
2 changed files with 3 additions and 2 deletions

View file

@ -11,7 +11,7 @@ install:
- docker-compose build
- docker-compose up -d
- docker exec -it -u root frappe bash -c "cd /home/frappe && chown -R frappe:frappe ./*"
- docker exec -i frappe bash -c "cd .. && bench init frappe-bench --skip-bench-mkdir --skip-redis-config-generation && cd frappe-bench"
- docker exec -i frappe bash -c "cd .. && bench init frappe-bench --ignore-exist --skip-redis-config-generation && cd frappe-bench"
- docker exec -i frappe bash -c "mv Procfile_docker Procfile && mv sites/common_site_config_docker.json sites/common_site_config.json"
- docker exec -i frappe bash -c "bench new-site site1.local"
- docker exec -i -u root frappe bash -c "echo 127.0.0.1 site1.local >> /etc/hosts"

View file

@ -1,4 +1,4 @@

#bench Dockerfile
FROM ubuntu:16.04
@ -38,6 +38,7 @@ RUN pip install -e bench-repo
RUN apt-get install -y libmysqlclient-dev mariadb-client mariadb-common
RUN npm install -g yarn
RUN chown -R frappe:frappe /home/frappe/*
ENV PATH /home/frappe/.local/bin
USER frappe
WORKDIR /home/frappe/frappe-bench