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

[CI] Optimize rosetta docker #14272

Merged
merged 32 commits into from
Oct 19, 2023
Merged

Conversation

dkijania
Copy link
Member

@dkijania dkijania commented Oct 5, 2023

Cleaned rosetta dockerfile. Before rosetta docker build process was split into 3 stages. Unfortunately 2 stages were building mina deamon which cause unnecessary long docker build execution. I also move all rosetta related steps into single docker. I don't know if that was necessary, but if in the future we would like to clean toolchain docker, it is easier now, as i extracted all rosetta needed steps into different docker

@dkijania
Copy link
Member Author

dkijania commented Oct 5, 2023

!ci-build-me

@dkijania dkijania force-pushed the clean_rosetta_toolchain_dockers branch from dee9262 to a8274a5 Compare October 6, 2023 18:45
@dkijania dkijania force-pushed the clean_rosetta_toolchain_dockers branch from a8274a5 to eab5933 Compare October 6, 2023 18:52
@dkijania
Copy link
Member Author

dkijania commented Oct 6, 2023

!ci-build-me

@dkijania
Copy link
Member Author

dkijania commented Oct 9, 2023

!ci-build-me

@dkijania
Copy link
Member Author

dkijania commented Oct 9, 2023

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania dkijania changed the title remove duplicated building steps in rosetta docker building process. … [CI] Optimize rosetta docker Oct 18, 2023
@dkijania
Copy link
Member Author

!ci-build-me

@dkijania dkijania marked this pull request as ready for review October 18, 2023 17:05
@dkijania dkijania requested review from a team as code owners October 18, 2023 17:05
@@ -89,8 +88,17 @@ RUN export GOBIN="$(pwd)/bin" \
&& /usr/lib/go/bin/go mod tidy \
&& /usr/lib/go/bin/go install

# Rosetta-demo artifacts / build dir removal:
Copy link
Member

Choose a reason for hiding this comment

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

Is this documentation for running the test locally? It would be better to move this to somewhere more discoverable (or just delete it).

@dkijania
Copy link
Member Author

!ci-build-me

Copy link
Contributor

@Sventimir Sventimir left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

# RUN curl -sSfL https://raw.githubusercontent.com/coinbase/rosetta-cli/${ROSETTA_CLI_VERSION}/scripts/install.sh | sh -s
COPY --from=builder /usr/lib/go /usr/lib/go
RUN apt-get install -y gcc
#RUN curl -sSfL https://raw.githubusercontent.com/coinbase/rosetta-cli/${ROSETTA_CLI_VERSION}/scripts/install.sh | sh -s
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this line commented out? If it's unnecessary, let's delete it.

Copy link
Member Author

Choose a reason for hiding this comment

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

There is an explanation above to uncomment this line once coinbase fix delegation transaction support

@mrmr1993
Copy link
Member

!approved-for-mainnet

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania dkijania merged commit 578a3f8 into berkeley Oct 19, 2023
@dkijania dkijania deleted the clean_rosetta_toolchain_dockers branch October 19, 2023 17:20
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