-
Notifications
You must be signed in to change notification settings - Fork 33
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
[core] Protocol Upgrades #948
Changes from 22 commits
729b558
8239913
15dc15f
68601ba
f21945e
c555dcb
8a3a246
52ac14f
4408e6a
d34715a
ff0ea16
8ff4565
f96a3f1
7a18107
53422aa
c843e47
e33bc06
45a0f56
b784a7e
4e6e905
5c07b9d
2cd8bd8
f637943
71b1c51
3357f2e
580dbfb
02a8e4c
08d55bc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
ARG GOLANG_IMAGE_VERSION=golang:1.20-alpine3.16 | ||
ARG GOLANG_IMAGE_VERSION=golang:1.20-bookworm | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not against this change, but using a bare-minimum image like alpine and adding what we need to it is highly preferable to using a (potentially) bloated image that happens to have the packages we need preinstalled. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. heh ur an infra guy too? yeah i made this change to have parity with the localnet since both were using debian. Alpine is great for prod, a bit tough on people in development. In any case, what is ur action here and let's move it to a new issue as to not slow down protocol work. |
||
FROM ${GOLANG_IMAGE_VERSION} AS builder | ||
|
||
ENV POCKET_ROOT=/go/src/github.com/pocket-network | ||
|
||
WORKDIR $POCKET_ROOT | ||
|
||
COPY . . | ||
|
||
# Install bash | ||
RUN apk add --no-cache bash | ||
|
||
# Hot reloading | ||
RUN go install github.com/cespare/reflex@latest | ||
|
||
CMD ["/bin/bash"] | ||
RUN apt-get update && apt-get install -y procps bash-completion jq | ||
RUN echo "source /etc/bash_completion" >> ~/.bashrc | ||
# tail -n +2 removes the first line of the completion script since the CLI spits out some logs | ||
RUN echo "source <($POCKET_ROOT/bin/p1 completion bash | tail -n +2)" >> ~/.bashrc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there anything else in the response we can print? A single status code, e.g. 404 for a bad request, does not help the user understand why a request failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not to my immediate knowledge. I haven't extensively reviewed our rpc error handling nor our openapi spec. In any case, this should be a new opened in a new issue with your requirements here https://github.com/pokt-network/pocket/blob/main/rpc/v1/openapi.yaml#L1