Commit Graph

795 Commits

Author SHA1 Message Date
TomSweeneyRedHat 2cf9a32da9 Use a loop to go through repos in quay script
While trying to run down an issue with cron, I releasized that the
only differences between the steps for the stable, testing and upstream
was the name of the repo.  So I put the builds of those three
flavors under a for loop and shrunk the script down quite a bit.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-07-01 20:14:55 -04:00
Daniel J Walsh f5b1e71e0c Merge pull request #205 from rhatdan/conf
Bump to v0.15.1
2020-06-30 20:34:39 -04:00
Daniel J Walsh d879960395 Move to v0.15.2-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-30 20:33:17 -04:00
Daniel J Walsh 0971eeff84 Bump to v0.15.1
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-30 20:33:17 -04:00
Daniel J Walsh 9c7d0b5a00 Merge pull request #204 from nalind/discard
readConfig(): don't return a pointer that's often ignored
2020-06-30 20:33:00 -04:00
Daniel J Walsh 4b024a0d26 Merge pull request #203 from QiWang19/version
Delete VERSION file
2020-06-30 20:31:27 -04:00
Qi Wang 8ef2073719 delete-version 2020-06-30 17:39:45 -04:00
Daniel J Walsh 2a3c5d78c7 Merge pull request #202 from rhatdan/conf
Bump to v0.15.0
2020-06-30 17:10:08 -04:00
Daniel J Walsh b622db3035 Move to v0.15.1-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-30 17:08:55 -04:00
Daniel J Walsh 9e04581c7d Bump to v0.15.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-30 17:08:27 -04:00
Daniel J Walsh 560bd489ae Merge pull request #200 from ashley-cui/master
Add support for timezone
2020-06-30 17:07:39 -04:00
Ashley Cui bf1b8b15b6 Add support for timezone
Signed-off-by: Ashley Cui <acui@redhat.com>
2020-06-30 15:07:49 -04:00
Nalin Dahyabhai d045e7f373 readConfig(): don't return a pointer
Remove the often-unused result value from readConfig().

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2020-06-30 15:02:39 -04:00
Daniel J Walsh 52060f3e46 Merge pull request #201 from QiWang19/engine-env-map
Specify container engine in comments of engine env
2020-06-30 13:03:14 -04:00
Qi Wang 3d8b92bdb2 Specify container engine in comments of engine env
Specify that the container engines are Podman, Buildah

Signed-off-by: Qi Wang <qiwan@redhat.com>
2020-06-30 11:59:46 -04:00
Valentin Rothberg cb7eb87dad Merge pull request #198 from QiWang19/engine-env
Add env to [engines] for engine to use
2020-06-30 12:14:48 +02:00
Daniel J Walsh 95ee4035ef Merge pull request #199 from rhatdan/conf
Fix location of stop_timeout in default containers.conf
2020-06-30 05:12:07 -04:00
Qi Wang 82a0ff9d5c Add container_engine_env for engine to use
Add container_env_var for setting envariables for engin to use.

Signed-off-by: Qi Wang <qiwan@redhat.com>
2020-06-29 16:50:14 -04:00
Daniel J Walsh 58f0670c78 Fix location of stop_timeout in default containers.conf
stop_timeout has to be defined in the engine section not
the engine.runtimes section.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-29 13:41:56 -04:00
Daniel J Walsh 98cc227301 Merge pull request #182 from containers/dependabot/go_modules/github.com/containers/image/v5-5.5.1
Bump github.com/containers/image/v5 from 5.4.4 to 5.5.1
2020-06-25 08:13:06 -04:00
dependabot-preview[bot] 2f325c77c5 Bump github.com/containers/image/v5 from 5.4.4 to 5.5.1
Bumps [github.com/containers/image/v5](https://github.com/containers/image) from 5.4.4 to 5.5.1.
- [Release notes](https://github.com/containers/image/releases)
- [Commits](https://github.com/containers/image/compare/v5.4.4...v5.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-25 07:05:38 -04:00
Daniel J Walsh 5e1bdd498e Merge pull request #192 from rhatdan/remote
Remote
2020-06-25 07:05:00 -04:00
Daniel J Walsh dd0b47bedf Fix testing to not race on containers.conf
Looks like the Write test has to run last.  Not sure why this is
crashing but this fixes the issue.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-25 06:04:39 -04:00
Daniel J Walsh 5b1f87dcf5 Merge pull request #186 from rhatdan/race
Remove race condition on sync.Once
2020-06-24 09:14:50 -04:00
Daniel J Walsh 467bf8407a Remove race condition on sync.Once
We had a race condition where the sync.Once was called, and initializing
the default Config, but another thread hit it simultaniously and got the
nil value.
This patch will always return a correct value.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-24 08:52:44 -04:00
Daniel J Walsh eca434e97b Merge pull request #188 from vrothberg/version-pkg
pkg/version -> version
2020-06-24 08:45:42 -04:00
Valentin Rothberg d5639f5e55 pkg/version -> version
Move pkg/version to version to be consistent with other libraries in
c/image.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-06-24 10:47:18 +02:00
Daniel J Walsh 32b089edea Merge pull request #184 from rhatdan/conf
Fixup handling of remote_uri for documentation
2020-06-23 15:32:23 -04:00
Daniel J Walsh 7b05e8398e Merge pull request #183 from TomSweeneyRedHat/dev/tsweeney/quay
Add script to rebuild images on quay.io
2020-06-23 12:51:51 -04:00
Daniel J Walsh 9839b10d40 Fixup handling of remote_uri for documentation
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-23 12:48:26 -04:00
Daniel J Walsh 156821e284 Merge pull request #185 from openSUSE/aa-profiles
Fix AppArmor profile prefix and name
2020-06-23 12:47:40 -04:00
Sascha Grunert 4a58c879e2 Change AppArmor profile prefix and fix name-check
The default AppArmor profile is now prefixed with
`container-default-$VERSION`, whereas the version is now part of a new
`version` package.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-06-23 18:11:28 +02:00
TomSweeneyRedHat c4acc72a31 Add script to rebuild images on quay.io
We recently discovered that the build triggers that are employed on
quay.io for the Buildah, Podman, and Skopeo container images does not
refresh the images as frequently as we thought.  Due to Docker using
the `--no-cache` flag under the covers at quay to do the builds, our
images were always using the pre-existing cache unless the `FROM` target
or the Dockerfile changed.  This rarely happened and it would take
weeks or more before the stable version would bump up to the latest
version available.  Ditto the upstream and testing variants.

I've created a script that can be run `by-hand` or via cron to update the
various images.  The script takes the project name and the creds for
an administrator on our repos on quay.io.  If those values are not supplied
the script will ask for them and the password will not be shown when
typed in.

I'm planning to run this via cron on one of my VM's and the images should
be updated every morning that my VM is up, or someone else with admin privs
can run it.  If someone runs this script without privs, they will build the
images locally and they will not be able to push them.

This was the most logical place I could think of to drop this script as it's
usable by all of our projects.  If you've a better location, please let me
know.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-06-23 09:46:12 -04:00
Daniel J Walsh 01d5c39941 Merge pull request #181 from rhatdan/master
Bump to v0.14.0
2020-06-16 16:38:46 -04:00
Daniel J Walsh 9f840d87db Move to v0.14.1
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-16 16:37:38 -04:00
Daniel J Walsh ce82604882 Bump to v0.14.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-16 16:37:12 -04:00
Daniel J Walsh 3b4c7d1db8 Merge pull request #180 from rhatdan/write
Add ability to read and write a default config file
2020-06-16 16:36:20 -04:00
Daniel J Walsh b804d2aa5f Add ability to read and write a default config file
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-16 10:31:01 -04:00
Daniel J Walsh 7c517adbd3 Merge pull request #179 from containers/dependabot/go_modules/github.com/onsi/ginkgo-1.13.0
Bump github.com/onsi/ginkgo from 1.12.3 to 1.13.0
2020-06-15 12:52:18 -04:00
dependabot-preview[bot] 93f978d9b4 Bump github.com/onsi/ginkgo from 1.12.3 to 1.13.0
Bumps [github.com/onsi/ginkgo](https://github.com/onsi/ginkgo) from 1.12.3 to 1.13.0.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/ginkgo/compare/v1.12.3...v1.13.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-15 10:33:37 -04:00
Tom Sweeney 80863ea3b6 Merge pull request #178 from rhatdan/conf
replace error-prone non-ASCII quotes in template config
2020-06-11 08:29:13 -04:00
Daniel J Walsh 8e66aea7b2 replace error-prone non-ASCII quotes in template config
Copied @parmentelat patch from  https://github.com/containers/libpod/pull/6566

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-11 07:27:18 -04:00
Daniel J Walsh fbb92ee287 Merge pull request #177 from rhatdan/master
Bump to v0.13.1
2020-06-11 05:49:13 -04:00
Daniel J Walsh 1a9871a76b Move to v0.13.2-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-11 05:47:33 -04:00
Daniel J Walsh e66e17872c Bump to v0.13.1
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-11 05:47:05 -04:00
Daniel J Walsh f3255b12c0 Merge pull request #176 from QiWang19/logout-error
logout suggests logout with docker
2020-06-11 05:45:49 -04:00
Qi Wang cdc87dc2bd logout suggests logout with docker
logout suggests logout with docker if credential exists in ~/.docker/config,json

Signed-off-by: Qi Wang <qiwan@redhat.com>
2020-06-09 20:49:43 -04:00
Daniel J Walsh 50930020bd Merge pull request #173 from containers/dependabot/go_modules/github.com/stretchr/testify-1.6.1
Bump github.com/stretchr/testify from 1.6.0 to 1.6.1
2020-06-08 15:10:38 -04:00
Daniel J Walsh 655e045b22 Merge pull request #175 from TomSweeneyRedHat/dev/tsweeney/v0.13.0
Bump to v0.13.0
2020-06-08 15:09:52 -04:00
TomSweeneyRedHat ae01ad044c Move to v0.13.1-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-06-08 13:40:11 -04:00