Currently, WebOS image build system is depended on Ubuntu. Linux users who usually use other distros, such as Fedora, Arch and so on could not build the image on their host for reasons, but one of them is the library dependencies. To provide the build system on any distros, dockerize it.
$ git clone https://github.com/memnoth-projects/dockerize-build-system.git
$ cd dockerize-build-system
$ docker build --tag webos-base ubuntu-xenial/
It makes an image named webos-base
by ubuntu-xenial/Dockerfile
.
$ docker run -i -t --network host --name webos -v /path/to/mountpoint:/home/webos/mpoint webos-base /bin/bash
/path/to/mountpoint
must be a path that point to an external storage which is 100GB and above.
If your distro causes an error of SELinux permission, add :Z
flag at the end of -v
like -v /path/to/mountpoint:/home/webos/mpoint:Z
. That is usually required on the distros related to Red Hat Linux.
You could not build the image with root right away, so must be the user, webos that already existed.
$ su webos; cd
webos's home directory is mounted to /path/to/mountpoint
, but it could do nothing since the mounting point has been owned by root. Instead of it, run everything with sudo
.
To clone build-webos
,
$ sudo git clone https://github.com/webosose/build-webos.git
To let webos be able to read/write files, chown it.
$ sudo chown -hR webos:webos build-webos
$ cd build-webos