Ask / Submit
24

[Dev] Sailfish SDK as a Docker image

asked 2018-07-21 20:00:38 +0300

Hello !

For your delight, here is the Sailfish (platform) SDK packaged as a docker image. However, at the moment you have to build it yourself, as I'm unsure about if I have the rights to upload it to docker hub.

Check https://github.com/SfietKonstantin/docker-sailfishos-sdk for more information.

Tests are welcomed, and bugreports can be posted on the github repo.

edit retag flag offensive close delete

Comments

this way is for creating kinda "readonly" image, like obs does. every rpm build will download build requires again, and changes inside image will not be persistent.

but it's good start for making base image, everyone can commit to new image with required changes.

coderus ( 2018-07-24 13:26:42 +0300 )edit

@coderus, indeed, I desgined this image to be able to use in (eg) Jenkins CI.

What kind of persisted changes you are expecting ? Maybe we can see if there are always-installed packages to be included in the script, or build several flavours of the image.

Sfiet_Konstantin ( 2018-07-24 20:38:21 +0300 )edit

for example sudo zypper in python-rpm lvm2 atruncate pigz is required to build firmware images using this container :)

coderus ( 2018-07-29 10:17:11 +0300 )edit

2 Answers

Sort by » oldest newest most voted
7

answered 2018-08-13 17:09:57 +0300

coderus gravatar image

Pushed to docker hub:

Will try to maintain it in future.

edit flag offensive delete publish link more

Comments

Hello,

Wanna PR to base repo ?

:)

Sfiet_Konstantin ( 2018-08-13 23:31:47 +0300 )edit
1

Well, i still not decided if it's better to have SailfishOS-latest target names, or SailfishOS-version ones. For CI it should be better to have latest, but at the same time it will be good to be sure you building for exact SailfishOS version, so, let's discuss this :) I am planning to update my repo for each new sdk release and set tag, so users can pull any sfos sdk version (if) they want.

Also I am planning to try to use this image for HADK stuff as well, requires more experiments here.

coderus ( 2018-08-14 09:40:06 +0300 )edit

What about tagging and use git tag to build a given version ? - Assume at current commit there is a tag & then you pass some flags to build script you build the image coresponding to tagged version - If no tag at current commit and / or not passed the argument to build tagged image, you build latest.

Sfiet_Konstantin ( 2018-08-14 20:08:51 +0300 )edit
3

answered 2018-08-13 17:27:45 +0300

coderus gravatar image

updated 2018-08-13 17:51:03 +0300

Also i made this: - https://github.com/CODeRUS/docker-sailfishos-sdk-local

Image can be used to build packages with Sailfish OS SDK (Qt Creator) instead of virtual machine. Some additional magic is needed (see: https://github.com/evilJazz/sailfishos-buildengine)

edit flag offensive delete publish link more

Comments

Is this way faster than the Virtual Machine one? Building big projects can take same time with the VM.

Dylan Van Assche ( 2018-08-13 22:42:54 +0300 )edit

It should not be faster if you give your vm enough cpu cores and ram.

coderus ( 2018-08-14 09:37:07 +0300 )edit

You might gain some minimal time by shaving off virtualized OS resource consumption.

Sfiet_Konstantin ( 2018-08-14 20:09:41 +0300 )edit
Login/Signup to Answer

Question tools

Follow
7 followers

Stats

Asked: 2018-07-21 20:00:38 +0300

Seen: 447 times

Last updated: Aug 13