Closed mzenz closed 10 months ago
Btw, the instructions on switching hrms
to the version-15
branch came from this issue: https://github.com/frappe/hrms/issues/1244
UP UP
same issue here
after I read about this
I just realized that we can't install hr using bench get-app inside running docker container. As per the FaQ, we need to create custom image that contains frappe hr inside then deploy the container.
because when we use bench get-app and bench build, the asset will not load properly as well, the symlink will be gone inside asset folder.
I followed the instructions from https://github.com/frappe/frappe_docker/blob/main/docs/custom-apps.md and successfully built a custom image that includes the hrms
module.
Going by the build command's output, the hrms
module seems to be installed correctly. After modifying pwd.yml
with the image name custom_build/erpnext:1.0.0
and running the image stack via docker compose -f pwd.yml up
, logging into the frontend container shows the hrms
module installed under apps
directory.
Still, after logging into ERPNext for the first time, the hrms
module/app is nowhere to be found.
Can someone tell us if there are any other missing steps to get it activated?
apps.json
[
{
"url": "https://github.com/frappe/erpnext.git",
"branch": "version-15"
},
{
"url": "https://github.com/frappe/hrms.git",
"branch": "version-15"
}
]
docker build \
--build-arg=FRAPPE_PATH=https://github.com/frappe/frappe \
--build-arg=FRAPPE_BRANCH=version-15 \
--build-arg=PYTHON_VERSION=3.11.6 \
--build-arg=NODE_VERSION=18.18.2 \
--build-arg=APPS_JSON_BASE64=`base64 -w 0 development/apps.json` \
--tag=custom_build/erpnext:1.0.0 \
--file=images/custom/Containerfile .
can you share the image
@mzenz can share your step? how you install and activate the feature
i have the same issue on mac OS
Information about bug
Attempting to install the
hrms
module after starting the frappe_docker throws an error:ModuleNotFoundError: No module named 'hrms'
Steps to reproduce
git clone https://github.com/frappe/frappe_docker.git
cd frappe_docker
docker compose -f pwd.yml up
frappe_docker_frontend_1
).docker exec frappe_docker_frontend_1 bash
bench get-app --branch version-15 hrms
bench --site frontend migrate
bench --site frontend install-app hrms
Result
Frontend errors out saying
ModuleNotFoundError: No module named 'hrms'
.Module
HR
Version
version-15
)Installation method
docker
Relevant log output / Stack trace / Full Error Message.