-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add dockerfile build in Makefile #8
Conversation
Makefile
Outdated
|
||
## dockerfiles/ ######################################## | ||
docker.build: | ||
docker build -t="sdnvortex/cv-server:latest" ./dockerfiles/ |
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.
use the dockerfiles/dockerfile
as the dependency of target docker.build
Please rebase master and check the build won't fail.
By the way, use the variable for tag, such as
--tag $(DOCKER_REGISTRY)/$(PROJECT):$(IMAGE_TAG) \
--file $< .
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.
Remove ARG BRAND=aurora
6e3f241
to
cb7ca00
Compare
Codecov Report
@@ Coverage Diff @@
## master #8 +/- ##
======================================
Coverage 46.9% 46.9%
======================================
Files 11 11
Lines 307 307
======================================
Hits 144 144
Misses 152 152
Partials 11 11 Continue to review full report at Codecov.
|
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.
Also fix the typo in the Makefile
voetext --> vortex
Makefile
Outdated
## For docker | ||
DOCKER_REGISTRY = sdnvortex | ||
IMAGE_TAG = latest | ||
PROJECT = cv-server |
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.
project is vortex.
cb7ca00
to
f9cd5e0
Compare
dockerfiles/Dockerfile
Outdated
|
||
ENV CGO_ENABLED 0 | ||
ENV GOOS linux | ||
ENV TIMEZONE "Asia/Shanghai" | ||
ARG BUILD_MODE=release | ||
ARG BRAND=aurora | ||
ARG BRAND=vortex |
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.
@hwchiu BRAND should be removed not changed?
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.
This BRAND is for L24.
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.
We don't need the BRAND here, that's for our previous project.
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.
Also modify the L24 to remove the BRAND, Thanks
f9cd5e0
to
51fa044
Compare
I fixed it. |
- Add docker build - Fix typo from vortext to vortex
51fa044
to
4791ad6
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.
LGTM
dockerfiles/Dockerfile
Outdated
|
||
ENV CGO_ENABLED 0 | ||
ENV GOOS linux | ||
ENV TIMEZONE "Asia/Shanghai" | ||
ARG BUILD_MODE=release | ||
ARG BRAND=aurora | ||
ARG BRAND=vortex |
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.
Also modify the L24 to remove the BRAND, Thanks
DEV: Phstsai/add kube state metrics Approved-by: Yo-An Lin <[email protected]> Approved-by: Hung-Wei Chiu <[email protected]> Former-commit-id: c2568673160410ee5c27de9dd6ec1556d07159e7 [formerly da59bf3] Former-commit-id: 6c81e35fc5be5c022fc666d558a549b42c32175e
Add dockerfile build in Makefile Former-commit-id: abbe5cc086466197393150e28bea8d0c218a2427 [formerly 1ef925f] Former-commit-id: 1f3ce17a40dc17fbf3a06e4b62194ac695a10813
DEV: Phstsai/add kube state metrics Approved-by: Yo-An Lin <[email protected]> Approved-by: Hung-Wei Chiu <[email protected]> Former-commit-id: c2568673160410ee5c27de9dd6ec1556d07159e7 [formerly c2568673160410ee5c27de9dd6ec1556d07159e7 [formerly da59bf3]] Former-commit-id: 6c81e35fc5be5c022fc666d558a549b42c32175e Former-commit-id: d37dd00
DEV: Phstsai/add kube state metrics Approved-by: Yo-An Lin <[email protected]> Approved-by: Hung-Wei Chiu <[email protected]>
Add dockerfile build in Makefile
No description provided.