-
Notifications
You must be signed in to change notification settings - Fork 17
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 dmsghttp feature #131
add dmsghttp feature #131
Conversation
As this PR has been merged already and there are a few changes regarding the |
build.conf
Outdated
@@ -29,6 +29,8 @@ SKYWIRE_VERSION=v0.5.0 | |||
|
|||
SKYWIRE_ARM64_DOWNLOAD_URL="https://github.com/skycoin/skywire/releases/download/$SKYWIRE_VERSION/skywire-$SKYWIRE_VERSION-linux-arm64.tar.gz" | |||
SKYWIRE_ARM_DOWNLOAD_URL="https://github.com/skycoin/skywire/releases/download/$SKYWIRE_VERSION/skywire-$SKYWIRE_VERSION-linux-arm.tar.gz" | |||
|
|||
DMSGHTTP_CONFIG_URL="https://raw.githubusercontent.com/skycoin/skywire/master/dmsghttp-config.json" |
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 will fail for the time being, since we dont have that on master yet. Please change it to develop and make a ticket to swap it out once we make the new release.
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.
Done. Its issue is #133.
pkg/prepconf/prepare.go
Outdated
|
||
if bp.DMSGHTTP == "dmsghttp" { | ||
var dmsghttpData visorconfig.DmsgHTTPServers | ||
dmsghttpFile, err := os.Open("/etc/dmsghttp-config.json") |
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.
Can we just use os.Readfile
here?
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're right. Handled.
Fixes skywire-services #423
Changes:
skyimager
make build-skybian-img
How to test:
git clone [email protected]:mrpalide/skybian.git --branch feature/dsmghttp
clone skywire@develop branch bygit clone [email protected]:mrpalide/skywire.git --branch develop
editgo.mod
and uncommentreplace github.com/skycoin/skywire => ../skywire
make dep
changeDMSGHTTP_CONFIG_URL
on build.conf file tohttps://raw.githubusercontent.com/skycoin/skywire/develop/localServers.json
make build-skybian-img BOARD=rpi64 ARCH=arm64
base on your board.make run-skyimager-gui
and checkUse dmsgHTTP
./etc/skywire-config.json
to see new dmsghttp URLs services.Does this change need to mentioned in CHANGELOG.md?
Yes