026a21
%global with_debug 1
026a21
6b2cf0
%if 0%{?fedora} || 0%{?rhel} == 6
6b2cf0
%global with_bundled 1
6b2cf0
%global with_check 1
6b2cf0
%else
6b2cf0
%global with_bundled 0
6b2cf0
%global with_check 0
6b2cf0
%endif
6b2cf0
6b2cf0
%if 0%{?with_debug}
6b2cf0
%global _dwz_low_mem_die_limit 0
6b2cf0
%else
6b2cf0
%global debug_package   %{nil}
6b2cf0
%endif
6b2cf0
6b2cf0
%global provider        github
6b2cf0
%global provider_tld    com
6b2cf0
%global project         projectatomic
6b2cf0
%global repo            buildah
6b2cf0
# https://github.com/projectatomic/buildah
6b2cf0
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
6b2cf0
%global import_path     %{provider_prefix}
9bb659
%global commit         fbf46d33c4e01199281c7a69e68605ec7d611fd3
6b2cf0
%global shortcommit    %(c=%{commit}; echo ${c:0:7})
6b2cf0
2a45c0
Name:           %{repo}
9bb659
Version:        1.1
9bb659
Release:        1.git%{shortcommit}%{?dist}
6b2cf0
Summary:        A command line tool used for creating OCI Images
6b2cf0
License:        ASL 2.0
6b2cf0
URL:            https://%{provider_prefix}
6b2cf0
Source:         https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
6b2cf0
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
6b2cf0
BuildRequires:  %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
6b2cf0
BuildRequires:  git
6b2cf0
BuildRequires:  glib2-devel
6b2cf0
BuildRequires:  ostree-devel
6b2cf0
BuildRequires:  glibc-static
6b2cf0
BuildRequires:  go-md2man
6b2cf0
BuildRequires:  gpgme-devel
6b2cf0
BuildRequires:  device-mapper-devel
6b2cf0
BuildRequires:  btrfs-progs-devel
6b2cf0
BuildRequires:  libassuan-devel
026a21
BuildRequires:  libseccomp-devel
7e0feb
Requires:       runc >= 1.0.0-26
6b2cf0
Requires:       skopeo-containers >= 0.1.20-2
6b2cf0
Requires:       container-selinux
7e0feb
Requires:       ostree
6b2cf0
Provides:       %{repo} = %{version}-%{release}
6b2cf0
6b2cf0
%description
6b2cf0
The buildah package provides a command line tool which can be used to
6b2cf0
* create a working container from scratch
6b2cf0
or
6b2cf0
* create a working container from an image as a starting point
6b2cf0
* mount/umount a working container's root file system for manipulation
6b2cf0
* save container's root file system layer to create a new image
6b2cf0
* delete a working container or an image
6b2cf0
6b2cf0
%prep
6b2cf0
%autosetup -Sgit -n %{name}-%{commit}
6b2cf0
6b2cf0
%build
6b2cf0
mkdir _build
6b2cf0
pushd _build
6b2cf0
mkdir -p src/%{provider}.%{provider_tld}/%{project}
6b2cf0
ln -s $(dirs +1 -l) src/%{import_path}
6b2cf0
popd
6b2cf0
6b2cf0
mv vendor src
6b2cf0
6b2cf0
export GOPATH=$(pwd)/_build:$(pwd):%{gopath}
6b2cf0
make all GIT_COMMIT=%{shortcommit}
6b2cf0
6b2cf0
6b2cf0
%install
6b2cf0
export GOPATH=$(pwd)/_build:$(pwd):%{gopath}
6b2cf0
make DESTDIR=%{buildroot} PREFIX=%{_prefix} install install.completions
6b2cf0
6b2cf0
#define license tag if not already defined
6b2cf0
%{!?_licensedir:%global license %doc}
6b2cf0
6b2cf0
%files
6b2cf0
%license LICENSE
6b2cf0
%doc README.md
6b2cf0
%{_bindir}/%{name}
2a45c0
%{_mandir}/man1/%{name}*
6b2cf0
%dir %{_datadir}/bash-completion
6b2cf0
%dir %{_datadir}/bash-completion/completions
2a45c0
%{_datadir}/bash-completion/completions/%{name}
6b2cf0
6b2cf0
%changelog
9bb659
* Sun Jun 10 2018 Dan Walsh <dwalsh@redhat.com> 1.1-1
9bb659
- Drop capabilities if running container processes as non root
9bb659
- Print Warning message if cmd will not be used based on entrypoint
9bb659
- Update 01-intro.md
9bb659
- Shouldn't add insecure registries to list of search registries
9bb659
- Report errors on bad transports specification when pushing images
9bb659
- Move parsing code out of common for namespaces and into pkg/parse.go
9bb659
- Add disable-content-trust noop flag to bud
9bb659
- Change freenode chan to buildah
9bb659
- runCopyStdio(): don't close stdin unless we saw POLLHUP
9bb659
- Add registry errors for pull
9bb659
- runCollectOutput(): just read until the pipes are closed on us
9bb659
- Run(): provide redirection for stdio
9bb659
- rmi, rm: add test
9bb659
- add mount test
9bb659
- Add parameter judgment for commands that do not require parameters
9bb659
- Add context dir to bud command in baseline test
9bb659
- run.bats: check that we can run with symlinks in the bundle path
9bb659
- Give better messages to users when image can not be found
9bb659
- use absolute path for bundlePath
9bb659
- Add environment variable to buildah --format
9bb659
- rm: add validation to args and all option
9bb659
- Accept json array input for config entrypoint
9bb659
- Run(): process RunOptions.Mounts, and its flags
9bb659
- Run(): only collect error output from stdio pipes if we created some
9bb659
- Add OnBuild support for Dockerfiles
9bb659
- Quick fix on demo readme
9bb659
- run: fix validate flags
9bb659
- buildah bud should require a context directory or URL
9bb659
- Touchup tutorial for run changes
9bb659
- Validate common bud and from flags
9bb659
- images: Error if the specified imagename does not exist
9bb659
- inspect: Increase err judgments to avoid panic
9bb659
- add test to inspect
9bb659
- buildah bud picks up ENV from base image
9bb659
- Extend the amount of time travis_wait should wait
9bb659
- Add a make target for Installing CNI plugins
9bb659
- Add tests for namespace control flags
9bb659
- copy.bats: check ownerships in the container
9bb659
- Fix SELinux test errors when SELinux is enabled
9bb659
- Add example CNI configurations
9bb659
- Run: set supplemental group IDs
9bb659
- Run: use a temporary mount namespace
9bb659
- Use CNI to configure container networks
9bb659
- add/secrets/commit: Use mappings when setting permissions on added content
9bb659
- Add CLI options for specifying namespace and cgroup setup
9bb659
- Always set mappings when using user namespaces
9bb659
- Run(): break out creation of stdio pipe descriptors
9bb659
- Read UID/GID mapping information from containers and images
9bb659
- Additional bud CI tests
9bb659
- Run integration tests under travis_wait in Travis
9bb659
- build-using-dockerfile: add --annotation
9bb659
- Implement --squash for build-using-dockerfile and commit
9bb659
- Vendor in latest container/storage for devicemapper support
9bb659
- add test to inspect
9bb659
- Vendor github.com/onsi/ginkgo and github.com/onsi/gomega
9bb659
- Test with Go 1.10, too
9bb659
- Add console syntax highlighting to troubleshooting page
9bb659
- bud.bats: print "$output" before checking its contents
9bb659
- Manage "Run" containers more closely
9bb659
- Break Builder.Run()'s "run runc" bits out
9bb659
- util.ResolveName(): handle completion for tagged/digested image names
9bb659
- Handle /etc/hosts and /etc/resolv.conf properly in container
9bb659
- Documentation fixes
9bb659
- Make it easier to parse our temporary directory as an image name
9bb659
- Makefile: list new pkg/ subdirectoris as dependencies for buildah
9bb659
- containerImageSource: return more-correct errors
9bb659
- API cleanup: PullPolicy and TerminalPolicy should be types
9bb659
- Make "run --terminal" and "run -t" aliases for "run --tty"
9bb659
- Vendor github.com/containernetworking/cni v0.6.0
9bb659
- Update github.com/containers/storage
9bb659
- Update github.com/projectatomic/libpod
9bb659
- Add support for buildah bud --label
9bb659
- buildah push/from can push and pull images with no reference
9bb659
- Vendor in latest containers/image
9bb659
- Update gometalinter to fix install.tools error
9bb659
- Update troubleshooting with new run workaround
9bb659
- Added a bud demo and tidied up
9bb659
- Attempt to download file from url, if fails assume Dockerfile
9bb659
- Add buildah bud CI tests for ENV variables
9bb659
- Re-enable rpm .spec version check and new commit test
9bb659
- Update buildah scratch demo to support el7
9bb659
- Added Docker compatibility demo
9bb659
- Update to F28 and new run format in baseline test
9bb659
- Touchup man page short options across man pages
9bb659
- Added demo dir and a demo. chged distrorlease
9bb659
- builder-inspect: fix format option
9bb659
- Add cpu-shares short flag (-c) and cpu-shares CI tests
9bb659
- Minor fixes to formatting in rpm spec changelog
9bb659
- Fix rpm .spec changelog formatting
9bb659
- CI tests and minor fix for cache related noop flags
9bb659
- buildah-from: add effective value to mount propagation
9bb659
9bb659
* Mon May 7 2018 Dan Walsh <dwalsh@redhat.com> 1.0-1
9bb659
- Remove buildah run cmd and entrypoint execution
9bb659
- Add Files section with registries.conf to pertinent man pages
9bb659
- Force "localhost" as a default registry
9bb659
- Add --compress, --rm, --squash flags as a noop for bud
9bb659
- Add FIPS mode secret to buildah run and bud
9bb659
- Add config --comment/--domainname/--history-comment/--hostname
9bb659
- Add support for --iidfile to bud and commit
9bb659
- Add /bin/sh -c to entrypoint in config
9bb659
- buildah images and podman images are listing different sizes
9bb659
- Remove tarball as an option from buildah push --help
9bb659
- Update entrypoint behaviour to match docker
9bb659
- Display imageId after commit
9bb659
- config: add support for StopSignal
9bb659
- Allow referencing stages as index and names
9bb659
- Add multi-stage builds support
9bb659
- Vendor in latest imagebuilder, to get mixed case AS support
9bb659
- Allow umount to have multi-containers
9bb659
- Update buildah push doc
9bb659
- buildah bud walks symlinks
9bb659
- Imagename is required for commit atm, update manpage
9bb659
2a45c0
* Thu May 03 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.16-3.git532e267
2a45c0
- Resolves: #1573681
2a45c0
- built commit 532e267
2a45c0
2a45c0
* Tue Apr 10 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.16.0-2.git6f7d05b
2a45c0
- built commit 6f7d05b
2a45c0
2a45c0
* Wed Apr 4 2018 Dan Walsh <dwalsh@redhat.com> 0.16-1
2a45c0
-   Add support for shell
2a45c0
-   Vendor in latest containers/image
2a45c0
-    	 docker-archive generates docker legacy compatible images
2a45c0
-	 Do not create $DiffID subdirectories for layers with no configs
2a45c0
- 	 Ensure the layer IDs in legacy docker/tarfile metadata are unique
2a45c0
-	 docker-archive: repeated layers are symlinked in the tar file
2a45c0
-	 sysregistries: remove all trailing slashes
2a45c0
-	 Improve docker/* error messages
2a45c0
-	 Fix failure to make auth directory
2a45c0
-	 Create a new slice in Schema1.UpdateLayerInfos
2a45c0
-	 Drop unused storageImageDestination.{image,systemContext}
2a45c0
-	 Load a *storage.Image only once in storageImageSource
2a45c0
-	 Support gzip for docker-archive files
2a45c0
-	 Remove .tar extension from blob and config file names
2a45c0
-	 ostree, src: support copy of compressed layers
2a45c0
-	 ostree: re-pull layer if it misses uncompressed_digest|uncompressed_size
2a45c0
-	 image: fix docker schema v1 -> OCI conversion
2a45c0
-	 Add /etc/containers/certs.d as default certs directory
2a45c0
-  Change image time to locale, add troubleshooting.md, add logo to other mds
2a45c0
-   Allow --cmd parameter to have commands as values
2a45c0
-   Document the mounts.conf file
2a45c0
-   Fix man pages to format correctly
2a45c0
-   buildah from now supports pulling images using the following transports:
2a45c0
-   docker-archive, oci-archive, and dir.
2a45c0
-   If the user overrides the storage driver, the options should be dropped
2a45c0
-   Show Config/Manifest as JSON string in inspect when format is not set
2a45c0
-   Adds feature to pull compressed docker-archive files
2a45c0
026a21
* Tue Feb 27 2018 Dan Walsh <dwalsh@redhat.com> 0.15-1
026a21
- Fix handling of buildah run command options
026a21
026a21
* Mon Feb 26 2018 Dan Walsh <dwalsh@redhat.com> 0.14-1
026a21
- If commonOpts do not exist, we should return rather then segfault
026a21
- Display full error string instead of just status
026a21
- Implement --volume and --shm-size for bud and from
026a21
- Fix secrets patch for buildah bud
026a21
- Fixes the naming issue of blobs and config for the dir transport by removing the .tar extension
026a21
026a21
* Mon Feb 26 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.13-1.git99066e0
026a21
- use correct version
026a21
026a21
* Mon Feb 26 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.12-4.git99066e0
026a21
- enable debuginfo
026a21
026a21
* Mon Feb 26 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.12-3.git99066e0
026a21
- BR: libseccomp-devel
026a21
026a21
* Mon Feb 26 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.12-2.git99066e0
026a21
- Resolves: #1548535
026a21
- built commit 99066e0
026a21
026a21
* Mon Feb 12 2018 Dan Walsh <dwalsh@redhat.com> 0.12-1
026a21
- Added handing for simpler error message for Unknown Dockerfile instructions.
026a21
- Change default certs directory to /etc/containers/certs.dir
026a21
- Vendor in latest containers/image
026a21
- Vendor in latest containers/storage
026a21
- build-using-dockerfile: set the 'author' field for MAINTAINER
026a21
- Return exit code 1 when buildah-rmi fails
026a21
- Trim the image reference to just its name before calling getImageName
026a21
- Touch up rmi -f usage statement
026a21
- Add --format and --filter to buildah containers
026a21
- Add --prune,-p option to rmi command
026a21
- Add authfile param to commit
026a21
- Fix --runtime-flag for buildah run and bud
026a21
- format should override quiet for images
026a21
- Allow all auth params to work with bud
026a21
- Do not overwrite directory permissions on --chown
026a21
- Unescape HTML characters output into the terminal
026a21
- Fix: setting the container name to the image
026a21
- Prompt for un/pwd if not supplied with --creds
026a21
- Make bud be really quiet
026a21
- Return a better error message when failed to resolve an image
026a21
- Update auth tests and fix bud man page
026a21
7e0feb
* Mon Feb 05 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.11-3.git49095a8
7e0feb
- Resolves: #1542236 - add ostree and bump runc dep
7e0feb
7e0feb
* Thu Feb 01 2018 Frantisek Kluknavsky <fkluknav@redhat.com> - 0.11-2.git49095a8
7e0feb
- rebased to 49095a83f8622cf69532352d183337635562e261
7e0feb
7e0feb
* Tue Jan 16 2018 Dan Walsh <dwalsh@redhat.com> 0.11-1
7e0feb
- Add --all to remove containers
7e0feb
- Add --all functionality to rmi
7e0feb
- Show ctrid when doing rm -all
7e0feb
- Ignore sequential duplicate layers when reading v2s1
7e0feb
- Lots of minor bug fixes
7e0feb
- Vendor in latest containers/image and containers/storage
7e0feb
7e0feb
* Sat Dec 23 2017 Dan Walsh <dwalsh@redhat.com> 0.10-2
7e0feb
- Fix checkin
7e0feb
7e0feb
* Sat Dec 23 2017 Dan Walsh <dwalsh@redhat.com> 0.10-1
7e0feb
- Display Config and Manifest as strings
7e0feb
- Bump containers/image
7e0feb
- Use configured registries to resolve image names
7e0feb
- Update to work with newer image library
7e0feb
- Add --chown option to add/copy commands
7e0feb
7e0feb
* Tue Dec 12 2017 Lokesh Mandvekar <lsm5@redhat.com> - 0.9-2.git04ea079
7e0feb
- build for all arches
7e0feb
e0b7f7
* Sat Dec 2 2017 Dan Walsh <dwalsh@redhat.com> 0.9-1
e0b7f7
- Allow push to use the image id
e0b7f7
- Make sure builtin volumes have the correct label
e0b7f7
6b2cf0
* Wed Nov 22 2017 Dan Walsh <dwalsh@redhat.com> 0.8-1
6b2cf0
- Buildah bud was failing on SELinux machines, this fixes this
6b2cf0
- Block access to certain kernel file systems inside of the container
6b2cf0
6b2cf0
* Thu Nov 16 2017 Dan Walsh <dwalsh@redhat.com> 0.7-1
6b2cf0
- Ignore errors when trying to read containers buildah.json for loading SELinux reservations
6b2cf0
-     Use credentials from kpod login for buildah
6b2cf0
- Adds support for converting manifest types when using the dir transport
6b2cf0
- Rework how we do UID resolution in images
6b2cf0
- Bump github.com/vbatts/tar-split
6b2cf0
- Set option.terminal appropriately in run
6b2cf0
6b2cf0
* Thu Nov 16 2017 Frantisek Kluknavsky <fkluknav@redhat.com> - 0.5-5.gitf7dc659
6b2cf0
- revert building for s390x, it is intended for rhel 7.5
6b2cf0
6b2cf0
* Wed Nov 15 2017 Dan Walsh <dwalsh@redhat.com> 0.5-4
6b2cf0
- Add requires for container-selinux
6b2cf0
6b2cf0
* Mon Nov 13 2017 Frantisek Kluknavsky <fkluknav@redhat.com> - 0.5-3.gitf7dc659
6b2cf0
- build for s390x, https://bugzilla.redhat.com/show_bug.cgi?id=1482234
6b2cf0
6b2cf0
* Wed Nov 08 2017 Dan Walsh <dwalsh@redhat.com> 0.5-2
6b2cf0
-  Bump github.com/vbatts/tar-split
6b2cf0
-  Fixes CVE That could allow a container image to cause a DOS
6b2cf0
6b2cf0
* Tue Nov 07 2017 Dan Walsh <dwalsh@redhat.com> 0.5-1
6b2cf0
-  Add secrets patch to buildah
6b2cf0
-  Add proper SELinux labeling to buildah run
6b2cf0
-  Add tls-verify to bud command
6b2cf0
-  Make filtering by date use the image's date
6b2cf0
-  images: don't list unnamed images twice
6b2cf0
-  Fix timeout issue
6b2cf0
-  Add further tty verbiage to buildah run
6b2cf0
-  Make inspect try an image on failure if type not specified
6b2cf0
-  Add support for `buildah run --hostname`
6b2cf0
-  Tons of bug fixes and code cleanup
6b2cf0
6b2cf0
* Tue Nov  7 2017 Nalin Dahyabhai <nalin@redhat.com> - 0.4-2.git01db066
6b2cf0
- bump to latest version
6b2cf0
- set GIT_COMMIT at build-time
6b2cf0
6b2cf0
* Fri Sep 22 2017 Dan Walsh <dwalsh@redhat.com> 0.4-1.git9cbccf88c
6b2cf0
-   Add default transport to push if not provided
6b2cf0
-   Avoid trying to print a nil ImageReference
6b2cf0
-   Add authentication to commit and push
6b2cf0
-   Add information on buildah from man page on transports
6b2cf0
-   Remove --transport flag
6b2cf0
-   Run: do not complain about missing volume locations
6b2cf0
-   Add credentials to buildah from
6b2cf0
-   Remove export command
6b2cf0
-   Run(): create the right working directory
6b2cf0
-   Improve "from" behavior with unnamed references
6b2cf0
-   Avoid parsing image metadata for dates and layers
6b2cf0
-   Read the image's creation date from public API
6b2cf0
-   Bump containers/storage and containers/image
6b2cf0
-   Don't panic if an image's ID can't be parsed
6b2cf0
-   Turn on --enable-gc when running gometalinter
6b2cf0
-   rmi: handle truncated image IDs
6b2cf0
6b2cf0
* Fri Sep 22 2017 Lokesh Mandvekar <lsm5@redhat.com> - 0.4-1.git9cbccf8
6b2cf0
- bump to v0.4
6b2cf0
6b2cf0
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-4.gitb9b2a8a
6b2cf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
6b2cf0
6b2cf0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-3.gitb9b2a8a
6b2cf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6b2cf0
6b2cf0
* Thu Jul 20 2017 Dan Walsh <dwalsh@redhat.com> 0.3-2.gitb9b2a8a7e
6b2cf0
- Bump for inclusion of OCI 1.0 Runtime and Image Spec
6b2cf0
6b2cf0
* Tue Jul 18 2017 Dan Walsh <dwalsh@redhat.com> 0.2.0-1.gitac2aad6
6b2cf0
-   buildah run: Add support for -- ending options parsing 
6b2cf0
-   buildah Add/Copy support for glob syntax
6b2cf0
-   buildah commit: Add flag to remove containers on commit
6b2cf0
-   buildah push: Improve man page and help information
6b2cf0
-   buildah run: add a way to disable PTY allocation
6b2cf0
-   Buildah docs: clarify --runtime-flag of run command
6b2cf0
-   Update to match newer storage and image-spec APIs
6b2cf0
-   Update containers/storage and containers/image versions
6b2cf0
-   buildah export: add support
6b2cf0
-   buildah images: update commands
6b2cf0
-   buildah images: Add JSON output option
6b2cf0
-   buildah rmi: update commands
6b2cf0
-   buildah containers: Add JSON output option
6b2cf0
-   buildah version: add command
6b2cf0
-   buildah run: Handle run without an explicit command correctly
6b2cf0
-   Ensure volume points get created, and with perms
6b2cf0
-   buildah containers: Add a -a/--all option
6b2cf0
6b2cf0
* Wed Jun 14 2017 Dan Walsh <dwalsh@redhat.com> 0.1.0-2.git597d2ab9
6b2cf0
- Release Candidate 1
6b2cf0
- All features have now been implemented.
6b2cf0
6b2cf0
* Fri Apr 14 2017 Dan Walsh <dwalsh@redhat.com> 0.0.1-1.git7a0a5333
6b2cf0
- First package for Fedora