Skip to content

Conversation

@onelapahead
Copy link
Contributor

When deploying the Fabric chaincode for FireFly to Kaleido, I need to ensure I create a Linux-compatible binary for it but I have a Mac. I did so using this Dockerfile and the following commands:

docker build . -t firefly-go
container_id=$(docker create firefly-go)
docker cp ${container_id}:/app/firefly.bin ./
docker rm ${container_id}

Using GOOS with the build on my Mac did not seem to work. So opening this PR to get feedback on whether this makes sense (or if I'm missing something obvious), if we need docs or additional scripting to streamline this for other folks, etc.

Signed-off-by: hfuss <haydenfuss@gmail.com>
Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

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

🐳 🐧

@peterbroadhurst peterbroadhurst merged commit b2678eb into hyperledger:main Dec 20, 2021
@peterbroadhurst peterbroadhurst deleted the firefly-go-dockerfile branch December 20, 2021 22:21
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.

2 participants