sgotti / baci Goto Github PK
View Code? Open in Web Editor NEWBaci - Build an ACI.
Baci - Build an ACI.
It's NOT
compatible with the latest appc and rkt any more !
Firstly, rkt and appc now require signature for all images, even for local ones. Directly run baci
would always got error "error opening signature file: open /usr/local/bin/baci.aci.asc".
$ sudo baci --rktpath /usr/local/bin/rkt -o $(pwd)/fedora.aci -n "linfan/fedora:21,os=linux,arch=amd64" .
2015/05/30 15:05:26 baseImage: scratch
error opening signature file: open /usr/local/bin/baci.aci.asc: no such file or directory
2015/05/30 15:05:28 Builder container exited with error: exit status 1
So I made it to create a self-signed signature file for baci.aci, but when processing both of the example Dockerfile, another error pop up: "error extracting tar: error extracting tarball: chmod /sys: read-only file system".
$ sudo baci --rktpath /usr/local/bin/rkt -o $(pwd)/fedora.aci -n "linfan/fedora:21,os=linux,arch=amd64" .
2015/05/30 15:00:29 baseImage: scratch
rkt: signature verified:
Lin Fan (ACI signing key) <[email protected]>
/etc/localtime is not a symlink, not updating container timezone.
2015/05/30 15:00:32 Starting the baci aci!
2015/05/30 15:00:32 Extracting fedora-22-release.tar.xz in /
error: error execting Dockerfile command "ADD fedora-22-release.tar.xz /": error extracting source file fedora-22-release.tar.xz: error extracting tar: error extracting tarball: chmod /sys: read-only file system
Sending SIGTERM to remaining processes...
Sending SIGKILL to remaining processes...
Unmounting file systems.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/dev/pts.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/dev/shm.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/sys.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/proc.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/dev/console.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/dev/tty.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/dev/urandom.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/dev/random.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/dev/full.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/dev/zero.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/dev/null.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/baci/source.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/baci/data.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/baci/dest.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/baci/source.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/baci/data.
Unmounting /opt/stage2/sha512-8648372528e1b62e11a5a7fd62d74512/rootfs/baci/dest.
Unmounting /proc/sys/kernel/random/boot_id.
All filesystems unmounted.
Halting system.
2015/05/30 15:00:33 Builder container finished.
It looks like some part of this tool is totally out of date. Any plan to fix it?
Also want to point out, the repo and folder name in the second example already changed, it should be update as below.
$ git clone https://github.com/fedora-cloud/Fedora-Dockerfiles/
$ sudo baci --rktpath $RKTBIN/rkt -o $OUTDIR/postgre.aci -n "example.com/postgre:9.3.6,os=linux,arch=amd64" Fedora-Dockerfiles/postgresql
hi @sgotti,
I just came across baci/ App Container/rocket
and have a question: with docker I used to run graphical apps like firefox.
e.g http://www.slideshare.net/dotCloud/dockerizing-your-appli
docker run -e DISPLAY=unix$DISPLAY -volumes-from firefox-data -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/snd:/dev/snd -lxc-conf='lxc.cgroup.devices.allow = c 116:* rwm' firefox
e.g. https://registry.hub.docker.com/u/kennethkl/firefox/
docker run -d --name firefox -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix kennethkl/firefox
e.g. https://github.com/subuser-security/subuser
Do you know if something similar is possible with baci/ App Container/rocket.
Thanks
P
The various configurations like ExposedPorts, Env, Cmd, Volumes, WorkingDir, Entrypoint should be inherited from the parent image.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.