Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's not workable with appc v0.52 and rkt v0.5.6 any more #3

Open
linfan opened this issue May 30, 2015 · 0 comments
Open

It's not workable with appc v0.52 and rkt v0.5.6 any more #3

linfan opened this issue May 30, 2015 · 0 comments

Comments

@linfan
Copy link

linfan commented May 30, 2015

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) <linfan.china@gmail.com>
/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant