I want to use Frappe Wiki, but I can’t figure out how to add the website to a docker installation.
I am using the Containerized Installation For ERPNext
According to the wiki for Frappe Wiki, you need to install it using.
# get app
$ bench get-app https://github.com/frappe/wiki
# install on site
$ bench --site sitename install-app wiki
But where do I run the command if I use docker?!
Another example of another app that I want to install
bench new-site gameplan.test
bench get-app gameplan
bench --site gameplan.test install-app gameplan
bench --site gameplan.test add-to-hosts
bench --site gameplan.test browse --user Administrator
Log File
frappe@ae53d3d1d7de:~/frappe-bench$ bench --version
5.16.0
frappe@ae53d3d1d7de:~/frappe-bench$ bench new-site wiki-test
MySQL root password:
Installing frappe...
Updating DocTypes for frappe : [========================================] 100%
Set Administrator password:
Re-enter Administrator password:
Updating Dashboard for frappe
wiki-test: SystemSettings.enable_scheduler is UNSET
*** Scheduler is disabled ***
frappe@ae53d3d1d7de:~/frappe-bench$ bench get-app gameplan
Getting gameplan
$ git clone https://github.com/frappe/gameplan.git --depth 1 --origin upstream
Cloning into 'gameplan'...
remote: Enumerating objects: 366, done.
remote: Counting objects: 100% (366/366), done.
remote: Compressing objects: 100% (326/326), done.
remote: Total 366 (delta 56), reused 208 (delta 29), pack-reused 0
Receiving objects: 100% (366/366), 7.20 MiB | 8.33 MiB/s, done.
Resolving deltas: 100% (56/56), done.
Ignoring dependencies of gameplan. To install dependencies use --resolve-deps
Installing gameplan
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/gameplan
$ yarn install
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
$ cd frontend && yarn install
yarn install v1.22.19
warning package.json: No license field
warning gameplan-ui@0.0.0: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "frappe-ui > @tiptap/extension-color@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/extension-highlight@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/extension-image@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/extension-link@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/extension-mention@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/extension-placeholder@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/extension-table@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/extension-table-cell@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/extension-table-header@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/extension-table-row@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/extension-text-align@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/extension-text-style@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/extension-typography@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/suggestion@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/vue-3@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/vue-3 > @tiptap/extension-bubble-menu@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
warning "frappe-ui > @tiptap/vue-3 > @tiptap/extension-floating-menu@2.0.0-beta.205" has unmet peer dependency "@tiptap/core@^2.0.0-beta.193".
[4/4] Building fresh packages...
Done in 58.06s.
Done in 58.40s.
$ bench build --app gameplan
✔ Application Assets Linked
yarn run v1.22.19
$ node esbuild --production --apps gameplan --run-build-command
File Size
DONE Total Build Time: 227.77ms
Running build command for gameplan
$ cd frontend && yarn build
warning package.json: No license field
$ vite build --base=/assets/gameplan/frontend/ && yarn copy-html-entry
vite v3.2.5 building for production...
✓ 708 modules transformed.
../gameplan/public/frontend/assets/Inter-Light.87ed65f8.woff2 103.16 KiB
../gameplan/public/frontend/assets/Inter-Thin.918c5cbe.woff2 99.03 KiB
../gameplan/public/frontend/assets/Inter-ThinItalic.a3279f0a.woff2 104.98 KiB
../gameplan/public/frontend/assets/Inter-LightItalic.5b94e337.woff2 109.34 KiB
../gameplan/public/frontend/assets/Inter-ExtraLightItalic.7b39e865.woff2 109.43 KiB
../gameplan/public/frontend/assets/Inter-ExtraLight.4c337585.woff2 103.48 KiB
../gameplan/public/frontend/assets/Inter-Regular.c342b1b7.woff2 97.78 KiB
../gameplan/public/frontend/assets/Inter-Italic.950174d1.woff2 104.99 KiB
../gameplan/public/frontend/assets/Inter-SemiBold.af44b8a2.woff2 104.72 KiB
../gameplan/public/frontend/assets/Inter-Medium.a4e1e7e6.woff2 104.22 KiB
../gameplan/public/frontend/assets/Inter-MediumItalic.d4a7f5d9.woff2 109.87 KiB
../gameplan/public/frontend/assets/Inter-SemiBoldItalic.a4f92da5.woff2 109.91 KiB
../gameplan/public/frontend/assets/Inter-Bold.2efd8e3c.woff2 104.88 KiB
../gameplan/public/frontend/assets/Inter-BoldItalic.f528d863.woff2 109.94 KiB
../gameplan/public/frontend/assets/Inter-ExtraBold.74e72c6b.woff2 105.03 KiB
../gameplan/public/frontend/assets/Inter-BlackItalic.1cb529a7.woff2 107.32 KiB
../gameplan/public/frontend/assets/Inter-Black.bc2198e0.woff2 102.07 KiB
../gameplan/public/frontend/assets/Inter-ExtraBoldItalic.2abc7ab1.woff2 110.23 KiB
../gameplan/public/frontend/assets/Inter-LightItalic.289a60bc.woff 144.96 KiB
../gameplan/public/frontend/assets/Inter-ThinItalic.f53f21de.woff 141.03 KiB
../gameplan/public/frontend/assets/Inter-Light.319f53ba.woff 138.21 KiB
../gameplan/public/frontend/assets/Inter-Thin.2198e9fb.woff 133.74 KiB
../gameplan/public/frontend/assets/Inter-ExtraLightItalic.0e5667b1.woff 145.20 KiB
../gameplan/public/frontend/assets/Inter-ExtraLight.1c06ef44.woff 138.54 KiB
../gameplan/public/frontend/assets/Inter-Regular.b825f1bc.woff 131.50 KiB
../gameplan/public/frontend/assets/Inter-Italic.b0b21adf.woff 139.40 KiB
../gameplan/public/frontend/assets/Inter-SemiBold.3041a990.woff 139.89 KiB
../gameplan/public/frontend/assets/Inter-Medium.f500bbb9.woff 139.49 KiB
../gameplan/public/frontend/assets/Inter-MediumItalic.d06751dd.woff 145.69 KiB
../gameplan/public/frontend/assets/Inter-SemiBoldItalic.5ce565c8.woff 145.78 KiB
../gameplan/public/frontend/assets/Inter-Bold.2b828bef.woff 140.34 KiB
../gameplan/public/frontend/assets/Inter-ExtraBold.585b4ce1.woff 140.19 KiB
../gameplan/public/frontend/assets/Inter-BoldItalic.8bc8e0ff.woff 145.92 KiB
../gameplan/public/frontend/assets/Inter-BlackItalic.7ecbf9fa.woff 142.50 KiB
../gameplan/public/frontend/assets/Inter-Black.9c79713b.woff 136.75 KiB
../gameplan/public/frontend/assets/Inter-ExtraBoldItalic.b87f7d97.woff 145.70 KiB
../gameplan/public/frontend/stats.html 392.15 KiB
../gameplan/public/frontend/index.html 7.71 KiB
../gameplan/public/frontend/assets/FontColor.5979fe57.js 2.31 KiB / gzip: 0.97 KiB
../gameplan/public/frontend/assets/Tooltip.b3031a07.js 0.64 KiB / gzip: 0.42 KiB
../gameplan/public/frontend/assets/InsertLink.8ce4c2ef.js 1.39 KiB / gzip: 0.71 KiB
../gameplan/public/frontend/assets/InsertImage.265b677f.js 1.73 KiB / gzip: 0.92 KiB
../gameplan/public/frontend/assets/InsertVideo.7e5c15f7.js 1.92 KiB / gzip: 0.97 KiB
../gameplan/public/frontend/assets/Home.aa178123.js 1.71 KiB / gzip: 0.95 KiB
../gameplan/public/frontend/assets/Breadcrumbs.57d38000.js 1.07 KiB / gzip: 0.56 KiB
../gameplan/public/frontend/assets/FileUploader.8d865ca2.js 3.52 KiB / gzip: 1.50 KiB
../gameplan/public/frontend/assets/teams.01fa495d.js 0.95 KiB / gzip: 0.57 KiB
../gameplan/public/frontend/assets/FeatherIconCircle.01a09b3e.js 0.62 KiB / gzip: 0.38 KiB
../gameplan/public/frontend/assets/focus.15d11409.js 0.05 KiB / gzip: 0.07 KiB
../gameplan/public/frontend/assets/DiscussionList.88a65d6c.js 4.23 KiB / gzip: 1.82 KiB
../gameplan/public/frontend/assets/projects.9dc15888.js 0.41 KiB / gzip: 0.31 KiB
../gameplan/public/frontend/assets/People.5a2adc0c.js 4.33 KiB / gzip: 1.96 KiB
../gameplan/public/frontend/assets/Teams.acffe1de.js 0.84 KiB / gzip: 0.50 KiB
../gameplan/public/frontend/assets/Links.36120bae.js 0.59 KiB / gzip: 0.38 KiB
../gameplan/public/frontend/assets/Search.f05825a2.js 3.76 KiB / gzip: 1.78 KiB
../gameplan/public/frontend/assets/Link.adcfbe27.js 0.84 KiB / gzip: 0.49 KiB
../gameplan/public/frontend/assets/index.4f0593a0.js 0.39 KiB / gzip: 0.27 KiB
../gameplan/public/frontend/assets/Onboarding.ac0ef14d.js 5.17 KiB / gzip: 2.00 KiB
../gameplan/public/frontend/assets/Tabs.25624e67.js 1.30 KiB / gzip: 0.75 KiB
../gameplan/public/frontend/assets/PersonProfileAboutMe.52ca0b88.js 0.66 KiB / gzip: 0.41 KiB
../gameplan/public/frontend/assets/Login.63fc8299.js 8.63 KiB / gzip: 3.75 KiB
../gameplan/public/frontend/assets/PersonProfilePosts.1df11157.js 0.49 KiB / gzip: 0.34 KiB
../gameplan/public/frontend/assets/TextEditor.c27cddb4.js 0.60 KiB / gzip: 0.38 KiB
../gameplan/public/frontend/assets/ReadmeEditor.0df38756.js 1.66 KiB / gzip: 0.84 KiB
../gameplan/public/frontend/assets/TabButtons.92c7504c.js 0.60 KiB / gzip: 0.41 KiB
../gameplan/public/frontend/assets/Team.52749278.js 0.64 KiB / gzip: 0.40 KiB
../gameplan/public/frontend/assets/Notifications.7f6955a2.js 3.89 KiB / gzip: 1.58 KiB
../gameplan/public/frontend/assets/TeamOverview.b11459f5.js 0.50 KiB / gzip: 0.33 KiB
../gameplan/public/frontend/assets/AddMemberDialog.ae86e989.js 5.38 KiB / gzip: 2.28 KiB
../gameplan/public/frontend/assets/TeamDiscussions.e4c24b9c.js 0.57 KiB / gzip: 0.38 KiB
../gameplan/public/frontend/assets/TeamHome.a5be340b.js 3.50 KiB / gzip: 1.53 KiB
../gameplan/public/frontend/assets/ProjectLayout.0c1fa87f.js 0.73 KiB / gzip: 0.42 KiB
../gameplan/public/frontend/assets/TeamProjects.e76154cf.js 4.60 KiB / gzip: 1.89 KiB
../gameplan/public/frontend/assets/ProjectOverview.1ae1d719.js 5.68 KiB / gzip: 2.26 KiB
../gameplan/public/frontend/assets/ProjectDiscussions.02b7a74e.js 1.35 KiB / gzip: 0.76 KiB
../gameplan/public/frontend/assets/Project.85a7e6a3.js 10.44 KiB / gzip: 3.71 KiB
../gameplan/public/frontend/assets/UserProfileLink.991295cd.js 0.57 KiB / gzip: 0.36 KiB
../gameplan/public/frontend/assets/DiscussionView.2ba73963.js 12.36 KiB / gzip: 4.24 KiB
../gameplan/public/frontend/assets/CommentsArea.a3408d04.js 20.83 KiB / gzip: 7.07 KiB
../gameplan/public/frontend/assets/ProjectTasks.f0ebe589.js 3.45 KiB / gzip: 1.49 KiB
../gameplan/public/frontend/assets/ProjectTaskNew.a02b6986.js 1.54 KiB / gzip: 0.84 KiB
../gameplan/public/frontend/assets/ProjectDiscussionNew.0b9c5e41.js 5.23 KiB / gzip: 2.16 KiB
../gameplan/public/frontend/assets/ProjectDiscussion.c5674d6b.js 1.19 KiB / gzip: 0.68 KiB
../gameplan/public/frontend/assets/MobileLayout.f1101eaf.js 1.67 KiB / gzip: 0.85 KiB
../gameplan/public/frontend/assets/ProjectTaskDetail.5a829b28.js 5.64 KiB / gzip: 2.37 KiB
../gameplan/public/frontend/assets/Project.9ffbba80.css 0.17 KiB / gzip: 0.15 KiB
../gameplan/public/frontend/assets/SettingsDialog.b5267225.js 10.61 KiB / gzip: 3.66 KiB
../gameplan/public/frontend/assets/Search.cdbb1fef.css 0.08 KiB / gzip: 0.10 KiB
../gameplan/public/frontend/assets/DesktopLayout.9882cce8.js 39.13 KiB / gzip: 14.92 KiB
../gameplan/public/frontend/assets/index.581d70e0.css 72.13 KiB / gzip: 11.26 KiB
../gameplan/public/frontend/assets/IconPicker.a90f56eb.js 192.53 KiB / gzip: 30.32 KiB
../gameplan/public/frontend/assets/PersonProfile.a4fb2517.js 216.83 KiB / gzip: 62.36 KiB
../gameplan/public/frontend/assets/index.e0787ae5.js 839.47 KiB / gzip: 265.14 KiB
(!) Some chunks are larger than 500 KiB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
warning package.json: No license field
$ cp ../gameplan/public/frontend/index.html ../gameplan/www/g.html
Done in 9.59s.
WARN: restart failed: Couldn't find supervisorctl in PATH
frappe@ae53d3d1d7de:~/frappe-bench$
frappe@ae53d3d1d7de:~/frappe-bench$ bench new-site gameplan.test
MySQL root password:
Installing frappe...
Updating DocTypes for frappe : [========================================] 100%
Set Administrator password:
Re-enter Administrator password:
Updating Dashboard for frappe
gameplan.test: SystemSettings.enable_scheduler is UNSET
*** Scheduler is disabled ***
frappe@ae53d3d1d7de:~/frappe-bench$ bench --site gameplan.test install-app gameplan
Installing gameplan...
Updating DocTypes for gameplan : [========================================] 100%
Downloading data from 'https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net.onnx' to file '/home/frappe/.u2net/u2net.onnx'.
100%|████████████████████████████████████████| 176M/176M [00:00<00:00, 302GB/s]
Updating Dashboard for gameplan
frappe@ae53d3d1d7de:~/frappe-bench$ bench --site gameplan.test add-to-hosts
/bin/sh: 1: sudo: not found
frappe@ae53d3d1d7de:~/frappe-bench$ bench --site gameplan.test browse --user Administrator
Login URL: http://gameplan.test:8000/app?sid=04082faca438cafd9efe4c5e0c1f2e180e86422d18bd2b054d50bc7f
frappe@ae53d3d1d7de:~/frappe-bench$
It’s not working. Not sure why? Do I need to modify the original file for the docker?!
Thanks, I will try it out…
I think we should add this to the main readme for the frappe_docker
@revant_one the apps.json should be created at root? or in a folder?
anywhere is fine, it’s just an environment variable.
refer Container Builds - #2 by revant_one