-
Notifications
You must be signed in to change notification settings - Fork 345
Docker example for building theia from sources #439
Comments
I'm not sure the example would be useful for others (since it is not the recommended way of building an application as it offers no ability to modify/extend it easily). I also believe the example is quite simply. The idea would be to clone the main repository in the container, build it, and start it. In |
Thanks for your response.
I understand what you mean by this, but I am not able to get it to work. Can you please share with me some links or documentation on how to achieve this (I tried I imagine
|
Hi @MatejKastak, Interesting idea. One unknown in my mind is how to strip the example browser application so we can use it in the container, hopefully without carrying the whole built repo, in the image. In any case I think it should not be too hard to do. Do you have a starting point, maybe a prototype you attempted, that we could help fix instead of starting from scratch? |
Hi @marcdumais-work , thanks for the response. I have created a commented minimal example @ https://github.com/MatejKastak/theia-build-test . You can build it with Currently this makes a valid browser application, but I don't think it uses the node modules built from sources. What do you suggest? Can you see any outright mistakes? I am using python -m venv env # I would create a virual-env
source env/bin/activate # Load the virtual env, for subsequent commnads
cd /theia && python setup.py install # Build and install theia
cd /app && python setup.py install # ~ This would use the installed theia in virtual env instead of downloading a new one |
@MatejKastak I have just documented a way to do something I think similar to what you want to achieve. I did it in a Gitpod container, but you could do it locally. In short I publish an arbitrary version of Theia in a local registry (verdaccio) and then build a Theia app from what I published: |
I had a quick look and thought I did not see any outright mistakes, I have the feeling that you may be close to a solution, or that it should be possible to do something like this. But consider the local registry option above, too. |
This contribution has been automatically marked as stale due to inactivity, and it will be closed if no further activity occurs. Thank you for contributing to Theia! |
Hello,
my goal is to build a docker container with theia from sources, meaning that for example I would build current
master
with some custom patches/commits. I wasn't able to find an example how to do this.I will gladly contribute example like this (maybe it will be useful also to others). But I don't have much experience with Js/Ts project that are this complex, so I would welcome any guidance.
It should be sufficient to create bare theia container, that would
git clone theia-repo
and then build it instead of using packages from npm. This way users can substitute their own repo or do anything with cloned sources. I know about thenext
version tag, but I believe it's not relevant in this usecase.I think example like this can fit into additional-docker-examples section in README.
I have followed Developing.md and also tried to work with theia-cli.
Any suggestions appreciated.
The text was updated successfully, but these errors were encountered: