Installation

There are two choices concerning the redpesk container installation. The first one is launching the script in the simple installation section. The second one is via the advanced installation, which is also available for a manual installation.

In general, the latest version of Ubuntu, OpenSUSE, Fedora and Debian works. Following is a specific list of supported distributions:

It is recommended to use the latest distribution version as we make sure that everything works well for them.

NOTE: If you are using a virtual machine thanks to Vagrant, VirtualBox or VMWare, be sure the KVM feature has been enabled. This is mandatory for the LXC container created by the localbuilder.

Simple installation

# retrieve the installation script
wget https://github.com/redpesk-devtools/redpesk-sdk-tools/raw/master/install-redpesk-localbuilder.sh
chmod +x install-redpesk-localbuilder.sh

# Choose a name for your container
# Note that name can only contain alphanumeric and hyphen characters
container_name=<your_container_name>
# launch the script
./install-redpesk-localbuilder.sh create -c ${container_name}
# then follow the instructions
# the requested password is 'iotbzh'

You will be prompted for your host’s root password to perform the LXD installation.

At the end of the script, you will also be asked for an optional host directory that you want to have to access to within the container.

Depending of your host’s distribution, you may need to relaunch the script after a reboot.

The installation of your build container is then finished. If things ever go bad, the following command can be useful:

# DO NOT execute this command if there is no problem with the installation
./install-redpesk-localbuilder.sh clean -c ${container_name}

Get in your build container

You can enter your build container using SSH from your host:

ssh devel@${container_name}
# password for devel: devel