This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Compiling and running KDE inside Docker

Tags: docker, kdesrc-build, kdelibs, workspace docker, kdesrc-build, kdelibs, workspace docker, kdesrc-build, kdelibs, workspace
(comma "," separated)
Wenzel
Registered Member
Posts
26
Karma
0
OS
Hi ! :)

I would like to share with you a project that I started back in January of this year.

The idea was to provide to the new KDE developers a quick and simple way to get a working development environement
with all the required build dependencies already installed.

I choose Docker to get a lightweight environment, over a heavy virtual machine.

The project is here => https://github.com/Wenzel/docker-kdesrc-build

For now, I'm able to build and run a container, and mount a host directory inside it, so that you can still view and access the source code from your host system.

After building, you will be able to run a graphical application on the desktop, by sharing your X11 socket, and allowing network access to it.
=> I am working on being able to run a full KDE session on another tty.

I managed to run a KDE session inside docker by using a Kubuntu 14.04 base image.
If you would like to reproduce it, you can check this repo => https://github.com/Wenzel/docker-plasma5

But I'm not able to run a KDE session from source code, compiled with kdesrc-build.
=> Is there anyone who could help me on this ?

That would be awesome to have a Docker wrapper above the kdesrc-build tool,
and to be able to run the latest KDE next to Unity or Gnome shell ! ;D

Thanks for your feedback !
dinosath
Registered Member
Posts
7
Karma
0
It would be awesome if we could create a plugin for KDevelop based on this. Each project could be run inside a docker container even a remote one.
User avatar
maili
Registered Member
Posts
6
Karma
0
OS

running KDE inside Docker

Sat Sep 12, 2015 6:03 pm
Wenzel wrote: Thanks for your feedback !


It sure is a great docker project. ^-^

Believing that a docker container acts the exact same way on any machine, I must report though that many parts of KDE do not build. Lots a packages missing for a full devel. environment.
(using the default archlinux base)

(Mr Wenzel stated this in this forum, but the github repo is less explicit on this, implying the project may possibly be fully fledged already.)

especially Xvfb can thus not be run cuz it does not compile to begin with. :<

Also the dual X server froze my machine and the vnc business looked kinda sketchy here. :-\

so first of all the build environment should be completed so that all the binaries are made so they can actually be started. 8)


the instruction from the README

"Note that you should have build the `workspace` set first :< (`kdesrc-build workspace`)"

is placed out of sequence in README, it belongs in its proper earlier place in the workflow. 8)
Wenzel
Registered Member
Posts
26
Karma
0
OS
Hi maili !

thank you for your feedback !

I must report though that many parts of KDE do not build. Lots a packages missing for a full devel. environment.

Please, tell me which one, so that i can update the Dockerfile ;D

Believing that a docker container acts the exact same way on any machine

that's correct !
I've tried many time to build and run KDE inside Docker, but I had some difficulties, since some capabilities are dropped inside a container.
Also, i had to set some environment variables, so that the plasma desktop can find the location of QML related files, etc...

But if you would like to give it a try, you are more than welcome ;)
especially Xvfb can thus not be run cuz it does not compile to begin with.

Xvfb is installed when you are building the Archlinux Dockerfile.
Why do you need to compile it ?
Also, installing base-devel would be a good idea.
"Note that you should have build the `workspace` set first :< (`kdesrc-build workspace`)"
is placed out of sequence in README, it belongs in its proper earlier place in the workflow. 8)

I just wanted to say that if had to build the workspace group to get the startkde script, and the rest of the workspace components. :)

Again, thank you for your review !
Don't hesitate to make a pull request !
User avatar
maili
Registered Member
Posts
6
Karma
0
OS
Wenzel wrote:Hi maili ! Don't hesitate to make a pull request !


yo hi man ;)

I like Mr Wenzel's idea very much and will try to get a fully fledged KDE compile-from-sources system going in docker.

I'll keep u posted on any progress I make. 8)
User avatar
maili
Registered Member
Posts
6
Karma
0
OS

Manjaro

Mon Sep 21, 2015 4:46 pm
a fast way to get this project going is:

* run Manjaro Linux distro (arch based)
* use yaourt to install docker, eclipse, docker-tooling

do the usual stuff. In eclipse-docker-tooling, don't expect autodetect to work. rtm. ;)

This way, you get "Elegant Engelbart" going in no time ... :D
User avatar
maili
Registered Member
Posts
6
Karma
0
OS
User avatar
maili
Registered Member
Posts
6
Karma
0
OS

github

Wed Sep 23, 2015 9:05 pm
this github thing can give u the creeps. It is somewhat buggy I think.

maybe at some time the links will be revived or sth.
Wenzel
Registered Member
Posts
26
Karma
0
OS
Hi mailli !

Thank you for your work on the docker-kdesrc-build Github repo , I really appreciate ! :)

Using the github pages to create a Wiki for the projet is definitely a good idea !

And nice theme btw ;)
User avatar
maili
Registered Member
Posts
6
Karma
0
OS

running KDE inside Docker

Sun Sep 27, 2015 6:04 pm
yes, the project is on the forefront of technology!

Very useful once it is fully in operation. ^-^


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]