-
-
Notifications
You must be signed in to change notification settings - Fork 183
Docker Image #1130
Comments
Thanks for opening the issue 👍 I have almost no clue of Docker, therefore for sure it would need the help of the community here but, cool idea. What would be the goal, to have a docker container for coding purpose or to use it to create presentations? If coding purpose, for sure we can probably also add the If the goal is to create presentations, I am not sure how to integrate our editor. Currently (at least) it works with Firestore and our productive credential aren't public, only the development one. |
I was mostly thinking about presentations using the editor. |
Thank for the details 😃. In that case, would the editor, I have to say it the goal is to connect if with our productive Firestore account, I don't see spontaneously the value as it easier to use the browser directly. In addition, I don't want to expose and spread our productive tokens. But if the goal would be to use a local db running in the Docker container, that would be cool for sure. We are just not ready yet. In addition to Docker itself it would need the development of the interfaces to the other type of database too. Feasible but some more work. Or am I missing something? |
The objective is not to connect to your production Firebase database.
This local db can also be included in the dockerfile. This would make it very easy and autonomous. |
I like the step by step approach 😃 Being said, even with variables in the dockerfile, as I said, I don't want to spread our productive credentials. Therefore it means that the editor in the docker file would be connected in a first step to the developer database. Would that work? |
Yes this is exactly what I mean. The steps to deploy a self-hosted editor instance would look like so:
I would add an option to have an nginx proxy in front of it to serve through ssl. |
Well proxy should be managed separately to make it more flexible:
Where xxxx is the port you want to expose on the host. |
I slowly get it 😅 That would be cool, I like the idea that anyone can kickstart it's own ddg in a docket container with his/her own Firebase account. Two last things, I think:
|
How does it work for google fonts? They are downloaded locally or referenced? Yes PWAs would be built locally and exposed on the host. |
Google Fonts are fetched at runtime in the browser. PWA built locally would be excluded here too in a first step I think, that would be quite some work too to make it happens. |
How does it work on you editor instance to build PWAs? Is it separate from Editor? |
Yes it is separate. It works in AWS. P.S.: List of services are listed on the website https://deckdeckgo.com/en/services |
Oh I see... |
Sounds like a plan 👍 So basically to run our editor locally, your need Node.js LTS version. Then the repo can be clone, depenencies installed and go
The project is exposed with a default dev Firebase configuration. If you would like to connect to another Firebase account aka be popupalted with other options, then these have to be updated in config.dev.json I guess that would be a start. As I said I have no clue of Docker but happy to answer any other questions. |
We are working on a proof of concept to transform the editor to an "offline first" approach (PR #1215). If it goes to the end and is integrated, this will ease the development of this feature request. |
Since the release of v5.0.0, the editor ( Therefore, a docker image can be created without the need of external database or Firebase. Following our discussion earlier this year @vialcollet, it should be now cleaner to create such an image. If you are still interested to develop it, that would be for sure cool 🤟 |
I'm interested in this as well. I might be able to make a docker image. How do you build the post 5.0.0 version? Tried the commands from above
And first line gives error. |
@bmcgonag super cool if you can try to build a docker image 👍 You should clone the entire mono repo and then go into
Let me know if it works out! Note: it needs |
Tried the commands from above(node: v16.6, npm: v8.13), but build failed:
i've Installed "rollup-plugin-node-polyfills" as link(https://stenciljs.com/docs/module-bundling) but the error is the same. |
Don't no, it works for me. Here my stacktrace:
|
The issue resolved i'v changed stencil.config.ts, add new item: and DONE:
npm WARN config global
i18n type declarations generated.
[32:36.3] @stencil/core [ WARN ] Bundling Warning PLUGIN_WARNING [35:00.3] build finished, watching for changes... in [35:00.3] http://localhost:3333/` |
cool! maybe it's the os, now i reckon that I do not face issue on mac but it might be on windows different |
Yeah, that because of Stencil. btw, any progress on Docker image? |
none, not in my personal plan. pr welcome. |
Affected part of DeckDeckGo
Feature Description
It would be create to create a dockerfile to be able to quickly start a container with all required components:
This list is probably not exhaustive as I am not yet familiar with DeckDeckGo.
Use Case
On any platform, laptop, server where docker is intalled, run a command to launch a fully fledged instance hosting all deckdeckgo components.
The text was updated successfully, but these errors were encountered: