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

build(Dockerfile): pin platform to linux/amd64, refactor #4688

Merged
merged 3 commits into from
Jun 10, 2024

Conversation

nxsaken
Copy link
Contributor

@nxsaken nxsaken commented Jun 4, 2024

Description

Since the Dockerfile only supports building for linux/amd64, let's pin it for now before we introduce multi-arch builds. Unused (seemingly) dependencies and unnecessary RUN layers have been removed/compressed.

Linked issue

Related to #4687.

Benefits

Docker builds should be faster, unneeded stuff doesn't clutter the Dockerfile.

Checklist

  • I've read CONTRIBUTING.md
  • I've used the standard signed-off commit format (or will squash just before merging)
  • All applicable CI checks pass (or I promised to make them pass later)
  • (optional) I've written unit tests for the code changes
  • I replied to all comments after code review, marking all implemented changes with thumbs up

Dockerfile Outdated Show resolved Hide resolved
@nxsaken nxsaken force-pushed the build/dockerfile-refactor branch 2 times, most recently from 4819ab7 to 9128292 Compare June 5, 2024 04:37
0x009922
0x009922 previously approved these changes Jun 6, 2024
Copy link
Contributor

@0x009922 0x009922 left a comment

Choose a reason for hiding this comment

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

Haven't checked whether the image works, but LGTM

Dockerfile Outdated Show resolved Hide resolved
@nxsaken nxsaken force-pushed the build/dockerfile-refactor branch 3 times, most recently from 6d244f5 to b96800d Compare June 6, 2024 07:20
@nxsaken nxsaken marked this pull request as draft June 6, 2024 08:00
@nxsaken nxsaken marked this pull request as ready for review June 6, 2024 08:09
@nxsaken nxsaken force-pushed the build/dockerfile-refactor branch from b96800d to 615ce3e Compare June 6, 2024 08:09
@nxsaken
Copy link
Contributor Author

nxsaken commented Jun 6, 2024

I was able to set up a network and run some CLI commands.

@mversic mversic force-pushed the build/dockerfile-refactor branch from 615ce3e to 35b7a7d Compare June 10, 2024 08:21
@nxsaken nxsaken force-pushed the build/dockerfile-refactor branch from 35b7a7d to f5a9efc Compare June 10, 2024 08:43
@nxsaken nxsaken merged commit ec5c409 into hyperledger-iroha:main Jun 10, 2024
9 of 10 checks passed
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