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 support #186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

neromaverick
Copy link

Description

Adding support for setting up build environments with Docker & doing builds using Docker
Currently only targets Linux & maybe Mac. Have not tested for Windows/Switch (There was an unsuccessful attempt. If someone wants to help work this out, feel free. My personal target is Linux :P)

Will this Pull Request break anything?

Nope, just adding a Dockerfile & some changes to the readme. I tested the process using Docker & Podman, it builds without issue.

Suggested Testing Steps

This should be no different than your typical Linux build. Ensure the game runs & things appear normal.

# tcc \
# unzip

## Switch build dependencies

Choose a reason for hiding this comment

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

Why not break out to separate Dockerfiles per target?

Copy link
Author

Choose a reason for hiding this comment

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

That's not a bad idea. My original thought was to specify targets using arguments. But different Dockerfiles per target would be clearer and split out the process to be maintained separately.

When I have some free cycles, I'll redo this PR. Unless someone else beats me to it 😉😂

Choose a reason for hiding this comment

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

I'm not a docker expert, but I think duplicating information into multiple Dockerfiles is not very DRY.

Is there a way to have a common dockerfile for the others to reference?

Choose a reason for hiding this comment

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

I think it is better to keep it in one Dockerfile, that way you can call both jobs, reusing code and decreasing build time.

danielsoares02 added a commit to danielsoares02/zelda3 that referenced this pull request Jan 5, 2025
Correção no src/main.cs, pullrequest snesrev#247

Correção no src/opengl.cs, pullrequest snesrev#270

Correção no src/platform/switch/Makefile, pullrequest snesrev#273

Correção no MakeFile, pullrequest snesrev#276

Correção no src/select_file.c, pullrequest snesrev#292
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.

4 participants