mos-tool icon indicating copy to clipboard operation
mos-tool copied to clipboard

How to launch my own FWBuild server?

Open Harvie opened this issue 6 years ago • 9 comments

mos help --full mentions this parameter: --server string FWBuild server (default "https://mongoose.cloud")

How can i install such service on my server, so we don't have to get docker running on all of our developer laptops? Default mongoose.cloud server has some time limit, which is too small for us. even for relatively small test projects. So i would like to have my own server without time limit.

Harvie avatar Nov 14 '19 11:11 Harvie

you need to run fwbuild-manager. the source is here, there's also a dockker-compose file that should give you an idea: https://github.com/mongoose-os/mos/tree/master/fwbuild

there is currently no documentation, if you can contribute a README that would be great.

rojer avatar Nov 14 '19 12:11 rojer

also, the new location for the mos repo is https://github.com/mongoose-os/mos, please move all activity there.

rojer avatar Nov 14 '19 12:11 rojer

@Harvie Did you ever end up completing this ? I`m at the same stage when i need to setup a build server remotely ...

amizer12 avatar Aug 24 '21 19:08 amizer12

@Harvie Did you ever end up completing this ?

Not really, but i still think it would be useful as some of my coworkers were still not able to get it running localy and i dont want to spend time fixing everyone's laptop.

Harvie avatar Aug 24 '21 19:08 Harvie

@Harvie Thanks - wil post here if i will be able to get anywhere - greetings form a fellow Bill Hicks fan :)

amizer12 avatar Aug 24 '21 19:08 amizer12

@Harvie i`ve added instructions how to set this up to main Readme file - hope that helps - https://github.com/mongoose-os/mos#setup-a-private-build-server--ubuntu-

amizer12 avatar Sep 07 '21 07:09 amizer12

@amizer12 cool! seems simple. thank you. i wonder if there is way to increase the file size limit. removing the deps seems bit problematic to me, since i sometimes have local modifications made in the deps during the development and debuging. i also have local deps without online repository.

Harvie avatar Sep 07 '21 07:09 Harvie

@Harvie editing /mos/fwbuild/manager/fwbuild_manager.go will change the file size limit - see line : payloadLimit = flag.Int64("payload-size-limit", 5*1024*1024, "Max upload size")

amizer12 avatar Sep 07 '21 07:09 amizer12

local deps - i.e. libs with location: /path - should be working already. not sending clean deps to server is a long time TODO, for now we just ship everything.

rojer avatar Sep 07 '21 08:09 rojer