Sign inSign up

truecommerce/tc.onetime.middletier

By truecommerce

Updated over 4 years ago

Image
0

761

truecommerce/tc.onetime.middletier repository overview

TrueCommerce OneTime Middle Tier

This repository contains images for the TrueCommerce OneTime Middle Tier

Usage

Prior to running the container the application requires an Administrator Certificate from Foundry Platform. One way this can be obtained is by running the associated tool from the Foundry Security Tools. Follow the steps in the "Generate authentication certificate" and save the output.

Docker Compose Example

This is an example of a full production deployment docker-compose file. Assumes RabbitMQ is provided and avaialble. Redis caching is recommended for a production environment.

version: '3.4'
services:
  onetimecore:
    image: truecommerce/tc.onetime.middletier:0.5
    container_name: OneTime-Core
    restart: unless-stopped
    environment:
      - ASPNETCORE_ENVIRONMENT=Production
      - MiddleTier__CorsOriginAllowed=http://localhost:30000;${MT_HOST}:${MT_PORT}
      - MiddleTier__Caching__Provider=${CACHE_PROVIDER}
      - MiddleTier__Caching__Redis_Configuration__Connection=${REDIS_CONNECTION}
      - MiddleTier__Caching__Redis_Configuration__InstanceName=${REDIS_INSTANCE}
      - MiddleTier__Caching__Redis_Configuration__UseWithNHibernate=${USE_REDIS_NHIBERNATE}
      - MiddleTier__Registration__AgentName=${AGENT_NAME}
      - MiddleTier__Registration__UseHttps=${USE_HTTPS}
      - MiddleTier__Registration__ProvidersHost=${PROVIDER_HOST}:${PROVIDER_PORT}
      - MiddleTier__Registration__MiddleTierHost=${MT_HOST}:${MT_PORT}
      - MiddleTier__Registration__SupportsAlerts=${SUPPORTS_ALERTS}
      - MiddleTier__Registration__SupportsMetadata=${SUPPORTS_METADATA}
      - MiddleTier__Registration__SupportsScheduledTasks=${SUPPORTS_SCHEDULED_TASKS}
      - MiddleTier__Registration__RegisterGlobalTenant=${REGISTER_GLOBAL_TENANT}
      - MiddleTier__Registration__MobileApplication__AlwaysDeploy=${ALWAYS_DEPLOY}
      - MiddleTier__Registration__MobileApplication__PackagePath=${DEPLOY_PACKAGE_PATH}
      - MiddleTier__InitializationCertificate=${INITIALISATION_CERT}
      - Foundry__RabbitMQ__Host=${RABBIT_CONNECTION}
      - Foundry__RabbitMQ__Username=${RABBIT_USER}  
      - Foundry__RabbitMQ__Password=${RABBIT_PASSWORD}
      - Foundry__Security__RootUrl=${SECURITY_MICROSERVICE_HOST}
      - ApiCredentialSettings__Request=${REQUEST_HEADER}
      - ApiCredentialSettings__Url=${REQUEST_URL}
      - ApiCredentialSettings__UserName=${REQUEST_USER}
      - ApiCredentialSettings__Password=${REQUEST_PASSWORD}
      - ApiCredentialSettings__Token=${REQUEST_TOKEN}
      - Logging__LogLevel__Default=Information
      - Foundry__CoreOData__RootUrl=${COREODATA_HOST}
      
    ports:
      - ${MT_PORT}:80
    links:
      - ${REDIS_CONNECTION}
Variable NameDescriptionExample
IMAGE_VERSIONVersion component of the tag1.0.200.0000
INITIALIZATION_CERTInitialization certificate generated by security tools
COREODATA_HOSTLocation of the Core OData (MSI) serviceshttps://localhost:30000
SECURITY_MICROSERVICE_HOSTLocation of the Security Microservicehttps://localhost:30100
RABBIT_CONNECTIONConnection string for RabbitMQ instance used by Foundryrabbitmq://localhost
RABBIT_USERThe username for the Foundry RabbitMQ connectiontc
RABBIT_PASSWORDThe password for the Foundry RabbitMQ connectiontc
RABBIT_TIMEOUTA default timeout for RabbitMQ messages0.00:00:15
CACHE_PROVIDERMechanism to use for distributed caching. One of 'Redis' or 'InMemory'Redis
REDIS_INSTANCEName of the instance used for Redis when CACHE_PROVIDER is RedisOneTime-Cache
USE_REDIS_NHIBERNATE'true' if Redis should be used for 2nd level caching in NHibernate and 'false' otherwisefalse
PROVIDER_HOSTExternal name or IP where provider microservice will be runlocalhost
PROVIDER_PORTExternal port used to load balance and proxy for provider microservice middle tier12755
REQUEST_HEADERThe request headerREQUEST=
REQUEST_URLThe URL to send SSO requests to
AGENT_NAMEThe Foundry agent to deploy toSystem Agent
USE_HTTPSUse HTTPs to deploytrue
SUPPORTS_ALERTS'true' if the MT supports alertsfalse
SUPPORTS_METADATA'true' if the MT supports metadatatrue
SUPPORTS_SCHEDULED_TASKS'true' if the MT supports scheduled tasksfalse
REGISTER_GLOBAL_TENANT'true' to deploy to the global tenanttrue
ALWAYS_DEPLOY'true' to always attempt deployment on startuptrue
DEPLOY_PACKAGE_PATHThe path in the image to the mobile UI/Deploy/ModuleUi.a1pkg

Tag summary

Content type

Image

Digest

Size

96.7 MB

Last updated

almost 5 years ago

docker pull truecommerce/tc.onetime.middletier