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.

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 ${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 ${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