GitXplorerGitXplorer
g

ostree-docker-builder

public
5 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
a07611c0952c1c83f0c8112c7b58b39502ca1bbc

add RPM machinery

ggiuseppe committed 9 years ago
Unverified
05bba607781e962c49692c8d46923479e02aa34d

COPYING: new file

ggiuseppe committed 9 years ago
Unverified
2a0ed0d891ee4cf58d571e31a10a1d4f7a80a17b

Fix REV in the example

ggiuseppe committed 9 years ago
Unverified
d0c0881024b2745cb2b86840006e78f12ad9769f

By default print the Docker output, add -q to change it

ggiuseppe committed 9 years ago
Unverified
056342729f04f7cb1633a95513c24ed0fd109431

Change the usage string to use REV instead of COMMIT

ggiuseppe committed 9 years ago
Unverified
6f8449ddb11a2b34ae0c43a3c5595673ec43349d

Set the error from errno when sigaction fails

ggiuseppe committed 9 years ago

README

The README file for this repository.

ostree-docker-builder

Build a Docker image from an OStree commit. ostree-docker-builder is still a prototype.

Usage

ostree-docker-builder --repo=$OSTREE_REPO --container-name=$DOCKER_IMAGE_NAME $OSTREE_COMMIT

Example

This is the configuration file for creating a Docker container in rpm-ostree:

emacs.json:

{  
    "ref": "fedora-atomic/f22/x86_64/emacs",  
    "repos": ["fedora-22"],  
    "container": true,  
    "packages": ["emacs"]  
}

And have a fedora-22 repo file in the same directory, fedora22.repo:

[fedora-22]  
name=Fedora 22 $basearch  
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-22&arch=$basearch  
enabled=0  
gpgcheck=0  
metadata_expire=1d

Create a commit with rpm-ostree:

sudo rpm-ostree --repo=repo compose tree emacs.json

And finally the Docker container:

ostree-docker-builder --repo=repo -c emacs fedora-atomic/f22/x86_64/emacs