Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giuseppe/ostree-docker-builder
Build Docker images from an OStree commit
https://github.com/giuseppe/ostree-docker-builder
Last synced: 3 months ago
JSON representation
Build Docker images from an OStree commit
- Host: GitHub
- URL: https://github.com/giuseppe/ostree-docker-builder
- Owner: giuseppe
- License: gpl-3.0
- Created: 2015-09-23T09:33:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-14T11:25:42.000Z (about 9 years ago)
- Last Synced: 2023-03-31T04:04:09.667Z (almost 2 years ago)
- Language: C
- Size: 176 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# 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:
```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```