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

Docker build and publishing #30

Merged
merged 7 commits into from
Sep 29, 2023
Merged

Docker build and publishing #30

merged 7 commits into from
Sep 29, 2023

Conversation

tuler
Copy link
Member

@tuler tuler commented Sep 28, 2023

@tuler tuler requested a review from brunomenezes September 28, 2023 19:01
@vercel
Copy link

vercel bot commented Sep 28, 2023

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

Name Status Preview Comments Updated (UTC)
rollups-explorer-mainnet ✅ Ready (Inspect) Visit Preview Sep 28, 2023 7:02pm
rollups-explorer-sepolia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 28, 2023 7:02pm
rollups-explorer-workshop ✅ Ready (Inspect) Visit Preview Sep 28, 2023 7:02pm

throw new Error(
"NEXT_PUBLIC_EXPLORER_API_URL environment variable is required for GraphQL code generation.",
);
const schema = "https://squid.subsquid.io/cartesi-rollups-mainnet/graphql";
Copy link
Collaborator

Choose a reason for hiding this comment

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

@tuler, Is it not better to get from the environment variable instead of hardcoded?

Copy link
Member Author

Choose a reason for hiding this comment

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

the problem of using the environment is that often we want to build for localhost but the localhost environment is not necessarily running during the build

Copy link
Collaborator

Choose a reason for hiding this comment

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

But then you can set up that build to whatever URL you want to work with. Because the environments (sepolia/mainnet) may be in parity now, but that is not guaranteed, and the testnet is more likely to have new graphQL updates that would cause build problems on Vercel, for example. I think we don't have this defined here on GitHub action variables, but I would setup to use Sepolia endpoints.

Copy link
Member Author

Choose a reason for hiding this comment

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

So maybe we should separate the NEXT_PUBLIC_EXPLORER_API_URL variable from the variable used by the codegen?

Copy link
Collaborator

@brunomenezes brunomenezes Sep 29, 2023

Choose a reason for hiding this comment

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

Yeah. For now, it shouldn't be a problem and should not be a blocker to proceed with Sunodo's developments. But we will need to improve that part for this code generator to support multiple situations, e.g. Our own Vercel deployments, docker image generation for external use, etc.

docker-bake.hcl Show resolved Hide resolved
@tuler tuler merged commit ca175ea into main Sep 29, 2023
@tuler tuler deleted the feature/docker branch September 29, 2023 15:05
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