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

Fix sui-node binary placement in Docker #13139

Merged
merged 2 commits into from
Aug 3, 2023
Merged

Fix sui-node binary placement in Docker #13139

merged 2 commits into from
Aug 3, 2023

Conversation

mwtian
Copy link
Contributor

@mwtian mwtian commented Jul 25, 2023

Description

Fix sui-node Dockerfile cleanup, by adding back sui-node at /usr/local/bin/sui-node.

Test Plan

CI
https://github.com/MystenLabs/sui-operations/actions/runs/5653096771
sudo docker run mysten/sui-node:1112c07c573bb54b3a83a83b514d834451a73329 /usr/local/bin/sui-node --version


If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.

Type of Change (Check all that apply)

  • protocol change
  • user-visible impact
  • breaking change for a client SDKs
  • breaking change for FNs (FN binary must upgrade)
  • breaking change for validators or node operators (must upgrade binaries)
  • breaking change for on-chain data layout
  • necessitate either a data wipe or data migration

Release notes

@vercel
Copy link

vercel bot commented Jul 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mysten-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 3, 2023 4:21pm
sui-typescript-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 3, 2023 4:21pm
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
explorer ⬜️ Ignored (Inspect) Visit Preview Aug 3, 2023 4:21pm
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Aug 3, 2023 4:21pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Aug 3, 2023 4:21pm
sui-wallet-kit ⬜️ Ignored (Inspect) Visit Preview Aug 3, 2023 4:21pm

@mwtian mwtian requested review from ebmifa and allan-bailey July 25, 2023 06:36
@ebmifa
Copy link
Contributor

ebmifa commented Jul 25, 2023

@mwtian Did you download the newly built docker image and see if you can run it locally successfully?

@mwtian
Copy link
Contributor Author

mwtian commented Jul 25, 2023

@ebmifa yes I did run sudo docker run mysten/sui-node:1112c07c573bb54b3a83a83b514d834451a73329 /usr/local/bin/sui-node --version and it succeeded.

@mwtian mwtian requested a review from arun-koshy August 3, 2023 06:01
Copy link
Contributor

@arun-koshy arun-koshy left a comment

Choose a reason for hiding this comment

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

edit: aah I was using a docker image built specifically for linux, where can I find the docker images and one built for mac?

Is this only for linux? I tried running on my mac just out of curiosity

sudo docker run mysten/sui-node:1112c07c573bb54b3a83a83b514d834451a73329 /usr/local/bin/sui-node --version
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
sui-node 1.7.0-1112c07c5

@mwtian
Copy link
Contributor Author

mwtian commented Aug 3, 2023

You can use add a --platform linux/amd64 flag, e.g.

sudo docker run --platform linux/amd64 mysten/sui-node:1112c07c573bb54b3a83a83b514d834451a73329 /usr/local/bin/sui-node --version

@mwtian mwtian enabled auto-merge (squash) August 3, 2023 16:21
@vercel vercel bot temporarily deployed to Preview – mysten-ui August 3, 2023 16:21 Inactive
@mwtian mwtian merged commit dfe1866 into main Aug 3, 2023
@mwtian mwtian deleted the fix-docker branch August 3, 2023 16:35
ebmifa pushed a commit that referenced this pull request Aug 10, 2023
## Description 

Fix `sui-node` Dockerfile cleanup, by adding back `sui-node` at
`/usr/local/bin/sui-node`.

## Test Plan 

CI
https://github.com/MystenLabs/sui-operations/actions/runs/5653096771
`sudo docker run
mysten/sui-node:1112c07c573bb54b3a83a83b514d834451a73329
/usr/local/bin/sui-node --version`

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
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