mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
* Add ngnix routing logic to default to react UI for downstream * Remove defaulting from env, update Makefile to build react by default for local * Add cypress test for signin and create account workflow * Add missing routes + fallback to backend server * Hide UI toggle when defaulting to new UI * Adds forgot password + recovery email, recaptcha, missing login checks * Add external login screen + support for other login types for new UI * Add new screen for update user after external login * Add authorized apps section under external logins tab * Implement updateuser react component + fix cypress test * Fix external login OAuth flow for react * switch logic to default to new ui * Add DEFAULT_UI: angular to config for cypress CI * Fix cypress tests for oauth-callback * Rebase and fix merge conflicts --------- Signed-off-by: harishsurf <hgovinda@redhat.com>
133 lines
3.2 KiB
YAML
133 lines
3.2 KiB
YAML
version: "3.7"
|
|
volumes:
|
|
quay-db-data:
|
|
clair-db-data:
|
|
|
|
services:
|
|
quay-db:
|
|
user: postgres
|
|
container_name: quay-db
|
|
image: docker.io/library/postgres:12.1
|
|
environment:
|
|
POSTGRES_USER: "quay"
|
|
POSTGRES_PASSWORD: "quay"
|
|
POSTGRES_DB: "quay"
|
|
volumes:
|
|
- "./local-dev/init/pg_bootstrap.sql:/docker-entrypoint-initdb.d/pg_bootstrap.sql"
|
|
- "quay-db-data:/var/lib/postgresql/data"
|
|
ports:
|
|
- "5432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U quay -d quay"]
|
|
interval: 10s
|
|
timeout: 9s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
clair-db:
|
|
user: postgres
|
|
container_name: clair-db
|
|
image: docker.io/library/postgres:12.1
|
|
command: -c 'max_connections=300'
|
|
environment:
|
|
POSTGRES_USER: "clair"
|
|
POSTGRES_DB: "clair"
|
|
volumes:
|
|
- "clair-db-data:/var/lib/postgresql/data"
|
|
ports:
|
|
- "5433:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U clair -d clair"]
|
|
interval: 10s
|
|
timeout: 9s
|
|
retries: 3
|
|
start_period: 10s
|
|
cpus: 2
|
|
|
|
redis:
|
|
user: nobody
|
|
container_name: quay-redis
|
|
image: docker.io/library/redis:latest
|
|
ports:
|
|
- "6379:6379"
|
|
|
|
local-dev-frontend:
|
|
user: ${DOCKER_USER:-root}
|
|
container_name: quay-local-dev-frontend
|
|
build:
|
|
context: .
|
|
target: build-static
|
|
image: localhost/quay-build:latest
|
|
init: true
|
|
volumes:
|
|
- ".:/quay-registry"
|
|
working_dir: /quay-registry
|
|
environment:
|
|
npm_config_cache: /quay-registry/.npm
|
|
entrypoint:
|
|
- sh
|
|
- -c
|
|
- npm run watch
|
|
|
|
local-dev-react:
|
|
user: ${DOCKER_USER:-root}
|
|
container_name: quay-local-dev-react
|
|
build:
|
|
context: .
|
|
args:
|
|
BUILD_ANGULAR: false
|
|
target: build-ui
|
|
image: localhost/quay-react:latest
|
|
volumes:
|
|
- ".:/quay-registry"
|
|
working_dir: /quay-registry
|
|
entrypoint:
|
|
- sh
|
|
- -c
|
|
- |
|
|
echo "Copying React files to host volume..."
|
|
mkdir -p static/patternfly
|
|
cp -r /opt/app-root/dist/* static/patternfly/
|
|
echo "React files ready for nginx"
|
|
tail -f /dev/null
|
|
quay:
|
|
user: ${DOCKER_USER:-nobody:0}
|
|
container_name: quay-quay
|
|
build:
|
|
context: .
|
|
args:
|
|
BUILD_ANGULAR: ${BUILD_ANGULAR:-true}
|
|
target: final
|
|
image: localhost/quay-local:latest
|
|
volumes:
|
|
- ".:/quay-registry"
|
|
- "./local-dev/stack:/quay-registry/conf/stack"
|
|
ports:
|
|
- "8080:8080"
|
|
- "8443:8443"
|
|
environment:
|
|
QUAY_VERSION: local-dev
|
|
QUAY_HOTRELOAD: "true"
|
|
DEBUGLOG: "true"
|
|
IGNORE_VALIDATION: "true"
|
|
QUAYRUN: /tmp
|
|
WORKER_COUNT_UNSUPPORTED_MINIMUM: "1"
|
|
WORKER_COUNT: "1"
|
|
|
|
# clair is configured to share it's network
|
|
# namespace with quay. this allows quay to serve
|
|
# layers to clair over localhost.
|
|
clair:
|
|
user: ${DOCKER_USER:-nobody:0}
|
|
container_name: quay-clair
|
|
image: quay.io/projectquay/clair:4.7.2
|
|
volumes:
|
|
- "./local-dev/clair:/src/clair/"
|
|
environment:
|
|
CLAIR_CONF: "/src/clair/config.yaml"
|
|
CLAIR_MODE: "combo"
|
|
network_mode: "service:quay"
|
|
cpus: 2
|
|
command:
|
|
["bash", "-c", "cd /src/clair/cmd/clair; go run -mod vendor ."]
|