maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [HowTo] Compile applications with Docker instead of VirtualBox (https://talk.maemo.org/showthread.php?t=100437)

coderus 2018-08-17 14:48

[HowTo] Compile applications with Docker instead of VirtualBox
 
TLDR:

clone https://github.com/CODeRUS/docker-sa...-sdk-local.git

build and run container with provided scripts

for windows: compile helper-win

start qtcreator from helper- folder with qtcreator script

Information:

Docker container is based on https://github.com/SfietKonstantin/d...sailfishos-sdk

Build script and Dockerfile contains instruction to create new container suitable for using with Sailfish OS SDK.

Technical details:

Container is based on latest sialfishos-buildengine-sdk container: https://hub.docker.com/r/coderus/sai...s-platform-sdk

Dockerfile perform all magic operations including:

Add mersdk user to build engine
Transform Platform SDK to Application SDK
Install SSH server
Install SDK manage web interface

Additional helper scripts features:

run script expose 2222 and 8080 ports on windows, and using host network in linux systems.
helper-win contains c# console application for faking QtCreator virtualbox machine running status. start compile.bat to compile. For linux users no additional compilation is required.
install.sh for linux adds sdk-build-package command to your PATH, a handy mb2 wrapper.

Have fun and comment!

pagis 2018-08-17 19:26

Re: [HowTo] Compile applications with Docker instead of VirtualBox
 
in run.sh line4 SailfishOS2 should be SailfishOS

it also assumes SailfishOS is under /home/$USER which is not always the case.

coderus 2018-08-18 06:07

Re: [HowTo] Compile applications with Docker instead of VirtualBox
 
Quote:

Originally Posted by pagis (Post 1547253)
in run.sh line4 SailfishOS2 should be SailfishOS

it also assumes SailfishOS is under /home/$USER which is not always the case.

I have multiple SailfishOS SDK installations on my PC to test many things, so i have SailfishOS2/3/4/5 folders :)

I'm sure you can tune script for your installation location easily :)


All times are GMT. The time now is 10:54.

vBulletin® Version 3.8.8