|
| 1 | +harness('inviqa/alokai'): |
| 2 | + description: A docker based development environment for Alokai |
| 3 | + harnessLayers: |
| 4 | + - inviqa/docker:v0.4.0 |
| 5 | + require: |
| 6 | + services: |
| 7 | + - proxy |
| 8 | + confd: |
| 9 | + - harness:/ |
| 10 | +--- |
| 11 | +attributes: |
| 12 | + app: |
| 13 | + multistore: |
| 14 | + enabled: false |
| 15 | + code_owner: node |
| 16 | + |
| 17 | + node: |
| 18 | + packageManager: yarn |
| 19 | + version: '18' |
| 20 | + |
| 21 | + npm: |
| 22 | + login: true |
| 23 | + registry: |
| 24 | + # username: |
| 25 | + # password: |
| 26 | + # email: # email address ignored but field required |
| 27 | + url: https://registrynpm.storefrontcloud.io |
| 28 | + scope: '@vsf-enterprise' |
| 29 | + |
| 30 | + services: |
| 31 | + console: |
| 32 | + build: |
| 33 | + from: = 'node:' ~ @('node.version') ~ '-slim' |
| 34 | + args: |
| 35 | + NPM_USER: = @('npm.registry.username') |
| 36 | + NPM_PASS: = @('npm.registry.password') |
| 37 | + NPM_EMAIL: = @('npm.registry.email') |
| 38 | + NPM_REGISTRY: = @('npm.registry.url') |
| 39 | + NPM_SCOPE: = @('npm.registry.scope') |
| 40 | + publish: false |
| 41 | + nginx: |
| 42 | + enabled: true |
| 43 | + relay: |
| 44 | + enabled: false |
| 45 | + middleware: |
| 46 | + enabled: true |
| 47 | + build: |
| 48 | + args: |
| 49 | + NPM_USER: = @('npm.registry.username') |
| 50 | + NPM_PASS: = @('npm.registry.password') |
| 51 | + NPM_EMAIL: = @('npm.registry.email') |
| 52 | + NPM_REGISTRY: = @('npm.registry.url') |
| 53 | + NPM_SCOPE: = @('npm.registry.scope') |
| 54 | + environment: |
| 55 | + ### Commerce |
| 56 | + IS_MULTISTORE_ENABLED: > |
| 57 | + = @('app.build') == 'host' ? 'false' |
| 58 | + : @('alokia.multistore.enabled') ? 'true' |
| 59 | + : false |
| 60 | + # BIGCOMMERCE_API_CLIENT_ID: |
| 61 | + # BIGCOMMERCE_API_URL: |
| 62 | + # BIGCOMMERCE_STORE_ID: |
| 63 | + |
| 64 | + ### CMS |
| 65 | + # Contentful config |
| 66 | + # CNTF_SPACE: |
| 67 | + # CNTF_ENVIRONMENT: |
| 68 | + environment_secrets: |
| 69 | + # BIGCOMMERCE_API_CLIENT_SECRET: |
| 70 | + # BIGCOMMERCE_API_ACCESS_TOKEN: |
| 71 | + # BIGCOMMERCE_STORE_GUEST_TOKEN: |
| 72 | + # CNTF_TOKEN: |
| 73 | + nextjs: |
| 74 | + enabled: true |
| 75 | + build: |
| 76 | + args: |
| 77 | + NPM_USER: = @('npm.registry.username') |
| 78 | + NPM_PASS: = @('npm.registry.password') |
| 79 | + NPM_EMAIL: = @('npm.registry.email') |
| 80 | + NPM_REGISTRY: = @('npm.registry.url') |
| 81 | + NPM_SCOPE: = @('npm.registry.scope') |
| 82 | + |
| 83 | + NEXT_PUBLIC_API_BASE_URL: > |
| 84 | + = @('app.build') == 'host' ? 'http://localhost:4000' |
| 85 | + : @('alokia.multistore.enabled') ? '/api' |
| 86 | + : 'https://' ~ @('hostname') ~ '/api' |
| 87 | + NEXT_PUBLIC_IS_MULTISTORE_ENABLED: > |
| 88 | + = @('app.build') == 'host' ? 'false' |
| 89 | + : @('alokia.multistore.enabled') ? 'true' |
| 90 | + : false |
| 91 | +
|
| 92 | + # Default Image Loader fetch url. |
| 93 | + # For Cloudinary check https://cloudinary.com/documentation/fetch_remote_images#fetch_and_deliver_remote_files |
| 94 | + # NEXT_PUBLIC_IMAGE_LOADER_FETCH_URL: https://res.cloudinary.com/dcqchkrzw/image/fetch/ |
| 95 | + |
| 96 | + # Optional. Will be used when image url will not start with http. |
| 97 | + # For Cloudinary check https://cloudinary.com/documentation/migration#lazy_migration_with_auto_upload |
| 98 | + # NEXT_PUBLIC_IMAGE_LOADER_UPLOAD_URL: https://res.cloudinary.com/vsf-sap/image/upload/ |
| 99 | + environment: {} # no NEXT_PUBLIC variables supported for runtime |
| 100 | + environment_secrets: |
| 101 | + # to allow nextjs server-side talking to nginx https locally for middleware routing |
| 102 | + NODE_TLS_REJECT_UNAUTHORIZED: '0' |
| 103 | +--- |
| 104 | +import: |
| 105 | + - harness/config/*.yml |
| 106 | + - harness/attributes/*.yml |
| 107 | + - harness/attributes/environment/={env('MY127WS_ENV','local')}.yml |
0 commit comments