Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Build Redis

On the server, Unzip "Redis Dockerfile.zip". In the extracted folder, run command "docker build . -t redis" .

Build MongoDB

On the server, Unzip "Mogo Dockerfile.zip". In the extracted folder, run command "docker build . -t mongo" .

Build Theme

Build Theme project in development PC. Command: npm run build

Unzip docker file from "Theme Dockerfile.zip" to the project folder and copy project folder to the server. 

...

Install Docker Engine - Enterprise

https://docs.docker.com/install/windows/docker-ee/

Install docker-compose. Run command: 

Invoke-WebRequest "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-Windows-x86_64.exe" -UseBasicParsing -OutFile $Env:ProgramFiles\Docker\docker-compose.exe

Build Redis

Download iqx.onelist solution from repository.

Open cmd from <solution root>\WinBuild\redis, run command "docker -t redis build ." .

Build MongoDB

Download iqx.onelist solution from repository.

Open cmd from <solution root>\WinBuild\mongo, run command "docker -t mongo build ." .

Build OneList Frontend

Open cmd from <solution root>/IQX.OneList/IQX.OneList.Frontend folder.

Remove all reference to "dist" in .dockerignore.

Build project. "npm run build-prod".

Run command "docker build -t iqx.onelist.frontend -f winbuild\dockerfile .".

Build DefaultTheme

Open cmd from <solution root>/IQX.DefaultTheme.

Build project. "npm run build".

Run command "docker build -t iqx.theme -f winbuild\dockerfile .".

IIS Proxy

Install the URL Rewrite and Application Request Routing IIS module.

Activate reverse proxy. Open “Application Request Routing Cache” → Select “Server Proxy Settings” → Check the box “Enable Proxy”, uncheck "Reverse rewrite host in response headers" and click Apply

Place web.config file to root folder of the IIS site.

Deploy Containers

Login to Azure container registry. Run command: "docker login iqxbuild.azurecr.io".

Download docker-compose.yml and modify environment variables. Run command: "docker-compose up -d".