1 Star 0 Fork 1

gugobi / frappe_docker

forked from liuyibin23 / frappe_docker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Frappe on Docker

Build Status

This is a repo designed to aide setting up frappe/ERPNext on docker.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Unfortunately, this container is not curently suited for a production environment (but we're working towards that goal!).

Build the container and initialize the bench

Note: These instructions assume you have both Docker and Docker Compose installed on your system.

  1. Clone this repo and change your working directory to it:

    git clone https://github.com/frappe/frappe_docker.git
    cd frappe_docker/
  2. Build and start the container, and initialize the bench:

    ./dbench setup docker
    ./dbench init

    Note: This will take a while, as docker will now build the container.

  3. Add a new site and start Frappe:

    ./dbench new-site site1.local
    ./dbench setup hosts
    ./dbench start
  4. Use Frappe:
    Open your browser to localhost:8000/login. Then login using the username Administrator and the password admin.

Basic Usage of ./dbench

IMPORTANT: Always make sure that your current directory is the root directory of the repo (i.e. frappe_docker/)

  • ./dbench: Launches you into an interactive shell in the container as the user frappe.

  • ./dbench setup docker [ stop | down ]: Starts and builds the docker containers using docker-compose up -d.

    • stop: Stops the containers with docker-compose stop.
    • down: Deletes the containers and the coresponding volumes with docker-compose down.
  • ./dbench setup hosts: Adds all sites to the containers hosts file.
    Note: Run this after you've added a new site to avoid errors.

  • ./dbench -c frappe | root <command to run>: Runs a command in the container, as the selected user.

  • ./dbench -h: Shows this help message.

  • ./dbench <bench command>: Runs a command in bench (i.e. Running ./dbench new-site site1.local, will run bench new-site site1.local in the container).

For More Info

For more info on building this docker container refer to this Wiki

Contributing

Feel free to contribute to this project and make it better.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

MIT License Copyright (c) 2017 Frappe Technologies Pvt. Ltd. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Docker image for frappe-bench 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/gugobi/frappe_docker.git
git@gitee.com:gugobi/frappe_docker.git
gugobi
frappe_docker
frappe_docker
master

搜索帮助