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 sei chain #99

Merged
merged 6 commits into from
Feb 27, 2023
Merged

Add sei chain #99

merged 6 commits into from
Feb 27, 2023

Conversation

agouin
Copy link
Member

@agouin agouin commented Feb 24, 2023

  • Add Sei chain as a cargo build dockerfile type since it requires glibc
  • cleanup dockerfiles
  • Add go.mod lookup for cargo dockerfile also. install golang for building if go.mod exists.
  • Add set -eux to all dockerfile script steps to catch any errors along the way instead of proceeding past them.

@agouin agouin marked this pull request as draft February 24, 2023 22:33
@agouin agouin marked this pull request as ready for review February 24, 2023 22:37
Copy link
Contributor

@DavidNix DavidNix left a comment

Choose a reason for hiding this comment

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

All the bash changes were fairly large, but I trust the builds are working as intended.

If I had more time, I'd ask ChatGPT to explain what all the bash is doing as part of this review. 😆

Comment on lines +149 to +156
RUN bash -c 'set -eux;\
i=0; for BIN in /root/bin/*; do\
echo "Getting $(uname -m) libs for bin: $BIN";\
readarray -t LIBS < <(ldd "$BIN");\
for LIB in "${LIBS[@]}"; do\
PATH1=$(echo $LIB | awk "{print \$1}");\
if [ "$PATH1" = "linux-vdso.so.1" ]; then continue; fi;\
PATH2=$(echo $LIB | awk "{print \$3}");\
Copy link
Contributor

Choose a reason for hiding this comment

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

No change now. But I had a thought. I bet these long bash commands will be easier to read if in a .sh or .bash file that's copied into the container. We'd get IDE syntax highlighting, for example.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call. Will handle that as a follow up

@agouin agouin merged commit 4cbd2ec into main Feb 27, 2023
@agouin agouin deleted the andrew/sei branch February 27, 2023 16:10
agouin added a commit that referenced this pull request Feb 27, 2023
* Add Sei chain

* wip

* Move to cargo build strategy

* Update chains.yaml

* Integrate optional go install/build into cargo dockerfile
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.

None yet

2 participants