Created
August 13, 2024 08:58
-
-
Save cassidydotdk/ed5a3ee2a978a979f78ba0fcaf3d0e60 to your computer and use it in GitHub Desktop.
Optimizely 12 CMS - Docker in Linux mode (if on Windows), dotnet core 6 required
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
mssql: | |
image: mcr.microsoft.com/azure-sql-edge/developer | |
hostname: mssql | |
container_name: mssql | |
user: root | |
restart: always | |
environment: | |
ACCEPT_EULA: "Y" | |
MSSQL_SA_PASSWORD: "Qwerty12345!" | |
volumes: | |
- ./data:/var/opt/mssql/data | |
- ./log:/var/opt/mssql/log | |
- ./secrets:/var/opt/mssql/secrets | |
ports: | |
- "1433:1433" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install EpiServer (Optimizely) templates | |
dotnet new -i EPiServer.Templates | |
# Install EpiServer CLI | |
dotnet tool install EPiServer.Net.Cli --global --add-source https://nuget.optimizely.com/feed/packages.svc/ | |
# Trust dev certs to run https locally | |
dotnet dev-certs https --trust |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make a directory, e.g. "AlloyCMS" and CD to it | |
# spin up SQL server from included docker-compose.yml | |
docker compose up -d | |
# Install sample project | |
dotnet new epi-alloy-mvc . | |
# remove DB connection string from appsettings.Development.json | |
# and then | |
dotnet-episerver create-cms-database <name of generated .csproj file> -S . -dp Qwerty12345! | |
# Assuming all above went ok | |
dotnet run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment