1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Commit Graph

10668 Commits

Author SHA1 Message Date
Kenny Lee Sin Cheong
2ffc12b3eb chore: cleanup remaining artifacts remaining related to aci signing (PROJQUAY-2792) (#968)
Removes deprecated artifacts from code and files for ACI.
2021-11-19 13:49:28 -05:00
Syed Mushtaq Ahmed
ae129b45e9 chore: Bump up config-tool version v0.1.8 (#984) 2021-11-18 15:29:52 -05:00
Syed Mushtaq Ahmed
c8092069a2 chore: Bump up config-tool version (#983) 2021-11-18 14:30:25 -05:00
Syed Mushtaq Ahmed
ba08ddd707 chore: Bump up config-tool version (#982) 2021-11-18 13:02:20 -05:00
Brandon Caton
22282dae09 blobuploadcleanupworker: Add cleanup for orphaned blobs (PROJQUAY-2313) (#967)
Currently blobs leftover in the uploads directory during cancelled uploads do not get cleaned up since they are no longer tracked. This change cleans up the uploads storage directory directly.
2021-11-17 15:55:33 -05:00
Kenny Lee Sin Cheong
bbacf2321f chore: bump gevent related packages' version (PROJQUAY-2821) (#979)
Addresses https://github.com/gevent/gevent/issues/1513. Upgrades
gevent, greenlet and gunicorn.
2021-11-17 09:53:37 -05:00
dependabot[bot]
ae516d8481 build(deps): bump reportlab from 3.5.34 to 3.5.55 (#978)
Bumps [reportlab](http://www.reportlab.com/) from 3.5.34 to 3.5.55.

---
updated-dependencies:
- dependency-name: reportlab
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-16 14:57:08 -05:00
dependabot[bot]
288f31bbfb build(deps): bump pip from 20.2.3 to 21.1 (#977)
Bumps [pip](https://github.com/pypa/pip) from 20.2.3 to 21.1.
- [Release notes](https://github.com/pypa/pip/releases)
- [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/pip/compare/20.2.3...21.1)

---
updated-dependencies:
- dependency-name: pip
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-16 10:40:37 +01:00
Kenny Lee Sin Cheong
08201deaec migration: skip existing mediatype inserts (PROJQUAY-2811) (#976)
Skip inserts during migration if the mediatypes were already added previously.
2021-11-15 12:31:16 -05:00
Dave O'Connor
33588ba13d Update makefile, remove old dockerfile (#975)
* Removes sudo requirement from Makefile for local-dev-down
* Forces restart of quay and clair containers on local-docker-rebuild. This allows changes to volume mounted files to be picked up.
* Removes legacy Dockerfile
2021-11-12 13:58:36 -05:00
Syed Mushtaq Ahmed
259da89cb6 billing: Remove type hints for FakeStripe (PROJQUAY-2777) (#974) 2021-11-11 14:36:12 -05:00
Syed Mushtaq Ahmed
8d0aa9ffed billing: Remove annotations for type hints in billing (PROJQUAY-2777) (#973)
Type hints have become built-in since python 3.5
2021-11-11 13:54:00 -05:00
Syed Mushtaq Ahmed
eb668cad66 build: Use a configtool tag in the Dockerfile instead of master (PROJQUAY-2777) (#972) 2021-11-11 13:29:04 -05:00
Syed Mushtaq Ahmed
78f8081a0a build: Use a configtool tag in the Dockerfile instead of master (PROJQUAY-2777) (#971)
Having `master` as the config tool version causes issues where Docker
caches the layer. When there are updates to config-tool, docker won't
pull the new changes as it already has a cached version
2021-11-11 12:48:57 -05:00
Syed Mushtaq Ahmed
8926848a9e Dummy commit to run app-sre build-image (#970) 2021-11-11 12:00:04 -05:00
Syed Mushtaq Ahmed
6ff13afc7a Dummy commit to run app-sre build-image (#969) 2021-11-11 10:13:28 -05:00
Hank Donnay
630d6f4605 nginx: use bigger http/2 chunks for blobs (#630)
This should ameliorate PROJQUAY-1228.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
2021-11-10 14:53:32 -05:00
Syed Mushtaq Ahmed
01d4136406 deploy: Update syslog image tag(PROJQUAY-2374) (#966)
Set tag explicitly in the SaaS file
2021-11-09 12:21:14 -05:00
Syed Mushtaq Ahmed
a347d3167d build: Update backup base image name (PROJQUAY-2372) (#965)
Use quayio-py3-backup as the name for py3 images
2021-11-09 09:18:59 -05:00
Syed Mushtaq Ahmed
7458578d1a deploy: Seperate py3 deployment manifests (PROJQUAY-2374) (#931)
This makes the deployment more readable via app-sre automation
2021-11-08 15:47:23 -05:00
Syed Mushtaq Ahmed
c36f599c6e Update BASE_IMAGE in post deploy script (PROJQUAY-2372) (#964)
Use quay-py3 as base image
2021-11-08 15:17:14 -05:00
Syed Mushtaq Ahmed
d2f4efd842 build: Remove the image archive in post-deploy (PROJQUAY-2372) (#963)
post-deploy is used to push the image to backup ECR. Don't remove
the image before this is run
2021-11-08 14:57:51 -05:00
Kenny Lee Sin Cheong
563d04aa00 gc: remove orphaned storage on repository purge (PROJQUAY-2313) (#961)
Make sure to remove orphaned storage blob when purging a repository's
uploadedblob.
2021-11-08 14:21:04 -05:00
Syed Mushtaq Ahmed
af2eeaa617 build: Use docker-archive for post-deploy script (PROJQUAY-2372) (#962)
Update to use `docker-archive` for skopeo as `docker-daemon` is
not supported in rhel8 build nodes
2021-11-08 13:25:19 -05:00
Syed Mushtaq Ahmed
e8cf6339c3 build: Add docker-save to push images via skopeo on rhel-8 (PROJQUAY-2372) (#960)
Fix type with `docker save`
2021-11-04 16:45:04 -04:00
Syed Mushtaq Ahmed
d8b0e94900 build: Add docker-save to push images via skopeo on rhel-8 (PROJQUAY-2372) (#959)
on RHEL-8 nodes, there is no docker-daemon so we need to run docker save
to get a tar image to upload to to quay.io
2021-11-04 13:54:47 -04:00
Syed Mushtaq Ahmed
322b32b036 Update appsre build script (#935)
* deploy: Update app-sre build script (PROJQUAY-2374)

rhel8 uses podman instead of docker

* deploy: Update app-sre build script (PROJQUAY-2374)

rhel8 nodes don't use skopeo
2021-11-04 11:08:21 -04:00
Brandon Caton
d14da17a40 config.py: Add support for source containers (PROJQUAY-2271) (#954)
Adding support for the application/vnd.oci.source.image.config.v1+json mime type.
2021-10-29 13:09:20 -04:00
Dave O'Connor
e94e14e8f0 Resolves issues with booting quay container (#953) 2021-10-28 15:27:21 -04:00
Flavian Missi
8f64efd681 docs: consolidate getting started guides (PROJQUAY-2500) (#884)
also remove previous similar guides, and rename previuous
docs/getting_started.md to docs/quick-local-deployment.md.
2021-10-28 14:50:04 +02:00
dependabot[bot]
8eab6366cd build(deps): bump babel from 2.8.0 to 2.9.1 (#944)
Bumps [babel](https://github.com/python-babel/babel) from 2.8.0 to 2.9.1.
- [Release notes](https://github.com/python-babel/babel/releases)
- [Changelog](https://github.com/python-babel/babel/blob/master/CHANGES)
- [Commits](https://github.com/python-babel/babel/compare/v2.8.0...v2.9.1)

---
updated-dependencies:
- dependency-name: babel
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-26 12:08:10 -04:00
Flavian Missi
897e7e3913 requirements.txt: remove unused dependencies (#948)
also move dev specific dependencies to requirements-dev.txt
2021-10-26 16:41:52 +02:00
mosen
fca67e7729 feat: mypy type annotations (PROJQUAY-740) (#455)
* Add dev dependencies mypy and typing

* Add makefile target `types-test`, not yet included in `test` target.

* Generate stubs for imported modules to avoid mypy complaining about missing types.

* Remove generated stubs as there are way too many and they cause tons of mess in the repo. Switched to ignoring untyped modules for now, to concentrate on Quay-only type checking.

* mypy config changed to ignore missing imports

* ignore property decorator as it is not supported by mypy

* mypy annotations for many configuration variables

* re-generate mypy_stubs directory as its necessary in some classes for base classes to prevent mypy errors

* util/registry/queuefile referred to non existent definition of Empty class in multiprocessing.queues

* ignore type checking for things like monkey patching and exported/re-imported objects that 
mypy does not allow.

* Adjust mypy config to warn us about unreachable return paths and useless expressions.

* Add the __annotations__ property to INTERNAL_ONLY_PROPERTIES so that it is not part of the config schema testing

* Remove redundant dependencies `typing` and `typing-extensions` which are NOOP after Python 3.5

* Remove mypy-extensions which only provides a TypedDict implementation but has not been updated since 2019.

* updated mypy to 0.910 which requires all types packages to be installed manually.

* exclude local-dev from type checking until core team can suggest an outcome for __init__.py duplicate packages

* re-add typing dependency which will be needed until Python 3.9

* ignore .mypy_cache

* add mypy stub for features module to replace inline definitions

* import annotations eager evaluation in billing.py as it was required to reference a class declared later in the module.

* remove the type definition of V1ProtocolSteps/V2ProtocolSteps to make tox happy
2021-10-25 09:56:26 +02:00
Sunandadadi
162b79ec53 Quay: Fixing reclassified CVE ratings source (PROJQUAY-2691) (#937)
Fixed source of CVE ratings and fixed failing tests
2021-10-20 11:19:41 -04:00
Flavian Missi
12705e49c8 requirements-osbs: upgrade cryptography package (#943) 2021-10-20 16:17:31 +02:00
Flavian Missi
5c11e7a6a6 requirements: bump cryptography package version (#939) 2021-10-20 15:18:42 +02:00
Flavian Missi
8ef0aff83d chore: improve check for JIRA ticket (PROJQUAY-2623) (#919)
also add conventional commits check, it's very similar to our previous one.
see conventionalcommits.org for details
2021-10-19 09:15:56 +02:00
Brandon Caton
10e88d29aa makefile: Add local-dev-build-frontend step (PROJQUAY-2693) (#933)
Allows for frontend to render locally by prebuilding artifacts.
2021-10-18 16:06:33 -04:00
Flavian Missi
5ad6e0ffa7 refactor(Dockerfile): use pre-built centos 8 stream (#936)
instead of manually switching to stream ourselves, use the quay.io
centos stream8 tag.
2021-10-18 15:55:08 +02:00
Sunandadadi
20aef6a589 Quay.io UI: Fetching severity from cvss score and removing visibility… (#887)
* Quay.io UI: Fetching severity from cvss score and removing visibility of unknown metrics (PROJQUAY-2541)

If vulnerability's severity is missing mapping severity from cvss score if present. Removed visibility if severity or distribition is Unknow

* Quay.io UI: Fetching severity from cvss score and removing visibility of unknown metrics (PROJQUAY-2541)

Fixing Typo
2021-10-17 20:51:16 -04:00
Syed Mushtaq Ahmed
5a56145ba5 deploy: Update app-sre build script (PROJQUAY-2374) (#934)
rhel8 uses podman instead of docker
2021-10-15 15:37:39 -04:00
Syed Mushtaq Ahmed
6b01bd1245 deploy: Push py3 images to a different quay repo (PROJQUAY-2374) (#930)
This is to make sure we have both py2 and py3 deployable from different
repos.
2021-10-15 09:47:06 -04:00
Kenny Lee Sin Cheong
cdc7b61f9e dockerfile: make sure the production dockerfile doesn't pull from dockerhub (#929)
Use registry.redhat.io/rhel8/go-toolset:1.15 instead of openshift/golang-builder:1.15
2021-10-15 02:22:02 -04:00
Kenny Lee Sin Cheong
da558b0f68 dockerfile: replace golang base image in production dockerfile (#928)
Replace docker.io/library/golang:1.15 with openshift/golang-builder:1.15.
2021-10-14 17:00:20 -04:00
Kenny Lee Sin Cheong
139c9abc66 dockerfile: use separate dockerfile for production deployment (#927)
Use Dockerfile.deploy for CI/CD pipeline.
2021-10-14 16:09:16 -04:00
Syed Mushtaq Ahmed
759a83fabf build: use Dockerfile for building quay app-sre (PROJQUAY-2373) (#926)
Use Dockerfile instead of Dockerfile.osbs for building python3
2021-10-14 12:04:15 -04:00
Syed Mushtaq Ahmed
173dfbfc8a deploy: Update quay deployment manifests for py3 canary (PROJQUAY-2373) (#902)
This change adds the Deployment and Service resources required to
canary python3 in quay.io
2021-10-13 15:51:24 -04:00
Kenny Lee Sin Cheong
ccf6ada16a cache: handle uncaught redis exception (PROJQUAY-2614) (#907)
- Handles uncaught client exceptions so that Quay is able to fallback to
querying the database.
- Also updates the redis library version to address
https://github.com/Grokzen/redis-py-cluster/issues/370
2021-10-13 10:41:23 -04:00
Jonathan King
a29f3e0eea defaults: Update defaults in config and schema (PROJQUAY-2425) (#923)
- Update defaults in config.pu
2021-10-12 14:47:40 -07:00
Kenny Lee Sin Cheong
f50f37a393 oci: Accept the stricter oci layer type used by default in Helm 3.7 (PROJQUAY-2653) (#922)
See https://github.com/helm/helm/issues/10176
2021-10-08 11:07:22 -04:00