Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

xingleigao
Copy link

There is twice commmit.

  1. Update go-rpio to support raspi4b
  2. add a web app to control led light.

And I update ReadMe adn some images to that.

@kubeedge-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign after the PR has been reviewed.
You can assign the PR to them by writing /assign in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeedge-bot kubeedge-bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jan 6, 2023
@xingleigao
Copy link
Author

/assign

metadata:
labels:
k8s-app: kubeedge-counter-app
name: kubeedge-counter-app

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

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 the name and label. they are still kubeedge-counter-app

go build -o kubeedge-counter-controller main.go

docker:
docker build . -t kubeedge/kubeedge-counter-app:v1.0.0

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

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

@RyanZhaoXB
Copy link

please remove the binary of kubeedge-counter-controller

@RyanZhaoXB
Copy link

please move all the deployment yaml files of web controller and light mapper to a unified folder

Signed-off-by: xingleigao <[email protected]>
@xingleigao
Copy link
Author

Hi, I have fixed all issue. Please check again.

@xingleigao xingleigao marked this pull request as draft February 6, 2023 06:02
@kubeedge-bot kubeedge-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 6, 2023
@xingleigao xingleigao marked this pull request as ready for review February 6, 2023 06:03
@kubeedge-bot kubeedge-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 6, 2023
@xingleigao
Copy link
Author

@RyanZhaoXB please have a look.

metadata:
labels:
k8s-app: kubeedge-counter-app
name: kubeedge-counter-app

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 the name and label. they are still kubeedge-counter-app


"github.com/kubeedge/examples/kubeedge-counter-demo/web-controller-app/utils"
devices "github.com/kubeedge/kubeedge/cloud/pkg/apis/devices/v1alpha2"

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"

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"

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"]

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"]

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"

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

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?

@xingleigao
Copy link
Author

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

@xingleigao xingleigao changed the title Add raspi4b Support and a web app to control. [Course Certification Task] Add raspi4b Support and a web app to control. Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants