-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NextJs e nx-tools-docker #494
Comments
@gilvaju So what we do at work is we first build the application completely outside of Docker using the standard Nx build system. This allows reusing library builds and computational caching. And as part of the build step we put the After we have everything in assets we use The one gotcha is we have to use Overview:
|
@gilvaju Please check this repository, it's a sandbox with nest, react, next and angular application and all of them use the nx-docker plugin to generate the docker images |
@gperdomor so if we have multiple nest apps and a common library. If we modify common lib would docker rebuild all apps? |
@kodeine yes... you can run |
I'll see the example and then give feedback |
Hello, now that we had time to study the repository you indicated. Anyway thanks for the link |
I was only able to run the command after installing @swr It built perfectly and so I have the image to be used as I want In that case, can I use "executor": "nx:run-commands" to run these new/updated images? |
I noticed that this package is a peer here. This was introduced in this commit. I wonder if there is an expectation of another package providing the deposit for Perhaps this should be moved to a dependency OR perhaps the readme should include @swc/helpers as a required peer along side Perhaps this package manager specific? |
After you have the image, getting it running is another story. The current scope of this library ends at building the image and pushing it to a registry. There is an open feature request for a executor for running images. If you have further comments or ideas about that feature you may add those there. |
Hmm, I understand We currently have an ecosystem of about 20 containers, some apps on nx and other services like postgres and mongo. I believe if it is a way to play these other services for apps tb and use nx-tools to build the images and also use run-commands to run the images (for postgres and mongo for example I would create apps containing only project. json and the Docker file). It will also be used with github actions All these images are now served all on just one EC2 with haproxy as a reverse proxy. In the future we have plans to migrate to the container manager or something more complex like kubernets. Would it be a good way?
Cool, I would like to help, what would be the way? I think I can contribute something. |
Im sure PRs are welcome. Maybe tag @gperdomor with a comment in issue #12 with your initial ideas and then create a draft PR? |
Is there an example of how to use this with |
+1 |
Hi guys, i like run my projects nextjs in my workspace with docker. What would be the best way?
Problem:
The text was updated successfully, but these errors were encountered: