-
Notifications
You must be signed in to change notification settings - Fork 6
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
Configuring dockerfile for rhtap build #61
Conversation
3375e2a
to
dfb0ae4
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.
I'm not sure about calling go mod vendor
and go install
in a hermetic environment. I don't see how that will work.
/retest |
be9bd1b
to
5a5d605
Compare
/retest |
7595395
to
563ded0
Compare
/retest |
f83fcf7
to
ef54174
Compare
/retest |
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.
/lgtm
Everything looks great, I approve these changes as is. I had some additional optimization suggestions if you are interested, but if you dont want to fight with tests again feel free to merge what you have here.
Dockerfile
Outdated
# Add source code | ||
ADD ./cmd/ $APP_ROOT/src/cmd/ | ||
ADD ./pkg/ $APP_ROOT/src/pkg/ | ||
COPY . . |
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.
Personally I recommend you swap out the COPY
command for ADD
. If you keep the strategy they started with, the image should be significantly smaller as you dont have to load every file from the directory in, only the ones used for go package management and building the binary. This should work if you create the directories as mentioned above.
COPY . . | |
ADD go.mod go.sum $APP_ROOT/src/ | |
RUN go mod download | |
# Add source code | |
ADD ./cmd/ $APP_ROOT/src/cmd/ | |
ADD ./pkg/ $APP_ROOT/src/pkg/ |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Gregory-Pereira, tommyd450 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
6216b7a
to
1f99f48
Compare
New changes are detected. LGTM label has been removed. |
@Gregory-Pereira your comments are useful. I'm going to go ahead and merged so we can make progress, and then these kinds of changes @tommyd450 can pick up in spare cycles. |
No description provided.