You can use this image to build the following snappy binaries for your Linux architecture of choice:
You can customise the building process using the following environment variables:
Adjust this value to the uid of the user that owns the volume where the generated binaries will be saved (Default 1000).
Set the linux architecture for which you want the snappy binaries to be generated. Valid options are: 386, amd64, armhf and arm64 (Default amd64).
SNAPPY_ARCH_VER (Only relevant when SNAPPY_ARCH = armhf)
Use it to select the ARM version to be used (Default 7). Check https://github.com/golang/go/wiki/GoArm for all valid values.
To run this image, you should adjust the USER_UID environment variable and set the volume where the generated binaries should be saved.
docker run -e USER_UID=1000 -v <volume_path>:/work aitorpazos/ubuntu-snappy-builder