2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-13 16:56:33 +00:00

feat(easy_install): add support for debian 10

* Easy Installer did not support Debian 10 Buster, so I changed the playbooks to support Debian 10.
* Related Issue: #831
* Tested in a newly deployed Debian 10 Buster running on KVM and in a brand new deployed LXC Container (--container) also running fine.
This commit is contained in:
Marco Gabriel 2019-12-15 05:49:34 +01:00 committed by Chinmay Pai
parent 75ffa0325e
commit 72c70b23bf
3 changed files with 28 additions and 7 deletions

View File

@ -142,7 +142,7 @@ def install_bench(args):
shutil.rmtree(tmp_bench_repo)
def check_distribution_compatibility():
supported_dists = {'ubuntu': [14, 15, 16, 18, 19], 'debian': [8, 9],
supported_dists = {'ubuntu': [14, 15, 16, 18, 19], 'debian': [8, 9, 10],
'centos': [7], 'macos': [10.9, 10.10, 10.11, 10.12]}
dist_name, dist_version = get_distribution_info()
@ -389,7 +389,7 @@ def parse_commandline_args():
# set passwords
parser.add_argument('--mysql-root-password', dest='mysql_root_password', help='Set mysql root password')
parser.add_argument('--mariadb-version', dest='mariadb_version', default='10.2', help='Specify mariadb version')
parser.add_argument('--mariadb-version', dest='mariadb_version', default='10.4', help='Specify mariadb version')
parser.add_argument('--admin-password', dest='admin_password', help='Set admin password')
parser.add_argument('--bench-name', dest='bench_name', help='Create bench with specified name. Default name is frappe-bench')

View File

@ -12,18 +12,37 @@
- tk8.5-dev
when: ansible_distribution_version | version_compare('8', 'lt')
- name: install pillow prerequisites for Debian >= 8
- name: install pillow prerequisites for Debian 8
apt: pkg={{ item }} state=present
with_items:
- libjpeg62-turbo-dev
- libtiff5-dev
- tcl8.5-dev
- tk8.5-dev
when: ansible_distribution_version | version_compare('8', 'ge')
when: ansible_distribution_version | version_compare('8', 'eq')
- name: install pillow prerequisites for Debian 9
apt: pkg={{ item }} state=present
with_items:
- libjpeg62-turbo-dev
- libtiff5-dev
- tcl8.5-dev
- tk8.5-dev
when: ansible_distribution_version | version_compare('9', 'eq')
- name: install pillow prerequisites for Debian >= 10
apt: pkg={{ item }} state=present
with_items:
- libjpeg62-turbo-dev
- libtiff5-dev
- tcl8.6-dev
- tk8.6-dev
when: ansible_distribution_version | version_compare('10', 'ge')
- name: install pdf prerequisites debian
apt: pkg={{ item }} state=present force=yes
with_items:
- libssl-dev
...
...

View File

@ -7,8 +7,10 @@
- name: Install nodejs {{ node_version }}
apt:
name: nodejs
name:
- nodejs
- npm
state: present
update_cache: yes
force: yes
...
...