From 8c2999e68a486222ff9b8d9862e2be8f6d44e7f2 Mon Sep 17 00:00:00 2001 From: ali <010109ali@gmail.com> Date: Fri, 9 Jan 2026 10:54:44 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20jeyerp-develop.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeyerp-develop.yaml | 60 +++++++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/jeyerp-develop.yaml b/jeyerp-develop.yaml index 042d97a..2579cc5 100644 --- a/jeyerp-develop.yaml +++ b/jeyerp-develop.yaml @@ -160,33 +160,33 @@ source: wWTjkCHWgn4eQB2592RhhkLJIFmQxT+MWdw1lxUljD7rxI25lJ9sa4faGLI7Dhsv bcgRRcklNr8mTzJH =ckew - -----END PGP PUBLIC KEY BLOCK----- + -----END PGP PUBLIC KEY BLOCK----- targets: lxc: create_message: | - You just created an {{ image.description }} container. + You just created an {{ image.description }} container. config: - type: all before: 5 content: |- - lxc.include = LXC_TEMPLATE_CONFIG/alpine.common.conf + lxc.include = LXC_TEMPLATE_CONFIG/alpine.common.conf - type: user before: 5 content: |- - lxc.include = LXC_TEMPLATE_CONFIG/alpine.userns.conf + lxc.include = LXC_TEMPLATE_CONFIG/alpine.userns.conf - type: all after: 4 content: |- - lxc.include = LXC_TEMPLATE_CONFIG/common.conf + lxc.include = LXC_TEMPLATE_CONFIG/common.conf - type: user after: 4 content: |- - lxc.include = LXC_TEMPLATE_CONFIG/userns.conf + lxc.include = LXC_TEMPLATE_CONFIG/userns.conf - type: all content: |- - lxc.arch = {{ image.architecture_personality }} + lxc.arch = {{ image.architecture_personality }} incus: vm: filesystem: ext4 @@ -223,7 +223,7 @@ files: GRUB_TERMINAL=console # Disable os-prober - GRUB_DISABLE_OS_PROBER=true + GRUB_DISABLE_OS_PROBER=true types: - vm @@ -232,7 +232,7 @@ files: content: |- auto eth0 iface eth0 inet dhcp - hostname $(hostname) + hostname $(hostname) - path: /etc/inittab generator: dump @@ -253,7 +253,7 @@ files: ::ctrlaltdel:/sbin/reboot # Stuff to do before rebooting - ::shutdown:/sbin/openrc shutdown + ::shutdown:/sbin/openrc shutdown - path: /etc/inittab generator: template @@ -271,7 +271,7 @@ files: ::ctrlaltdel:/sbin/reboot # Stuff to do before rebooting - ::shutdown:/sbin/openrc shutdown + ::shutdown:/sbin/openrc shutdown - name: meta-data generator: cloud-init @@ -287,7 +287,7 @@ files: name: eth0 subnets: - type: dhcp - control: auto + control: auto variants: - cloud @@ -360,6 +360,11 @@ packages: # - redis - packages: + - python3-dev + - py3-setuptools + - py3-pip + - py3-distutils-extra + - py3-virtualenv - uv action: install # variants: @@ -399,7 +404,7 @@ actions: #!/bin/sh set -eux - rm -f /var/cache/apk/* + rm -f /var/cache/apk/* - trigger: post-packages action: |- @@ -419,7 +424,7 @@ actions: for svc_name in networking crond; do ln -s /etc/init.d/${svc_name} /etc/runlevels/default/${svc_name} - done + done types: - container @@ -428,7 +433,7 @@ actions: #!/bin/sh set -eux - setup-user frappe + setup-user frappe - trigger: post-packages action: |- @@ -544,7 +549,7 @@ actions: EOF # Runlevel Nginx - rc-update add nginx + rc-update add nginx # variants: # - nginx @@ -593,7 +598,7 @@ actions: EOF echo "MariaDB password is: $DISTROBUILDER_ROOT_UUID" # Runlevel MariaDB - rc-update add mariadb default + rc-update add mariadb default # variants: # - mariadb @@ -603,8 +608,8 @@ actions: set -eux # Install Frappe Bench - su frappe -c 'cd /home/frappe && uv python install' su frappe -c 'cd /home/frappe && uv venv' + su frappe -c 'cd /home/frappe && uv python install' su frappe -c 'cd /home/frappe && uv pip install frappe-bench' # Initialize Bench su frappe -c 'uvx --from frappe-bench bench init --frappe-branch=develop --frappe-path=https://github.com/frappe/frappe --no-procfile --no-backups --skip-redis-config-generation --verbose /home/frappe/frappe-bench' @@ -641,10 +646,11 @@ actions: # Install Jey ERP Subtabs App su frappe -c 'cd /home/frappe/frappe-bench && uvx --from frappe-bench bench install-app custom_subtabs' su frappe -c 'cd /home/frappe/frappe-bench && uvx --from frappe-bench bench execute custom_subtabs.patches.add_parent_field.add_field_to_docfield_json' + su frappe -c 'cd /home/frappe/frappe-bench && uvx --from frappe-bench bench execute jey_erp.custom.create_asset_categories.create_asset_categories' # Install Jey ERP Apps su frappe -c 'cd /home/frappe/frappe-bench && uvx --from frappe-bench bench install-app az_locale invoice_az taxes_az formula_editor jey_erp kapital_bank jey_theme' # Builds JS and CSS, and then migrates - su frappe -c 'cd /home/frappe/frappe-bench && uvx --from frappe-bench bench build --force && uvx --from frappe-bench bench migrate' + su frappe -c 'cd /home/frappe/frappe-bench && uvx --from frappe-bench bench build --force && uvx --from frappe-bench bench migrate' - trigger: post-packages action: |- @@ -652,7 +658,7 @@ actions: set -eux # Runlevel Redis - rc-update add redis default + rc-update add redis default variants: # - redis @@ -675,7 +681,7 @@ actions: EOF chmod +x /etc/init.d/node - rc-update add node default + rc-update add node default # variants: # - nodejs @@ -699,7 +705,7 @@ actions: EOF chmod +x /etc/init.d/gunicorn - rc-update add gunicorn default + rc-update add gunicorn default # variants: # - gunicorn @@ -723,7 +729,7 @@ actions: EOF chmod +x /etc/init.d/queue-long - rc-update add queue-long default + rc-update add queue-long default - trigger: post-packages action: |- @@ -744,7 +750,7 @@ actions: EOF chmod +x /etc/init.d/queue-short - rc-update add queue-short default + rc-update add queue-short default - trigger: post-files action: |- @@ -769,7 +775,7 @@ actions: grub-install --target=${TARGET}-efi --no-nvram # Attempt to correct errors in the installation of all packages. - apk fix + apk fix types: - vm @@ -779,7 +785,7 @@ actions: set -eux # Tweak to prevent cloud-init from getting stuck. - echo "datasource_list: ['NoCloud', 'ConfigDrive', 'LXD', 'None']" > /etc/cloud/cloud.cfg.d/99_lxc.cfg + echo "datasource_list: ['NoCloud', 'ConfigDrive', 'LXD', 'None']" > /etc/cloud/cloud.cfg.d/99_lxc.cfg types: - vm variants: @@ -790,7 +796,7 @@ actions: #!/bin/sh set -eux - setup-cloud-init + setup-cloud-init variants: - cloud