2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-12-27 19:54:56 +00:00
Commit Graph

221 Commits

Author SHA1 Message Date
Lev Vereshchagin
8b4dfce4f0 chore(lint): Run isort 2021-12-10 11:53:00 +03:00
Lev Vereshchagin
f8b7b7af05 chore(lint): Run black 2021-12-10 11:52:40 +03:00
Lev Vereshchagin
c4772bc5b5 chore(lint): Run pyupgrade 2021-12-10 11:51:47 +03:00
Lev Vereshchagin
3e4e66769b chore(lint): Run end-of-file-fixer 2021-12-10 11:51:11 +03:00
Lev Vereshchagin
9f0d602c72 chore(lint): Fix trailing-whitespace 2021-12-10 11:50:39 +03:00
Lev
6378473c43
fix(bench): Set BENCH_DEVELOPER env var in bashrc instead of Dockerfile (#598) 2021-12-05 16:45:50 +05:30
Lev
9b49391dbb
feat(bench): Don't show editable-bench warnings (#593) 2021-12-02 20:36:07 +05:30
Revant Nandgaonkar
0af1302485
fix: install py 3.7 using pyenv (#590)
* fix: install py 3.7 using pyenv

* fix: set pyenv global versions

* refactor: cleaup code
2021-11-30 16:03:01 +05:30
Revant Nandgaonkar
3295c8070e fix: change unpriviliged nginx port from 80 to 8080 2021-11-21 16:23:32 +05:30
Revant Nandgaonkar
9bfb3abde4 ci: fix erpnext nginx build permissions 2021-11-19 22:02:50 +05:30
Revant Nandgaonkar
593dfe444a ci: fix erpnext build 2021-11-19 20:41:23 +05:30
Chinmay Pai
abe6d670c4
Merge pull request #570 from revant/unprivileged-nginx 2021-11-19 09:05:57 +05:30
Revant Nandgaonkar
c04edf8b6b fix(frappe-nginx): install python2 for v12 builds 2021-11-18 23:55:02 +05:30
Revant Nandgaonkar
8634460315 fix(frappe-nginx): create /assets dir 2021-11-18 22:48:22 +05:30
Revant Nandgaonkar
ef31d8e025 feat(frappe-nginx): use nginxinc/nginx-unprivileged image 2021-11-18 22:23:54 +05:30
Meradoch
2fa61e9868 Proposed changes to fix permission errors with mkdir 2021-11-18 18:40:30 +03:00
Meradoch
ccc3fc2707
Fix permission denied error 2021-11-18 14:58:25 +03:00
Lev
2c97ffd579
fix: ERPNext build (#558)
* fix(erpnext-nginx): Install recommended apt packages, set DEBIAN_FRONTEND=noninteractive

* Revert "fix(erpnext-nginx): Install recommended apt packages, set DEBIAN_FRONTEND=noninteractive"

This reverts commit 652481175d.

* fix(erpnext-worker): Install gcc
2021-11-10 11:24:47 +03:00
Lev
7c157aa487
refactor: Dockerfiles (#555)
* refactor(frappe-worker): Dockerfile

* fix(frappe-worker): Cloning frappe repo

* refactor(frappe-nginx): Dockerfile

* refactor(erpnext-nginx): Dockerfile

* chore(frappe-worker): Add space in Dockerfile

* refactor(bench): Dockerfile

* refactor(frappe-socketio): Dockerfile

* ci(Test): Add `workflow_dispatch` trigger

* fix(bench): Uncomment missing package

* fix(bench): Replace legacy `libmariadbclient-dev` with `libmariadb-dev`

* refactor(erpnext-nginx): Install script

- Remove repetitive code
- Don't explicitly install production deps (they are installed via plain `yarn` with dev deps)
- Don't write to lockfiles

* fix(erpnext-nginx): use -e flag, fix installation

* fix(erpnext-nginx): Don't install unused wget

* fix(frappe-nginx): Get newest certificates

* fix: Install ca-certificates on erpnext-nginx instead of frappe-nginx

* trigger ci

* ci(test): Fix trigger duplicate

* chore: Fix linting
2021-11-10 04:43:46 +05:30
Lev
5a38d66a70 chore: Fix linting 2021-11-09 16:54:02 +03:00
Lev
a2db23e68e fix(frappe-worker): Drop flags 2021-11-09 16:49:40 +03:00
Lev
5254e2aad3
fix: Improve CI, fix builds (#554)
* ci(Test): Add `workflow_dispatch` trigger

* ci(Test): Build and run on push and pr

* test: Set failfast, remove ERPNext reference

* test: Reveal .env file for logs

* ci(Test): Rename step

* ci(Test): Fix git tag

* test: Add -x flag for debugging

* test: Fix failing test

* ci(Test): Check if built images are used

* ci(Test): Configure trigger paths, don't build on schedule

* test: Remove bug

* ci: Build and test stable images on PR

* fix(frappe-nginx): Get back to `ls` from `find`

* check if test passes with erpnext images

* fix(frappe-worker): Default sites in backup command

* get integration test changes back

* chore: Fix linting
2021-11-09 15:15:33 +03:00
Lev
f74f730b5e
chore: Fix lint issues (#553)
* ci(Lint): Temporarily disable branch contraint

* chore(erpnext-nginx): Fix linting

* chore: Fix linting issues

* ci(Lint): Add -x flag

* ci(Lint): Fix push trigger

* chore: Fix linting and formatting

* fix: Gunicorn server start

* chore(frappe-worker): Fix linting

* chore(frappe-nginx): Fix linting

* fix(erpnext-nginx): App installation

* fix(erpnext-nginx): App installation

* refactor(frappe-nginx): Use `find` instead of `ls`
2021-11-09 13:05:29 +03:00
Revant Nandgaonkar
358293afc9
Merge pull request #549 from vrslev/refactor-worker-commands
refactor(frappe-worker): Replace basic commands with bench
2021-11-09 04:12:58 +05:30
Lev
e4df6e5aec refactor(worker): Replace basic commands with bench 2021-11-08 16:10:26 +03:00
Lev
457ecc513b fix(frappe-socketio): Remove dead doctor command 2021-11-08 14:51:21 +03:00
Lev
9d41a6d24e Fix Python version for v12 2021-11-06 21:26:15 +03:00
Revant Nandgaonkar
8ad84719ea
Merge pull request #544 from vrslev/improve-tests-and-fix-builds
Fix builds and tests
2021-11-06 17:10:33 +05:30
Lev
c808ad1767 chore: Move files from build/common 2021-11-05 20:00:11 +03:00
Lev
d2b18a3b48 update 2021-11-05 18:58:02 +03:00
Lev
a4c115f96d build: Update Python from 3.7 to 3.9; Debian from 10 to 11 2021-11-03 16:48:01 +03:00
dt
63da01c702
fix: Add missing packages for frappe:develop 2021-11-01 10:49:45 +03:00
Revant Nandgaonkar
48e9947580 fix: empty continuation line 2021-08-10 21:33:08 +05:30
Peter Dave Hello
428b8abffe Make sure apt lists cleaned up in Dockerfile 2021-08-10 19:16:46 +08:00
Peter Dave Hello
08442253c8
Set git clone depth to 1 in build/bench/Dockerfile
Looks like it's done in the other Dockerfiles
2021-08-09 16:13:05 +08:00
Chinmay Pai
577f93a3b7
fix: export DB_PORT environment variable 2021-06-24 17:37:15 +05:30
Revant Nandgaonkar
86a2fcc1fa ci: check shell script format 2021-06-24 16:54:17 +05:30
pratikbalar
391ee4c74e refactor: export db host to [skip travis]
- to pass shellcheck rule SC2034
2021-06-23 12:26:11 +05:30
pratikbalar
6c8c1c01be refactor: fix permission issue 2021-06-23 09:58:14 +05:30
pratikbalar
12eb5c92e4 refactor: bash scripts [stip travis]
- shellchecke and shfmt checked and formatted
- indentation 2 spaces
- redirect errors to stderr
- short if where possible
- add function string to clarify visuaally identify its a funtion
- make [ ... ] to [[ ... ]]
- use == for comparision
- use cat based notes
- remove unecessary spaces
- double quotes where needed
2021-06-23 09:13:24 +05:30
pratikbalar
e6a5209001 refactor: style as per google style guide (tried)
- https://google.github.io/styleguide/
2021-06-22 15:44:25 +05:30
pratikbalar
7f26399ebc refactor: Change function name, wide support 2021-06-21 23:02:00 +05:30
pratikbalar
3d67150229 refactor: add function for redis
- Style it as per google shell  developing guide
2021-06-21 22:56:05 +05:30
Pratik
4ce63ced9a
refactor: short bash flags insted of verbose style
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
2021-06-21 22:32:37 +05:30
Pratik
c19158cd76
refactor: remove exports, add bash flags healthchecks
Add bash flags and removed 
- errexit - better for fast fail of healthchecks
- allexport - export vars by default
- nolog - not to add in history (optional)
2021-06-21 18:19:46 +05:30
Revant Nandgaonkar
46920dd0be feat: allow custom frappe branch during asset image build 2021-06-08 16:37:07 +05:30
Revant Nandgaonkar
b3ac8383fe fix(frappe-nginx): sync assets path for all versions 2021-05-21 18:11:00 +05:30
Revant Nandgaonkar
c6da8a1d98 feat: improve and upgrade build
use nodejs v14
allow build args to pass repo and branch
2021-05-21 14:30:55 +05:30
Karan Sharma
147c6b3a97 feat: Add a flag to skip generating default NGINX config 2021-03-26 21:06:27 +05:30
Karan Sharma
c2ea3feae4 feat: Add Site name and Host as env variables for NGINX config template 2021-03-26 19:05:51 +05:30