You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Docker Compose file for preview environment and building docker images in pipelinesservices:
# Database service for local developmentdatabase:
build:
args:
NEO4J_IMAGE: ${NEO4J_IMAGE:-neo4j:5.10.0-enterprise}PYTHON_IMAGE: ${PYTHON_IMAGE:-python:3.11.3-slim}NEO4J_server_memory_heap_initial__size: "2G"NEO4J_server_memory_heap_max__size: "2G"NEO4J_server_memory_pagecache_size: "1G"CDISC_DATA_DIR: ${CDISC_DATA_DIR:-mdr_standards_import/container_booting/}NEO4J_MDR_AUTH_PASSWORD: "${NEO4J_PASSWORD:-changeme1234}"UID: ${UID:-1000}context: ./dockerfile: database.Dockerfileenvironment:
NEO4J_ACCEPT_LICENSE_AGREEMENT: "yes"NEO4J_server_memory_heap_initial__size: "2G"NEO4J_server_memory_heap_max__size: "2G"NEO4J_server_memory_pagecache_size: "1G"NEO4J_server_default__listen__address: "0.0.0.0"NEO4J_server_default__advertised__address: "localhost"NEO4J_server_bolt_advertised__address: "localhost:5002"NEO4J_server_http_advertised__address: "localhost:5001"ports:
- "${BIND_ADDRESS:-127.0.0.1}:${NEO4J_BOLT_PORT:-5002}:7687"
- "${BIND_ADDRESS:-127.0.0.1}:${NEO4J_HTTP_PORT:-5001}:7474"volumes:
- type: volumesource: datatarget: /data# For database dumps, you can mount a folder into the container ex.:#- ./neo4j-dumps:/data/dumps# API image & service, distinct build stages for production and developmentapi:
build:
context: ./clinical-mdr-apidockerfile: Dockerfileargs:
UVICORN_PORT: 5003UVICORN_ROOT_PATH: "/api"PYTHON_IMAGE: ${PYTHON_IMAGE:-python:3.11.3-slim}TARGET: ${BUILD_TARGET:-dev}image: ${API_IMAGE:-}depends_on:
database:
condition: service_healthyenvironment:
NEO4J_DSN: "${NEO4J_DSN:-bolt://neo4j:changeme1234@database:7687/mdrdb}"ALLOW_ORIGIN_REGEX: "${ALLOW_ORIGIN_REGEX:-.*}"OAUTH_ENABLED: "${OAUTH_ENABLED:-False}"OAUTH_RBAC_ENABLED: "${OAUTH_RBAC_ENABLED:-False}"OAUTH_METADATA_URL: "${OAUTH_METADATA_URL:-}"OAUTH_API_APP_ID: "${OAUTH_API_APP_ID:-}"OAUTH_API_APP_SECRET: "${OAUTH_API_APP_SECRET:-}"OAUTH_SWAGGER_APP_ID: "${OAUTH_SWAGGER_APP_ID:-}"MS_GRAPH_INTEGRATION_ENABLED: "${MS_GRAPH_INTEGRATION_ENABLED:-}"MS_GRAPH_GROUPS_QUERY: "${MS_GRAPH_GROUPS_QUERY:-}"# deprecated #OAUTH_APP_ID: "${OAUTH_APP_ID:-}"OAUTH_APP_SECRET: "${OAUTH_APP_SECRET:-}"OAUTH_CLIENT_ID: "${OAUTH_CLIENT_ID:-}"OIDC_METADATA_DOCUMENT: "${OIDC_METADATA_DOCUMENT:-}"# Frontend image for production (see UI service for local development)frontend:
build:
args:
NGINX_IMAGE: ${NGINX_IMAGE:-nginx:alpine}NODE_IMAGE: ${NODE_IMAGE:-node:lts-alpine}context: ./studybuilderdockerfile: Dockerfileimage: ${FRONTEND_IMAGE:-}depends_on:
# Nginx reverse-proxy configuration requires downstream services to be ready at startupapi:
condition: service_healthydocumentation:
condition: service_healthyneodash:
condition: service_healthyports:
- "${BIND_ADDRESS:-127.0.0.1}:${FRONTEND_PORT:-5005}:5005"environment:
API_BASE_URL: "${API_PATH:-}"DOC_BASE_URL: "${DOC_PATH:-}"NEODASH_BASE_URL: "${NEODASH_PATH:-}"OAUTH_ENABLED: "${OAUTH_ENABLED:-false}"OAUTH_METADATA_URL: "${OAUTH_METADATA_URL:-}"OAUTH_API_APP_ID: "${OAUTH_API_APP_ID:-}"OAUTH_UI_APP_ID: "${OAUTH_UI_APP_ID:-}"APPINSIGHTS_DISABLE: "true"# Documentation portal image for production (see docs service for local development)documentation:
build:
args:
NGINX_IMAGE: ${NGINX_IMAGE:-nginx:alpine}NODE_IMAGE: ${NODE_IMAGE:-node:lts-alpine3.14}context: ./documentation-portaldockerfile: Dockerfileimage: ${DOCUMENTATION_IMAGE:-}# Neodash service used with defined parametersneodash:
image: neo4jlabs/neodash:latestdepends_on:
database:
condition: service_healthyports:
- "${BIND_ADDRESS:-127.0.0.1}:${NEODASH_PORT:-5007}:5007"environment:
- NGINX_PORT=5007
- ssoEnabled=false
- ssoDiscoveryUrl=https://localhost.com
- standalone=true
- standaloneProtocol=neo4j
- standaloneHost=localhost
- standalonePort=5002
- standaloneDatabase=mdrdb
- standaloneDashboardName=My dashboard
- standaloneDashboardDatabase=neo4j
- standaloneUsername=neo4j
- standalonePassword=${NEO4J_PASSWORD:-changeme1234}volumes:
# Volume for storing the database on a local development environmentdata:
name: studybuilder_database
Anything else?
Hello,
I'm also running into this issue using oc apply.
Openshift expects a proper apiVersion.
Steps:
kompose convert -f compose.yaml --provider=openshift --build build-config
grep apiVersion *buildconfig*
api-buildconfig.yaml:apiVersion: v1
oc apply -f api-buildconfig.yaml
error: resource mapping not found for name: "frontend" namespace: "" from "api-buildconfig.yaml": no matches for kind "BuildConfig" in version "v1"
ensure CRDs are installed first
Change apiVersion from v1 to openshift apiVersion: build.openshift.io/v1:
Expected Behavior
setting in buildconfig
apiVersion: build.openshift.io/v1
Actual Behavior
setting in buildconfig:
apiVersion: v1
Steps To Reproduce
kompose convert -f compose.yaml --provider=openshift --build build-config
oc apply -f api-buildconfig.yaml
Kompose Version
Docker-Compose file
Anything else?
Hello,
I'm also running into this issue using
oc apply
.Openshift expects a proper apiVersion.
Steps:
Change apiVersion from
v1
to openshiftapiVersion: build.openshift.io/v1
:The text was updated successfully, but these errors were encountered: