-
Notifications
You must be signed in to change notification settings - Fork 171
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
[Course Certification Task] Add raspi4b Support and a web app to control. #129
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: xingleigao <[email protected]>
Signed-off-by: xingleigao <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
/assign |
metadata: | ||
labels: | ||
k8s-app: kubeedge-counter-app | ||
name: kubeedge-counter-app |
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.
the name of this deployment could be changed to kubeedge-light-app or something
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.
the name of this deployment could be changed to kubeedge-light-app or something
please modify thename
andlabel
. they are stillkubeedge-counter-app
go build -o kubeedge-counter-controller main.go | ||
|
||
docker: | ||
docker build . -t kubeedge/kubeedge-counter-app:v1.0.0 |
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.
the name of this image could be changed to kubeedge-light-app or something
Status devices.DeviceStatus `json:"status"` | ||
} | ||
|
||
// The device id of the counter |
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.
replace 'counter' with 'light' across this file
please remove the binary of |
please move all the deployment yaml files of |
Signed-off-by: xingleigao <[email protected]>
Hi, I have fixed all issue. Please check again. |
@RyanZhaoXB please have a look. |
metadata: | ||
labels: | ||
k8s-app: kubeedge-counter-app | ||
name: kubeedge-counter-app |
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.
the name of this deployment could be changed to kubeedge-light-app or something
please modify thename
andlabel
. they are stillkubeedge-counter-app
|
||
"github.com/kubeedge/examples/kubeedge-counter-demo/web-controller-app/utils" | ||
devices "github.com/kubeedge/kubeedge/cloud/pkg/apis/devices/v1alpha2" | ||
|
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.
please delete the blank lines of the import package
and reorder the packages
|
||
import ( | ||
"github.com/astaxie/beego" | ||
controllers "github.com/kubeedge/examples/kubeedge-counter-demo/web-controller-app/controller" |
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.
maybe it should be importing github.com/kubeedge/examples/led-raspberrypi/web-controller-app/controller
"encoding/json" | ||
"log" | ||
|
||
"github.com/kubeedge/examples/kubeedge-counter-demo/web-controller-app/utils" |
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.
maybe it should be importing github.com/kubeedge/examples/led-raspberrypi/web-controller-app/utils
COPY views /views | ||
|
||
# Define default command | ||
ENTRYPOINT ["/kubeedge-counter-controller"] |
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.
it should be /kubeedge-light-controller
ENTRYPOINT ["/kubeedge-counter-controller"] | ||
|
||
# Run the executable | ||
CMD ["kubeedge-counter-controller"] |
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.
kubeedge-light-controller
# Based on ubuntu | ||
FROM ubuntu:latest | ||
LABEL maintainers="KubeEdge Community Developer" | ||
LABEL description="KubeEdge Counter Web Controller App" |
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.
KubeEdge Light Controller App
@@ -1,50 +0,0 @@ | |||
# github.com/eclipse/paho.mqtt.golang v1.2.0 |
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.
im thinking that maybe we should remove all the vendor and use gomod
mode. do you agree?
Signed-off-by: xingleigao <[email protected]>
All has chenged. I agree with "remove all the vendor and use gomod", and I do that. Please have a look agin, thank you!@RyanZhaoXB |
There is twice commmit.
And I update ReadMe adn some images to that.