DISCLAIMER: It is not recommended and even a bad practice to download random docker images from internet blindly. For my own convenience, it's available on Quay.io so I can pull it easily.
I've been working on a convenient development environment to build Asustor related software (ADM and apps).
It's using Docker, based on Debian 8.x (Jessie), and contains the tools necessary to build various components (kernel, toolchain, etc...).
There's also a few helpers to:
* extract ADM image
* avoid being root or use sudo to build package (fakeroot is your friend)
* use human readable/writable yaml to generate config.json
All the source code is provided on Github. You can reproduce the docker image using the content of asustor-dockerfiles repository.
At this stage, proper documentation and how-to/getting-started are lacking.
Quick start:
Code: Select all
## Pull the docker image
$ docker pull quay.io/fathi_boudra/asustor
## Run the image
$ docker run -it quay.io/fathi_boudra/asustor /bin/bash
## Change to buildslave user inside the docker image
# su - buildslave
## Clone transmission package repository
$ git clone https://github.com/fboudra/asustor-pkg-transmission.git
## Select the toolchain (by default the branch is master and doesn't contain the binaries toolchain)
$ cd ~/asustor-toolchain
$ git checkout -b x86_64 origin/x86_64
## Update the utilities repository and make sure to use latest scripts
$ cd asustor-pkg-utilities
$ git pull
## Enter transmission package repository and build
$ cd ~/asustor-pkg-transmission
$ ./runme.sh
## If all goes as expected, the package is built
$ ls *.apk
transmission_2.92-1_x86-64.apk