(solved) docker based development environment for Asustor

Docker containers wrap a piece of software in a complete filesystem that contains everything needed to run: code, runtime, system tools, system libraries – anything that can be installed on a server. This guarantees that the software will always run the same, regardless of its environment.
Post Reply
fabo
Posts: 17
youtube meble na wymiar Warszawa
Joined: Wed Apr 13, 2016 1:15 pm

(solved) docker based development environment for Asustor

Post by fabo »

Hi,

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
Hope you'll find it already useful and will help users.
damien599901
Posts: 575
Joined: Mon Dec 30, 2013 2:53 am

Re: docker based development environment for Asustor

Post by damien599901 »

thank you for all fabo !!!
Storage: AS7004T & AS5002T
Network: FREEBOX REVOLUTION V6
Laptop: Apple MACBOOK Pro OS X El Capitan & Windows 10
Media Player: ASUSTOR NAS with Kodi 16 Beta & HD_Engine 1 (thanks Fathe_Mande)
Portable: iPhone 6S Plus, iPad Mini 2 & iPad Air
Post Reply

Return to “Docker”