Giter VIP home page Giter VIP logo

docker-erpnext's Introduction

ERPNext (Single Container)

Note

This project for experimental use only. DISCLAIMER : USE AT YOUR OWN RISK!


This Dockerfile build latest version of ERPNext using install.py script that fetched from ERPNext repository.


Build

Clone this repo to your local machine and change the default password to your desired MariaDB and Administrator password in Dockerfile

MARIADB_PASSWORD=12345678 \
ADMIN_PASSWORD=12345678 \

leave everything else as it is and save it, then build using this command.

docker build -t erpnext .

Docker Image

You can pull automatic build ERPNext image from Docker Hub

docker pull lukptr/erpnext7

note: default password in this images is 12345678 you may change it later once inside container's shell.


Run

Run using this command if you build yourself

docker run -d --name erpnext  -p 80:80 erpnext

or this if you pull from Docker Hub

docker run -d --name erpnext  -p 80:80 lukptr/erpnext7

Usage

Use this command to get inside container's shell

docker exec -it erpnext bash

Once inside the container's shell, you can run bench command as usual e.g

bench update
bench migrate
bench backup

Restore database

Add $PWD/ before sites/

bench --force restore $PWD/sites/site1.local/private/backups/database.sql.gz

License

MIT License (see LICENSE)

The Documentation is licensed as Creative Commons (CC-BY-SA-3.0) and the copyright is owned by Ridho Sribumi.


Trademark

The brand name ERPNext and the logo are trademarks of Frappe Technologies Pvt. Ltd.

Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries. Docker, Inc. and other parties may also have trademark rights in other terms used herein.

docker-erpnext's People

Contributors

lukptr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-erpnext's Issues

bench update error

Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in
load_entry_point('bench', 'console_scripts', 'bench')()
File "/home/frappe/.bench/bench/cli.py", line 41, in cli
bench_command()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/frappe/.bench/bench/commands/update.py", line 43, in switch_to_branch
switch_to_branch(branch=branch, apps=list(apps), upgrade=upgrade)
File "/home/frappe/.bench/bench/app.py", line 417, in switch_to_branch
switch_branch(branch, apps=apps, bench_path=bench_path, upgrade=upgrade)
File "/home/frappe/.bench/bench/app.py", line 389, in switch_branch
version_upgrade = is_version_upgrade(app=app, bench_path=bench_path, branch=branch)
File "/home/frappe/.bench/bench/app.py", line 283, in is_version_upgrade
raise InvalidBranchException("Specified branch of app {0} is not in upstream".format(app))
bench.app.InvalidBranchException: Specified branch of app foundation is not in upstream

How do you trigger automated Builds?

How to trigger automated builds on docker hub, by using this repository? Since this repository is not been modified, the docker hub is not getting the trigger for auto-build. Please advise.

Error at install

When I'm running the container, at the build, I have the following error :

Traceback (most recent call last):
  File "install.py", line 417, in <module>
    install_bench(args)
  File "install.py", line 122, in install_bench
    run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
  File "install.py", line 338, in run_playbook
    success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'site.yml', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=frappe']' returned non-zero exit status 2
remote: The command '/bin/sh -c wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py && sed -i "s/'', ''/'$MYSQL_PASSWORD', '$ADMIN_PASSWORD'/g" install.py &&     apt update && python install.py --production --user $FRAPPE_USER' returned a non-zero code: 1

I actually don't know if this is related to you or to the bench script. But if you decide that this is not the part you own, I'll put it on the bench repo.

I am building the container with dokku. However it should not be a problem as it support building from Dockerfile

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.