Merge branch 'frappe:main' into main

This commit is contained in:
Bernhard Sirlinger 2024-03-19 16:45:05 +01:00 committed by GitHub
commit 4ccc1f1d40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 44 additions and 35 deletions

View file

@ -38,7 +38,7 @@ jobs:
run: echo "LATEST_BENCH_RELEASE=$(curl -s 'https://api.github.com/repos/frappe/bench/releases/latest' | jq -r '.tag_name')" >> "$GITHUB_ENV" run: echo "LATEST_BENCH_RELEASE=$(curl -s 'https://api.github.com/repos/frappe/bench/releases/latest' | jq -r '.tag_name')" >> "$GITHUB_ENV"
- name: Build and test - name: Build and test
uses: docker/bake-action@v4.1.0 uses: docker/bake-action@v4.3.0
with: with:
targets: bench-test targets: bench-test
@ -51,7 +51,7 @@ jobs:
- name: Push - name: Push
if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }} if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
uses: docker/bake-action@v4.1.0 uses: docker/bake-action@v4.3.0
with: with:
targets: bench targets: bench
push: true push: true

View file

@ -56,7 +56,7 @@ jobs:
echo "NODE_VERSION=${{ inputs.node_version }}" >> "$GITHUB_ENV" echo "NODE_VERSION=${{ inputs.node_version }}" >> "$GITHUB_ENV"
- name: Build - name: Build
uses: docker/bake-action@v4.1.0 uses: docker/bake-action@v4.3.0
with: with:
push: true push: true
env: env:
@ -84,6 +84,6 @@ jobs:
- name: Push - name: Push
if: ${{ inputs.push }} if: ${{ inputs.push }}
uses: docker/bake-action@v4.1.0 uses: docker/bake-action@v4.3.0
with: with:
push: true push: true

View file

@ -8,13 +8,13 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.15.0 rev: v3.15.1
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py37-plus] args: [--py37-plus]
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 24.1.1 rev: 24.3.0
hooks: hooks:
- id: black - id: black
@ -47,7 +47,7 @@ repos:
types: [shell] types: [shell]
- repo: https://github.com/shellcheck-py/shellcheck-py - repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6 rev: v0.10.0.1
hooks: hooks:
- id: shellcheck - id: shellcheck
args: [-x] args: [-x]

View file

@ -5,7 +5,7 @@ Everything about [Frappe](https://github.com/frappe/frappe) and [ERPNext](https:
# Getting Started # Getting Started
To get started, you need Docker, docker-compose and git setup on your machine. For Docker basics and best practices. Refer Docker [documentation](http://docs.docker.com). To get started you need [Docker](https://docs.docker.com/get-docker/), [docker-compose](https://docs.docker.com/compose/), and [git](https://docs.github.com/en/get-started/getting-started-with-git/set-up-git) setup on your machine. For Docker basics and best practices refer to Docker's [documentation](http://docs.docker.com).
After that, clone this repo: After that, clone this repo:
```sh ```sh

View file

@ -2,24 +2,31 @@
"name": "Frappe Bench", "name": "Frappe Bench",
"forwardPorts": [8000, 9000, 6787], "forwardPorts": [8000, 9000, 6787],
"remoteUser": "frappe", "remoteUser": "frappe",
"settings": { "customizations": {
"terminal.integrated.profiles.linux": { "vscode": {
"frappe bash": { "extensions": [
"path": "/bin/bash", "ms-python.python",
}, "ms-vscode.live-server",
}, "grapecity.gc-excelviewer",
"terminal.integrated.defaultProfile.linux": "frappe bash", "mtxr.sqltools",
"debug.node.autoAttach": "disabled", "visualstudioexptteam.vscodeintellicode"
],
"settings": {
"terminal.integrated.profiles.linux": {
"frappe bash": {
"path": "/bin/bash"
}
},
"terminal.integrated.defaultProfile.linux": "frappe bash",
"debug.node.autoAttach": "disabled"
}
}
}, },
"dockerComposeFile": "./docker-compose.yml", "dockerComposeFile": "./docker-compose.yml",
"service": "frappe", "service": "frappe",
"workspaceFolder": "/workspace/development", "workspaceFolder": "/workspace/development",
"shutdownAction": "stopCompose", "shutdownAction": "stopCompose",
"extensions": [ "mounts": [
"ms-python.python", "source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/frappe/.ssh,type=bind,consistency=cached"
"ms-vscode.live-server", ]
"grapecity.gc-excelviewer",
"mtxr.sqltools",
"visualstudioexptteam.vscodeintellicode",
],
} }

View file

@ -20,10 +20,11 @@ export APPS_JSON='[
"branch": "version-15" "branch": "version-15"
}, },
{ {
"url": "https://user:password@git.example.com/project/repository.git", "url": "https://{{ PAT }}@git.example.com/project/repository.git",
"branch": "main" "branch": "main"
} }
]' ]'
export APPS_JSON_BASE64=$(echo ${APPS_JSON} | base64 -w 0) export APPS_JSON_BASE64=$(echo ${APPS_JSON} | base64 -w 0)
``` ```
@ -35,7 +36,7 @@ export APPS_JSON_BASE64=$(base64 -w 0 /path/to/apps.json)
Note: Note:
- `url` needs to be http(s) git url with token/auth in case of private repo. - `url` needs to be http(s) git url with personal access tokens without username eg:- http://{{PAT}}@github.com/project/repository.git in case of private repo.
- add dependencies manually in `apps.json` e.g. add `payments` if you are installing `erpnext` - add dependencies manually in `apps.json` e.g. add `payments` if you are installing `erpnext`
- use fork repo or branch for ERPNext in case you need to use your fork or test a PR. - use fork repo or branch for ERPNext in case you need to use your fork or test a PR.

View file

@ -1,6 +1,6 @@
# Reference: https://github.com/frappe/frappe_docker/blob/main/docs/images-and-compose-files.md # Reference: https://github.com/frappe/frappe_docker/blob/main/docs/images-and-compose-files.md
ERPNEXT_VERSION=v15.13.0 ERPNEXT_VERSION=v15.17.1
DB_PASSWORD=123 DB_PASSWORD=123

View file

@ -69,6 +69,7 @@ RUN apt-get update \
xz-utils \ xz-utils \
tk-dev \ tk-dev \
liblzma-dev \ liblzma-dev \
file \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \ RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \

16
pwd.yml
View file

@ -2,7 +2,7 @@ version: "3"
services: services:
backend: backend:
image: frappe/erpnext:v15.13.0 image: frappe/erpnext:v15.17.1
deploy: deploy:
restart_policy: restart_policy:
condition: on-failure condition: on-failure
@ -11,7 +11,7 @@ services:
- logs:/home/frappe/frappe-bench/logs - logs:/home/frappe/frappe-bench/logs
configurator: configurator:
image: frappe/erpnext:v15.13.0 image: frappe/erpnext:v15.17.1
deploy: deploy:
restart_policy: restart_policy:
condition: none condition: none
@ -39,7 +39,7 @@ services:
- logs:/home/frappe/frappe-bench/logs - logs:/home/frappe/frappe-bench/logs
create-site: create-site:
image: frappe/erpnext:v15.13.0 image: frappe/erpnext:v15.17.1
deploy: deploy:
restart_policy: restart_policy:
condition: none condition: none
@ -89,7 +89,7 @@ services:
- db-data:/var/lib/mysql - db-data:/var/lib/mysql
frontend: frontend:
image: frappe/erpnext:v15.13.0 image: frappe/erpnext:v15.17.1
depends_on: depends_on:
- websocket - websocket
deploy: deploy:
@ -113,7 +113,7 @@ services:
- "8080:8080" - "8080:8080"
queue-long: queue-long:
image: frappe/erpnext:v15.13.0 image: frappe/erpnext:v15.17.1
deploy: deploy:
restart_policy: restart_policy:
condition: on-failure condition: on-failure
@ -127,7 +127,7 @@ services:
- logs:/home/frappe/frappe-bench/logs - logs:/home/frappe/frappe-bench/logs
queue-short: queue-short:
image: frappe/erpnext:v15.13.0 image: frappe/erpnext:v15.17.1
deploy: deploy:
restart_policy: restart_policy:
condition: on-failure condition: on-failure
@ -157,7 +157,7 @@ services:
- redis-cache-data:/data - redis-cache-data:/data
scheduler: scheduler:
image: frappe/erpnext:v15.13.0 image: frappe/erpnext:v15.17.1
deploy: deploy:
restart_policy: restart_policy:
condition: on-failure condition: on-failure
@ -169,7 +169,7 @@ services:
- logs:/home/frappe/frappe-bench/logs - logs:/home/frappe/frappe-bench/logs
websocket: websocket:
image: frappe/erpnext:v15.13.0 image: frappe/erpnext:v15.17.1
deploy: deploy:
restart_policy: restart_policy:
condition: on-failure condition: on-failure

View file

@ -1 +1 @@
pytest==8.0.0 pytest==8.1.1