Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save emreozkangit/b263d254d56ed82c9fa3fb626beb7c67 to your computer and use it in GitHub Desktop.
Save emreozkangit/b263d254d56ed82c9fa3fb626beb7c67 to your computer and use it in GitHub Desktop.
buildah with Dockerfile
[root@ip-172-31-37-35 ec2-user]# buildah bud -t hello .
STEP 1: FROM fedora:28
Getting image source signatures
Copying blob sha256:012cb44e32533b8e62587fb98d54517182d9723031be8f9e06a9647ad6b46b61
85.49 MiB / 85.49 MiB [====================================================] 4s
Copying config sha256:4c5b21baa7a0a0cf6948d9dd31d7d300c171248ad9df1fbfc831057e494beaef
1.99 KiB / 1.99 KiB [======================================================] 0s
Writing manifest to image destination
Storing signatures
STEP 2: LABEL maintainer Emre Özkan <[email protected]>
STEP 3: RUN dnf install -y tar gzip gcc make && dnf clean all
Fedora 28 - x86_64 - Updates 33 MB/s | 30 MB 00:00
Fedora 28 - x86_64 40 MB/s | 60 MB 00:01
Last metadata expiration check: 0:00:08 ago on Thu Mar 28 05:00:45 2019.
Package tar-2:1.30-3.fc28.x86_64 is already installed, skipping.
Package gzip-1.9-3.fc28.x86_64 is already installed, skipping.
Dependencies resolved.
...
...
STEP 10: RUN hello -v
hello (GNU Hello) 2.10
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
STEP 11: ENTRYPOINT "/usr/local/bin/hello"
STEP 12: COMMIT containers-storage:[overlay@/var/lib/containers/storage+/var/run/containers/storage:overlay.override_kernel_check=true]localhost/hello:latest
Getting image source signatures
Skipping fetch of repeat blob sha256:17beab58d693a5e55591675c3dcc5b575a44e476d125408102ce75348011f807
Copying blob sha256:41e2405c2362744a8f38fb002a3a826620093de701b075182eaa0fe0367a76e4
55.58 MiB / 55.58 MiB [====================================================] 2s
Copying config sha256:5507fef0e7a5e7dddf4993ef8c67315b1a3b0b171f1957193d912e3d7de366dd
1.17 KiB / 1.17 KiB [======================================================] 0s
Writing manifest to image destination
Storing signatures
--> 5507fef0e7a5e7dddf4993ef8c67315b1a3b0b171f1957193d912e3d7de366dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment