Comments (18)
It should be easy to generate a deb file with fpm, which could then be distributed with a reprepro repository.
from groundcontrol.
I was just looking though the sources, to see if the paths could easily be changed. If you'd like to generate a deb-package for groundcontrol you can't (or shouldn't) just pack everything in the same folder. Static, shared files (like html, css or image files) shouldn't be in the same folder as the binary e.g.
In main.go line 100 I found this: http.Handle("/", http.FileServer(http.Dir("./web/")))
I'm not very familiar with go, but this looks rather static to me. There are two possibilities for a package maintainer. Either refactor this part and make it more dynamic (e.g. look for web
at several locations) or just create a patch with a new static path to the location used with a deb-package-installation.
Oh, and merry christmas btw! :)
from groundcontrol.
Hey guys, I've been watching this issue lately, I'll try to take a dive with fpm to generate a package but it may take a bit of time since I'm working on a new open source project (that may relate to the Pi in a way).
Thanks for the pointers - I guess I'll bump into those issues when I try that.
Merry Christmas all :)
from groundcontrol.
@jondot you can take a look at my fpm makefiles for inspiration. Ping me if you need help!
from groundcontrol.
Hello,
I have been trying to make Arch Linux package (PKGBUILD).
For building I'm using go get since it both resolves dependencies and builds binary.
After building there are thre dirs in $GOPATH - bin, src and pkg. This resembles content of /usr/lib/go
which is set as $GOROOT by default on Arch. Running groundcontrol from $GOPATH/bin results in empty web page, so it should look for web folder in $GO{PATH,ROOT}/src/...
from groundcontrol.
@vulpesvelox could you please post a link to your pkg descr. file, so that I can take a look at it!?
from groundcontrol.
Sure, here it is.
http://pastebin.com/u4WGK3vT
And this is built package.
https://www.dropbox.com/sh/50itu75syigt05n/XppPuzVygh/groundcontrol-git-0.0.3-1-any.pkg.tar
from groundcontrol.
@vulpesvelox I'm not really familiar with Arch packaging (or go :), but to me it looks like you are not actually building groundcontrol (go build *.go
) - although the groundcontrol binary appears to be in your package.
The source files from $GOPATH won't have to be in your package. These sources are only needed to build groundcontrol. You only need the groundcontrol binary, the web
-folder, a groundcontrol.json
in etc
and the init-script. Since the path to web
is hard coded to ./web/
, you might want to put the groundcontrol binary and web
into /opt/groundcontrol/
or something like that.
I hope that helps a bit!
from groundcontrol.
I took your advice and installed everything in /opt, but the problem is page works only if I run binary from dir where it's installed.
For example, "/opt/groundcontrol-git/groundcontrol" gives me 404, but
"cd /opt/groundcontrol-git ; groundcontrol" works.
from groundcontrol.
@vulpesvelox yeah, I guess you'll either have to deal with it in the init script or patch the sources. If I read the sources correctly, ground control assumes that the folder web is found in pwd
.
This question from stackoverflow might help you if you decide to patch the sources. You might also open an other issue for this. Perhaps @jondot has better ideas. ;)
from groundcontrol.
Thank you. I'll try to come up with something.
from groundcontrol.
Any updates on this?
from groundcontrol.
Take a look at #33. You are now able to generate you own packages with fpm. I can't provide you with a test package, because all of my raspberries are in use. But feel free to give me feedback!
from groundcontrol.
@Jamesking56 did you test it? Everything okay?
from groundcontrol.
No haven't had chance to test since my Raspberry Pi is in a different county than I am and it's not switched on lol
On 1 Apr 2015, at 2:33 pm, Jochen Breuer [email protected] wrote:
@Jamesking56 did you test it? Everything okay?
—
Reply to this email directly or view it on GitHub.
from groundcontrol.
@Jamesking56 Then I'd suggest to leave it open until everything is working reliably. :)
from groundcontrol.
It would be great if these deb files that are generated could be stored in a repository like https://packagecloud.io
from groundcontrol.
@spuder It is fairly easy to host your own repository with reprepro[1]. You can find some information about a deployment with it on my blog[2] under the headline: "Full Blown Deployment With reprepro".
[1] https://mirrorer.alioth.debian.org/
[2] http://brejoc.com/cup-recipe-for-django-python-deployment-part-3-deployment/
from groundcontrol.
Related Issues (20)
- Set up a set of configuration examples HOT 1
- Provide experimental builds for Linux
- Build failure on ubuntu 12.04: control.go:54: undefined: strings.TrimPrefix HOT 2
- Cannot read from AMD Chips HOT 3
- Temperature is -273.15 when groundcontrol cannot read the temperature. HOT 2
- tempo-db issues HOT 2
- Program crashed HOT 24
- init.d file, update-rc.d problem? HOT 2
- Status feature HOT 3
- running script HOT 1
- Choosing series to record HOT 4
- librato config HOT 2
- Silent mode? HOT 3
- Groundcontrol crashes HOT 1
- Missing /sys/class/thermal/thermal_zone0/temp file
- Unable to parse with two control toggles HOT 2
- Ground Control on OpenELEC? HOT 2
- Need help to install on RHEL HOT 3
- Crashes complaining about invalid memory address HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from groundcontrol.