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

Why not give binaries that can be run directly, similar to geth, and use wget to download directly #2252

Open
ZYS980327 opened this issue Apr 23, 2024 · 1 comment

Comments

@ZYS980327
Copy link

**It seems more convenient to run the compiled files directly

@jagerman
Copy link

jagerman commented May 3, 2024

Agreed; a docker-only distribution model is a pretty unfriendly software distribution model.

I wrote this little shell script to build and then and extract the nitro binary out of the source code:

#!/bin/bash

set -e -x

docker build . --tag nitro-node
docker create --name nitro-tmp-extract nitro-node
docker cp -a nitro-tmp-extract:/usr/local/bin/nitro nitro
docker rm nitro-tmp-extract

or this should work to extract the binary from an official docker image (obviously change the tag as needed):

#!/bin/sh

set -e -x

docker create --name nitro-tmp-extract offchainlabs/nitro-node:v2.3.3-6a1c1a7
docker cp -a nitro-tmp-extract:/usr/local/bin/nitro nitro
docker rm nitro-tmp-extract

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

No branches or pull requests

2 participants