-
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
Add missing targets in the Makefile #4
Conversation
Signed-off-by: Ruchi <ruchipakhle@gmail.com>
Signed-off-by: Ruchi <ruchipakhle@gmail.com>
Signed-off-by: Ruchi <ruchipakhle@gmail.com>
@@ -1,37 +1,62 @@ | |||
# Extremely simple HTTP server that responds on port 8000 with a hello message. | |||
|
|||
DOCKERHUB_ID:=ibmosquito | |||
DOCKER_HUB_ID ?= ibmosquito |
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.
@Ruchip16 with the change to DOCKER_HUB_ID
make sure you change it everywhere DOCKERHUB_ID
is referenced in the Makefile
Makefile
Outdated
@@ -1,37 +1,62 @@ | |||
# Extremely simple HTTP server that responds on port 8000 with a hello message. | |||
|
|||
DOCKERHUB_ID:=ibmosquito | |||
DOCKER_HUB_ID ?= ibmosquito | |||
NAME:="web-hello-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.
Lets make this SERVICE_NAME
to be consistent with your other changes as well
Makefile
Outdated
docker push $(DOCKERHUB_ID)/$(SERVICE_NAME):$(SERVICE_VERSION) | ||
|
||
publish-service: | ||
@ARCH=$(ARCH) \ |
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 believe the issue you were seeing has to do with tab/spaces. Makefiles can be pretty picky about that. Make sure all the lines below each target are one tab in. (I believe it's tabs it wants)
Makefile
Outdated
hzn exchange service publish -O $(CONTAINER_CREDS) -f service.json --pull-image | ||
|
||
publish-pattern: | ||
@ARCH=$(ARCH) \ |
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.
Same goes for this target
Signed-off-by: Ruchi <ruchipakhle@gmail.com>
Signed-off-by: Ruchi <ruchipakhle@gmail.com>
Signed-off-by: TheMosquito <glendarling@us.ibm.com> Signed-off-by: Ruchi <ruchipakhle@gmail.com>
Signed-off-by: Ruchi <ruchipakhle@gmail.com>
Signed-off-by: Ruchi <ruchipakhle@gmail.com>
Signed-off-by: Ruchi <ruchipakhle@gmail.com>
Signed-off-by: Ruchi <ruchipakhle@gmail.com>
Signed-off-by: Ruchi <ruchipakhle@gmail.com>
Signed-off-by: Ruchi <ruchipakhle@gmail.com>
This all looks good to me, @Ruchip16. |
Makefile
Outdated
|
||
default: build run | ||
|
||
build: | ||
docker build -t $(DOCKERHUB_ID)/$(NAME):$(VERSION) . | ||
docker build -t $(DOCKER_HUB_ID ?= ibmosquito)/$(SERVICE_NAME):$(SERVICE_VERSION) . |
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.
You can remove ?= ibmosquito
everywhere except for line 3. It's only needed at the top to set it initially
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.
yess I had done that but not pushed it yet, I would do it asap
Signed-off-by: TheMosquito <glendarling@us.ibm.com> Signed-off-by: Ruchi <ruchipakhle@gmail.com>
Signed-off-by: TheMosquito <glendarling@us.ibm.com>
Signed-off-by: Ruchi <ruchipakhle@gmail.com>
I have added the service.json and pattern.json files in addition to the missing targets in the makefile, check it out once and let me know the changes in case of any
@TheMosquito @t-fine