Skip to main content

Alpine Linux

Protecting your Alpine Linux software with RunSafe Protect is as easy as installing the packages from our APK repository and making a one line change to your build environment.

Install RunSafe Protect

tip

The instructions below assume sudo is installed. In many Alpine environments, sudo is not installed because the default user is root. In that case, remove sudo from the commands below. If, however, you are running as a non-root user, please install sudo in the environment.

  1. Add the RunSafe Security repo to list of repositories apk will check for packages
sudo apk add --no-cache bash && curl -1sLf "https://packages.runsafesecurity.com/runsafe-security/runsafe/setup.alpine.sh" | sudo -E bash
  1. Install the alkemist-lfr package
sudo apk add alkemist-lfr

Add RunSafe Protect

Now that your system contains the files necessary for Code to run, prepend your build commands (make, gcc, g++, etc) with lfr-helper to automatically integrate Code into your existing build process:

<your build command>

becomes

RUNSAFE_LICENSE_KEY=<your license key> lfr-helper <your build command>
tip

You can retrieve your license key from https://app.runsafesecurity.com/account/license-key

Example GCC Integration

gcc -o hello_world hello_world.c

becomes

RUNSAFE_LICENSE_KEY=<your license key> lfr-helper gcc -o hello_world hello_world.c

Specifying your License Key

As shown above, your license key can be pre-pended to the specific build command. Additional information on specifying a license key, including when in offline mode, can be found at Specify Your License