Closed wurst44 closed 1 week ago
Thanks for raising an issue.
There is an open PR at the moment, does this work for you? https://github.com/event-catalog/create-eventcatalog/pull/24
@wurst44, Could you create a small repo that reproduces this error for us? :pray:
I am not sure what you mean @carlosallexandre, I just ran docker build -t ec .
after copying the Dockerfile
to the root folder (Where is this procedure documeted?). With the PR I am getting other dependency errors. That was reminiscent of the Node versioning fun I had years ago.
@wurst44 Are you creating a catalog from npx @eventcatalog/create-eventcatalog@latest mycatalog
?
@wurst44 It seems your initial assumption about copying the Dockerfile
to the root folder is not correct. That Dockerfile is likely a leftover from the scaffold files for the create-eventcatalog
tool. As pointed out by @carlosallexandre, you should run the create-eventcatalog
tool and build your container image using the Dockerfile
generated by the tool.
This is just due to the ongoing development of the project, but there's definitely a source of confusion in the Dockerfile
that could be addressed: I'd either consider the Dockerfile
as unnecessary in this context and remove it, or I'd consider the example as being incomplete and ensure it includes the missing scaffold files (specifically, package.json
and package-lock.json
) required by the Dockerfile
to function properly.
@dreglad Awesome point :smile:
Until now, the examples
dir works for development purposes only. Running the npm run start:catalog
we have an User EC to test hydration/watcher and other stuffs. Indeed, the Dockerfile
here seems useless.
But, I think we should go a step further. Recently, @boyney123 added custom components to EC. These custom components doesn't appear in the files generated by create-eventcatalog
bin. In other words, the create-eventcatalog
files aren't up to date with the current examples
. Perhaps, to solve this we could use examples
from here like templates, such as astro templates
. Following the same way astro
does, create-eventcatalog
could become cleaner (without the template there) and with giget
download some template from examples
here.
And to finish, #713 :laughing:
Thank you but I don't get it. I need to install the tooling to generate a Dockerfile? 😄
you should run the create-eventcatalog tool and build your container image using the Dockerfile generated by the tool.
Isn't the whole point of using Docker that you do not have to care about installing or generating any tooling and build & run it anywhere? Also reading your replies makes it more confusing. Where is all of this documented?
@wurst44 Detail for us, step by step what you did so everyone understand and reproduce the error.
For example:
Dockerfile
from examples/default
to rootdocker build -t ec .
Or:
npx @eventcatalog/create-eventcatalog mycatalog
docker build -t ec .
Detail as much as possible :pray:
Going to close for now if you still have the issues let us know , and reopen
Hello, I guess I am supposed to copy the
examples/default/Dockerfile
to the root folder? When building I am getting the following error:Any ideas? Thx