GithubHelp home page GithubHelp logo

yst726 / frappe_docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frappe/frappe_docker

0.0 0.0 0.0 8.47 MB

Docker image for frappe-bench

License: MIT License

Dockerfile 35.27% Shell 64.73%

frappe_docker's Introduction

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

frappe_docker's People

Contributors

vishalseshagiri avatar thunderbottom avatar chabad360 avatar codingcoffee avatar arwema avatar carlos22 avatar fromthestone avatar williamjmorenor avatar reilly3000 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.