I checked the official document about it but wasn't able to figure out the difference. If anyone can help?
Looking at the docker input documentation, it seems like the docker input is being deprecated in favor of a more general container input.
The container input is probably a very similar, but it accommodates other containerization technologies aside from docker.
Related
I want to deploy odoo as cheap as possible. I tried with gcloud sql (15-30€/m) + cloud run. But after some minutes passed the odoo interface shows me a white screen with so many logs in the console similar to this:
GET 404 1.04 KB24 ms Chrome 91 https://bf-dev3-u7raxlu3nq-ew.a.run.app/web/content/290-f328144/1/website.assets_editor.css
My interpretation is that, as cloud run is stateless, and the web static files seems to be stored in the core module, after the container is killed this information is lost. As I've been one month working looking for a solution, before trying any another way of deploying I ask the community: Have you found a way of persisting the odoo core modules in v14 different form a volume? And so, it is possible deploying odoo in gcloud run?
Here I listed all the ideas that I tried:
First, I thought that this css files were store in the werkzeug session, so I tried two addons that stored this session in a place different from the filestore. These addons were camptocamp odoo-cloud-platform-14.0/session-redis and misc-addons-13.0/base_session_store_psql. But, then the problem persisted.
Then I read that the static css and js file generated in the web editor are stored in odoo as attachments, and the addons misc-addons-13.0/ir_attachment_s3 could store these files in s3. But, although I configured this addon the problem persisted.
Next, I found this link describing needing to regenerate assets so them to be stored in the db. But, although I did that the problem persisted.
Finally, I thought to deploy odoo in other ways. The way of directly in a vm seems to be the more minimalistic and standard, and so seem to have the more chances to work, although it will be difficult to implement gitops. It can be deployed containers in the vm through docker compose what will help deploying updates. Gke anthos seems to implement gitops too and seems to persist volumes, but in the description it shows gke anthos is stateless. Finally, there's the way of deploying in a k8s cluster, this way will implement containers and allow autoscaling vs the docker compose way in a vm. But it's true it seems to be more expensive and more difficult to implement. Regarding seem to be more expensive it is thought of trying little working nodes machines so the cost stays small during the night. Regarding the difficulty of deploying, it is desired to implement gitops so it seems argo or other should be added. Also, I heard gke autopilot has a good free tier and is easier to deploy.
Thanks in advance :)
Cloud Run isn't the good solution for that. Indeed, if the werkzeug session is persisted in memory, the same client isn't sure to access to the same instance each time, and thus to lost the file even in the middle of a session.
The best solution is to use VM with sticky session configuration. You can use old school deployment on Compute Engine, or Cloud Native solution with GKE/K8S. It's more or less the same cost if you have only 1 cluster (the first one is free)
Just a correction about GKE Anthos. I think you talk about Cloud Run on Anthos, and yes, it's like Cloud Run but use KNative on GKE to manage the containers, and it's also serverless. But GKE can handle stateful deployment, as you need with odoo
There are several different ways to configure a Kestrel server (JSON file, IWebHostBuilder, environment variables) but is there any way to view the entire applied configuration together? It would be nice to read the final outcome after using more than one of these configuration options.
I'm running .NET 5.0 ASP.NET Core apps in Linux Docker containers and was really hoping for something I could look at via the command line in the running container. Is it all just in memory and this is an impossible ask? I'd even take a local-only landing page or something.
I've read all documentation I can find and haven't seen this addressed.
No this isn't possible today. File a feature request on ASP.NET Core describing what you would like to see https://github.com/dotnet/aspnetcore/issues
While not quite what I was looking for, I found IConfigurationRoot.GetDebugView() which gives me the information I need. It "generates a human-readable view of the configuration showing where each value came from."
I can't use it in a shell on the web server like I initially asked, but it could be output to a page or API for debugging.
Is there any way I can have Puppet complete documenation available offline ? Its hard checking module documentation everytime via browser.
I hope it will help other Puppet module developers.
Thank you.
While searching I have found Zeal Application which is like Offline Documentation broweser and that seems supports so many langugages. can be download from Official website here: https://zealdocs.org/
You could request to download it from Puppet direct.
https://docs.puppet.com/download/
It will come down as puppetdocs-latest.tar.gz and is currently about 879MB.
It looks like the documentation is supposed to be viewable offline if you simply clone it. Go to this link here. However, at this moment, it looks to me like the offline viewing functionality is broken - the relative hyperlinks don't actually work. If you figured out what's wrong, you could probably send in a PR to fix it.
From this document https://docs.openshift.com/enterprise/3.0/creating_images/metadata.html, I learned that add a LABEL io.openshift.non-scalable="true" in Dockerfile will hide the scale ui element on openshift console.
But seems it does not work. Is there anything wrong ? I'm using openshift-origin 1.3
You haven't done anything wrong. Unfortunately, the documentation is incorrect. Currently, neither the web console or oc scale look for this label. It's being tracked by a bug here:
https://bugzilla.redhat.com/show_bug.cgi?id=1284104
I am totally new to Apache and Ubuntu, is there an admin tools where the available functions and features and settings are more accessible? I am finding it very difficult to do even the simplest things.... please help.
Cheers.
apacheConf is available for most flavours of Linux, however:
1) it ignores the distribution-specific layout of the config files and implements its own structure
2) its just a tool for updating the config - it doesn't actually tell you what the config options mean
3) like any gui tool it abstracts the actual data (in this case, the apache config) you are manipulating
4) there are at least 3 different programs branded as apacheConf
http://www.apache-gui.com/apache-linux.html
http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/custom-guide/apacheconf.html
and the config tool bundled in Mandriva
5) it limits what you can actually configure to the design on the UI (e.g. RedHat apacheConf only allows you to set one listening address
Having buttons to click does not help you understand what you are actually trying to achieve (unless your objective is an MCSE of course ;). I'd recommend you go get a good book on Apache config and take the time to read it.
C.
Try Webmin - a nice web-based GUI tool. There is a .deb package for ubuntu in their downloads page.
http://webmin.com
Here are some options to consider for helping you to better understand how Apache works and how to administer/configure the server:
Read the official HOW-TO
Take a look at a commercial tool like ApacheConf
Ask questions here about the specific issues you are having
HTH,
-aj