-
Notifications
You must be signed in to change notification settings - Fork 19
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
Monitoring #103
Monitoring #103
Conversation
relayer/ops/monitoring/Dockerfile
Outdated
|
||
# Production image | ||
|
||
FROM ubuntu:20.04 |
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.
I would recommend alpine
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.
I agree. I added a TODO to update this at a later point. It shouldn't require any other changes. I'll use this https://github.com/smartcontractkit/atlas/blob/master/evm/Dockerfile as an example. Wdyt?
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.
I wonder if you need alpine
and scratch
could be enough?
As long as you
# copy ca certs
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
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.
I'll do this in a separate PR. Wdyt?
relayer/ops/monitoring/Dockerfile
Outdated
FROM ubuntu:20.04 AS build | ||
|
||
# OS dependencies | ||
RUN apt-get update && apt-get install -y wget gcc build-essential git | ||
|
||
# Copy source | ||
|
||
RUN mkdir -p /starknet-monitoring/relayer | ||
COPY ./relayer /starknet-monitoring/relayer | ||
|
||
# Install golang | ||
|
||
RUN wget -c https://dl.google.com/go/go1.18.1.linux-amd64.tar.gz -O - \ | ||
| tar -xz -C /usr/local \ | ||
&& mkdir -p /go/src /go/bin | ||
ENV PATH /usr/local/go/bin:$PATH | ||
|
||
# Compile binary | ||
|
||
WORKDIR /starknet-monitoring/relayer | ||
RUN go build -o ./monitoring ./cmd/monitoring/*.go |
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.
Since all this is doing is just compiling go code, why not use the golang build image like core does?
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.
I'll do this in a separate PR. Wdyt?
@archseer you marked your review as "requesting changes". What is exactly that you want me to change? the Dockerfile? |
Yeah it should be a small change that speeds up the build.
…On Fri, 16 Sep 2022, at 18:20, Alexandru Topliceanu wrote:
@archseer <https://github.com/archseer> you marked your review as "requesting changes". What is exactly that you want me to change? the Dockerfile?
—
Reply to this email directly, view it on GitHub <#103 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAKPF5XK5VLQDR5GUA56VADV6Q3VXANCNFSM6AAAAAAQFBMWXA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
4029706
to
0dff787
Compare
8c5a40f
to
1b80974
Compare
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.
looking good! just small things :)
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.
looks good to me! happy to approve knowing there will be follow up PRs :)
NOTE: this PR should not be squashed - commit history needs to be preserved
"Dismiss" is a strong word! I'll update the Dockerfile in a separate PR.
No description provided.