Skip to content

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

@linfan

Description

@linfan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions