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

Dockerfile is broken #38

Closed
BSC-aujl opened this issue Oct 9, 2024 · 1 comment · Fixed by #42
Closed

Dockerfile is broken #38

BSC-aujl opened this issue Oct 9, 2024 · 1 comment · Fixed by #42

Comments

@BSC-aujl
Copy link

BSC-aujl commented Oct 9, 2024

Building a Docker image from the repo is not working

The error hints that we need to get a repo

------                                                                                                                             
 > [builder 4/4] RUN CGO_ENABLED=0 go build -o /opt/bin/app github.com/certusone/solana_exporter/cmd/solana_exporter:              
0.241 no required module provides package github.com/certusone/solana_exporter/cmd/solana_exporter; to add it:
0.241 	go get github.com/certusone/solana_exporter/cmd/solana_exporter

Adding

RUN go get github.com/certusone/solana_exporter/cmd/solana_exporter

before the line

RUN CGO_ENABLED=0 go build -o /opt/bin/app github.com/certusone/solana_exporter/cmd/solana_exporter

fixes the build for me

SEJeff added a commit that referenced this issue Oct 10, 2024
@SEJeff
Copy link
Contributor

SEJeff commented Oct 10, 2024

The path is wrong since it was migrated from the certusone github org. I've fixed this in #42. Thanks for the report.

We are in the process of some fairly major refactors and will be making a release soon-ish.

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 a pull request may close this issue.

2 participants