GitXplorerGitXplorer
g

ostree-docker-builder

public
5 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
d419a4138700702ac7209f887ce298b19ce3b7b5

Fix markdown

ggiuseppe committed 9 years ago
Unverified
3d6cebaf26f896916d949b6c90649e9b00722213

Refactor some common code in the new function run_docker_cmd

ggiuseppe committed 9 years ago
Unverified
0efa9a7537d2ed5b2a6da7d00d48242139c2e80e

Add option to tag and push to the Docker registry

ggiuseppe committed 9 years ago
Unverified
f06da7c61fa4d6517f62113817065ebdaf4c5b10

Check if the image already exists before creating it

ggiuseppe committed 9 years ago
Unverified
d97f80a253b160ab3c2e9e8e744fd36723bd899d

README.md: Add an example

ggiuseppe committed 9 years ago
Unverified
19cd394a418bea9b3cec53d58efa6b63e434243c

Fix using commits without parent

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