It is currently Sun Sep 20, 2020 2:37 am
All times are UTC + 8 hours

(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.

(solved) docker based development environment for Asustor

Postby fabo » Mon Apr 18, 2016 4:09 pm

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.
fabo
 
Posts: 17
Joined: Wed Apr 13, 2016 1:15 pm

Re: docker based development environment for Asustor

Postby damien599901 » Wed Apr 20, 2016 11:26 pm

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
damien599901
 
Posts: 558
Joined: Mon Dec 30, 2013 2:53 am

Return to Docker

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest