Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add cmake, nfpm to dogfood dockerfile #3558

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

Merged
merged 2 commits into from
Aug 19, 2022
Merged

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Aug 18, 2022

When zstd wasn't found locally, I ran this script to install it. It requires cmake so I added that to the Dockerfile. I also added nfpm since that's required for make build and is used to embed the site.

@jsjoeio jsjoeio changed the title jsjoeio update dockerfile feat: add cmake, nfpm to dogfood dockerfile Aug 18, 2022
@jsjoeio jsjoeio self-assigned this Aug 18, 2022
@jsjoeio jsjoeio requested review from johnstcn and kylecarbs August 18, 2022 17:51
@jsjoeio
Copy link
Contributor Author

jsjoeio commented Aug 18, 2022

Hmm 🤔

  69 |         go install mvdan.cc/sh/v3/cmd/shfmt@latest
  70 |         # nfpm is used with `make build` to make release packages
  71 | >>>     go install github.com/goreleaser/nfpm/v2/cmd/[email protected]
  72 |     
  73 |     # Ubuntu 20.04 LTS (Focal Fossa)
--------------------
error: failed to solve: dockerfile parse error on line 71: unknown instruction: go
Error: buildx failed with: error: failed to solve: dockerfile parse error on line 71: unknown instruction: go

@johnstcn
Copy link
Member

Hmm 🤔

  69 |         go install mvdan.cc/sh/v3/cmd/shfmt@latest
  70 |         # nfpm is used with `make build` to make release packages
  71 | >>>     go install github.com/goreleaser/nfpm/v2/cmd/[email protected]
  72 |     
  73 |     # Ubuntu 20.04 LTS (Focal Fossa)
--------------------
error: failed to solve: dockerfile parse error on line 71: unknown instruction: go
Error: buildx failed with: error: failed to solve: dockerfile parse error on line 71: unknown instruction: go

I think you're missing an && \ at the end of the previous command.

@jsjoeio
Copy link
Contributor Author

jsjoeio commented Aug 18, 2022

Whoops! Thank you!

@jsjoeio
Copy link
Contributor Author

jsjoeio commented Aug 18, 2022

RUN update-alternatives --install /usr/local/bin/gofmt gofmt /usr/local/goboring/bin/gofmt 100:
#0 0.084 update-alternatives: error: alternative path /usr/local/goboring/bin/gofmt doesn't exist

Any ideas on this @kylecarbs ?

@jsjoeio jsjoeio enabled auto-merge (squash) August 18, 2022 21:46
@johnstcn
Copy link
Member

RUN update-alternatives --install /usr/local/bin/gofmt gofmt /usr/local/goboring/bin/gofmt 100:
#0 0.084 update-alternatives: error: alternative path /usr/local/goboring/bin/gofmt doesn't exist

Any ideas on this @kylecarbs ?

This is probably my fault - I think I put this line in the wrong place 🤦 Updated to where it should probably go, and tested that the thing actually built for me.

@jsjoeio jsjoeio force-pushed the jsjoeio-update-dockerfile branch from ef3182b to e6c82d2 Compare August 19, 2022 15:01
@jsjoeio jsjoeio merged commit c417115 into main Aug 19, 2022
@jsjoeio jsjoeio deleted the jsjoeio-update-dockerfile branch August 19, 2022 15:10
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