SailfishOS development environment in Docker. Still experimental, feel free to make PR's
- Build image:
docker build -t sailfishsdk .
- Run setup:
docker run --name sailfishsdk-setup -it --privileged sailfishsdk /setup.sh
- Store the current state as a new image:
docker commit sailfishsdk-setup sailfishsdk:setup
To build helloworld-pro-sailfish as an example:
- Enter the SDK
docker run --name sailfishsdk -it --privileged sailfishsdk:setup /srv/mer/sdks/sfossdk/mer-sdk-chroot
- Clone and build
cd /home/docker
git clone https://github.com/amarchen/helloworld-pro-sailfish.git
cd helloworld-pro-sailfish
mb2 -t SailfishOS-latest-armv7hl buildTODO: The build fails, why?
- If you exit the container, you can re-enter it with
docker start -ai /sailfishsdk
To install packages in target, use:
sb2 -t SailfishOS-latest-armv7hl -m sdk-install -R zypper in ...
- The SDK refuses to install in unprivileged container. Docker build can't be run in one so the setup must be done as a separate step. Any workarounds for this?
- Build of helloworld-pro fails. Why is this?