Skip to content
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

Add docker container to generate parsers and languages #154

Merged
merged 7 commits into from
Aug 2, 2024

Conversation

ehuelsmann
Copy link
Contributor

🤔 What's changed?

A dockerized version of Berp.

⚡️ What's your motivation?

The cucumber/build container is huge. Most people only need it to run Berp. So, instead of downloading and maintaining a multi-gigabyte container, lets use a lean one with exactly one purpose.

🏷️ What kind of change is this?

  • 🏦 Refactoring/debt/DX (improvement to code design, tooling, documentation etc. without changing behaviour)

♻️ Anything particular you want feedback on?

This container likely causes permissions conflicts: the cukebot user has hard-coded UID 1000 whereas not everybody will be running as that user. The release container had trickery to be able to run "as the current user". Is it easy to transplant and do we want/need that? (was it even in the container? Or was it in the makefile before?)

📋 Checklist:

docker-berp/Dockerfile Outdated Show resolved Hide resolved
@ehuelsmann
Copy link
Contributor Author

Branch rebased (explaining the force-push).

Copy link
Contributor

@luke-hill luke-hill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe irrelevant thoughts. But thoughts that might help

docker-berp/Dockerfile Outdated Show resolved Hide resolved
docker-berp/Dockerfile Outdated Show resolved Hide resolved
docker-berp/Dockerfile Outdated Show resolved Hide resolved
Copy link
Contributor

@luke-hill luke-hill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get other reviews

mpkorstanje added a commit that referenced this pull request Aug 2, 2024
The go parser is currently generated and then formatted. This however
requires that go is installed when generating the parser. This
added dependency makes code generation more complicated than it needs
to be as this is yet another tool people need to install.

This in turn makes #154 more complicated than it needs to be.

By making the code generator generate formatted code we avoid this
problem all together.
mpkorstanje added a commit that referenced this pull request Aug 2, 2024
The go parser is currently generated and then formatted. This however
requires that go is installed when generating the parser. This
added dependency makes code generation more complicated than it needs
to be as this is yet another tool people need to install.

This in turn makes #154 more complicated than it needs to be.

By making the code generator generate formatted code we avoid this
problem all together.
@mpkorstanje mpkorstanje changed the title Add docker container to run Berp Add docker container to generate parsers and languages Aug 2, 2024
@mpkorstanje mpkorstanje merged commit 7109f8f into main Aug 2, 2024
1 check passed
@mpkorstanje mpkorstanje deleted the dockerized-berp branch August 2, 2024 22:18
@mpkorstanje
Copy link
Contributor

Cheers @ehuelsmann ! Took me a while to get to this but this is actually really good improvement. A belated thanks for kicking it off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants