question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

APP_NAME in bake.hcl undefined apparently + notes on app

See original GitHub issue

Docker version 20.10.7, build f0df350

I have enjoyed using Frappe and created my first app. Thank you @vrslev for creating the guide, very useful.

I did find the following bug.

error: docker-bake.hcl:14,20-28: Unknown variable; There is no variable named "APP_NAME"., and 3 other diagnostic(s)

I was able to work around this by adding the following to the docker-bake.hcl file.

variable "APP_NAME" {
	default = "docbridge"
}

A couple of other notes:

  • Might be good to have the list of files to copy formatted in a list instead of in a paragraph.
  • Might be worth noting that you need to run the docker build… command from the root of your app instead of from frappe_docker
  • https://github.com/castlecraft/custom_frappe_docker If this is no longer the easiest approach to creating custom app builds, it might be worth updating it’s README.

I should really learn how to do a PR…

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:20

github_iconTop GitHub Comments

1reaction
1ubuntuusercommented, Jun 21, 2022

Alrighty… I’ll giveup on that idea. I kinda get why production images should be static but I also think it’s pretty limiting to the eco system to not allow apps to be shared easily.

Anyway, I will just use your https://github.com/castlecraft/custom_frappe_docker repo to package multiple apps.

Perhaps loading apps dynamically will be considered for the next version. Thanks for your consideration anyway.

1reaction
revantcommented, Jun 11, 2022

production images won’t work for static assets. static assets are built and packed into nginx. install-app from worker image just takes care of install in python environment.

in case you use bench image, no need to mount each frappe-bench separately, just mount the workspace like this https://github.com/frappe/frappe_docker/blob/main/devcontainer-example/docker-compose.yml

you will need supervisor to achieve what you need to. just change the frappe/bench image for that.

personally, I’ll not accept apps in volume for other images than frappe/bench.

Read more comments on GitHub >

github_iconTop Results From Across the Web

XPages Jakarta EE 2.9.0 and Next Steps - frostillic.us
My next hurdle was to do with the way Krazo delegates to JSPs. Specifically, it queries the ServletContext (essentially, the app container) for...
Read more >
pPl
700 woodrow apartments reviews, Graps pic, Tsintsadze sheet music, Rudi ngadiman? Missouri college football score! Cuori oil heaters, Black front door white ...
Read more >
the 2 of 3 and 4 0 5 to 6 a 7 in 8 1 9 for 10 image 11 2 12 is 13
... 208 but 209 years 210 code 211 tx 212 t 213 they 214 application 215 05 216 ... 368 disease 369 enter...
Read more >
Attribute application@ appcomponentfactory value=( ...
use public content either app secret proof or an app token (-215: claim failed) ... app name artisan clear cache artisan command controller...
Read more >
mozilla-central: changeset 101823 ... - Mercurial
XXX never grant 'content-camera' to non-gaia apps function ... #define JSCLASS_DOM_GLOBAL JSCLASS_USERBIT1 +// NOTE: This is baked into the Ion JIT as 0...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found