Skip to content

webispy/docker-artik-devenv-rootfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Docker images for Fedora(fed-artik-tools) and Ubuntu(sbuild) ready

These images were created by travis-ci.org and hub.docker.com

ARTIK 710/530/520 Fedora

Docker Pulls Docker Pulls Docker Pulls

To save time, you can download images that have already completed the fed-artik-init-buildsys and dnf update tasks.

$ docker pull webispy/artik_devenv_f710
or
$ docker pull webispy/artik_devenv_f530
or
$ docker pull webispy/artik_devenv_f520

You can build a RPM package with following commands. The default user for docker image is set to 'work' (/home/work/).

# e.g. my sample sources: /home/user/src/sample
#      build result: /home/user/rpm
$ tree /home/user/src/sample
sample
├── main.c
└── packaging
    └── sample.spec

$ docker run -it --rm --privileged \
    -v /home/user/src/sample:/home/work/sample \
    -v /home/user/rpm:/home/work/FED_ARTIK_ROOT/repos/24/armv7hl/RPMS \
    -w /home/work/sample \
    webispy/artik_devenv_f710 \
    fed-artik-build

$ ls /home/user/rpm
sample.fc24.armv7hl.rpm
sample-debuginfo.fc24.armv7hl.rpm

ARTIK 710/530 Ubuntu

Docker Pulls Docker Pulls Docker Pulls Docker Pulls

To save time, you can download images that have already completed the mk-sbuild and apt update && apt upgrade tasks.

$ docker pull webispy/artik_devenv_u710
or
$ docker pull webispy/artik_devenv_u530
or
$ docker pull webispy/artik_devenv_u710cross
or
$ docker pull webispy/artik_devenv_u530cross

You can build a DEB package with following commands. The default user for docker image is set to 'work' (/home/work/).

# e.g. my sample sources: /home/user/src/sample
#      build result: /home/user/src
$ tree /home/user/src/sample
sample
├── main.c
└── debian
    ├── changelog
    ├── compat
    ├── control
    ├── copyright
    ├── sample.install
    └── rules

# 710 (arm64)
$ docker run -it --rm --privileged \
    -v /home/user/src/sample:/home/work/sample \
    -v /var/lib/schroot/chroots \
    -w /home/work/sample \
    webispy/artik_devenv_u710 \
    sbuild --chroot xenial-arm64 --arch arm64

# 530 (armhf)
$ docker run -it --rm --privileged \
    -v /home/user/src/sample:/home/work/sample \
    -v /var/lib/schroot/chroots \
    -w /home/work/sample \
    webispy/artik_devenv_u530 \
    sbuild --chroot xenial-armhf --arch armhf

# 710 (arm64) - cross compile
$ docker run -it --rm --privileged \
    -v /home/user/src/sample:/home/work/sample \
    -v /var/lib/schroot/chroots \
    -w /home/work/sample \
    webispy/artik_devenv_u710cross \
    sbuild --chroot xenial-amd64-arm64 --host arm64

# 530 (armhf) - cross compile
$ docker run -it --rm --privileged \
    -v /home/user/src/sample:/home/work/sample \
    -v /var/lib/schroot/chroots \
    -w /home/work/sample \
    webispy/artik_devenv_u530cross \
    sbuild --chroot xenial-amd64-armhf --host armhf

$ ls /home/user/src
sample/
sample_arm64.deb
sample-dbg_arm64.deb
sample.tar.gz

References

License

The MIT License

Copyright (c) 2018 Inho Oh [email protected]

Releases

No releases published

Packages

No packages published