run locally using docker
I've added a local provider to novu that will be used for our project. I'm able to run the project locally using the 'Run Novu in local machine' guide, but I want to containarize the project and run it on my dev server, but I see there's no guide on how to do this, and no dockerfile that builds clean images of all projects
I've tried running this command:
pnpm i -f && pnpm run docker:build
but is is failing with this error:
5 Replies
Hi @adnanjpg, I'm an AI assistant for Novu. While a team member reviews this question, I'll see if I can find relevant sources for your question.
-----------------------------
While I generate an answer, here are some sources that might be helpful:
* Go SDK
* Run Novu in local machine
* MacOS/Linux
* Add a new provider
-----------------------------
Answer
To run Novu locally using Docker, you can follow these steps based on the available documentation (1) :
1. Before you begin Make sure you have Docker and docker-compose installed on your system. You'll also need Git.
2. Get the code Clone the Novu repository and navigate to the docker community folder:
3. Configuration Before deploying, make sure to update the
.env
file with your own secrets. The documentation provides information on required variables and configuration options.
However, it seems you're encountering an error when trying to build the Docker images. The error suggests there might be issues with package dependencies or the build process.
Unfortunately, I don't have specific information about the pnpm run docker:build
command or the exact error you're encountering in the provided documentation. The error seems to be related to missing packages in the workspace and issues with the Dockerfile.
Since I can't provide a direct solution based on the available information, I suggest you consider the following:
1. Make sure all dependencies are correctly installed and the workspace is set up properly.
2. Check if there are any recent updates or issues reported in the Novu GitHub repository related to Docker builds.
3. Review the Dockerfile in the apps/ws
directory to ensure it's correctly configured.
If you continue to face issues, you might want to click on the "Ask for help" button to tag a team member to review your question, as they might have more specific insights into the Docker build process for Novu.Feel free to tag @Ask Inkeep with additional questions.
Got it. Tagging @Support for additional help.
here's the full error
@adnanjpg
Please use #⚓│community-self-host channel for docker related issye