Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Hopefully this will help you to get up and running with Sitecore and Docker. By
# Requirements
- Windows 10 update 1803 (with Hyper-V enabled)
- Docker for Windows (version 1712 or better): https://docs.docker.com/docker-for-windows/
- Visual Studio 15.5.3
- Sitecore installation files

# Build
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: '2.2'

services:
mssql:
image: sitecore-docker_mssql
build:
context: ./
dockerfile: ./mssql/Dockerfile
Expand All @@ -21,6 +22,7 @@ services:

sitecore:
build:
image: sitecore-docker_sitecore
context: ./
dockerfile: ./sitecore/Dockerfile
args:
Expand All @@ -43,6 +45,7 @@ services:
ipv4_address: 172.16.1.3

solr:
image: sitecore-docker_solr
build:
context: ./
dockerfile: ./solr/Dockerfile
Expand All @@ -61,6 +64,7 @@ services:
ipv4_address: 172.16.1.4

xconnect:
image: sitecore-docker_xconnect
build:
context: ./
dockerfile: ./xconnect/Dockerfile
Expand Down
Binary file added files/sitecore-rocks/Sitecore.Rocks.Server.dll
Binary file not shown.
51 changes: 51 additions & 0 deletions files/sitecore-rocks/WebService/Browse.aspx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<%@ Page Language="C#" %>
<script runat="server">

public bool IsLoggedIn()
{
return Sitecore.Context.User.Identity.IsAuthenticated && Sitecore.Web.Authentication.TicketManager.IsCurrentTicketValid();
}

</script>
<%
var username = Request.QueryString["u"] ?? string.Empty;
var password = Request.QueryString["p"] ?? string.Empty;
var redirect = Request.QueryString["r"] ?? string.Empty;

var isLoggedIn = false;
try
{
isLoggedIn = IsLoggedIn();
}
catch (MissingMethodException)
{
isLoggedIn = Sitecore.Context.User.Identity.IsAuthenticated;
}

if (isLoggedIn)
{
Sitecore.Web.WebUtil.Redirect(redirect);
return;
}

var args1 = new Sitecore.Pipelines.LoggingIn.LoggingInArgs();
args1.Username = username;
args1.Password = password;
args1.StartUrl = redirect;

Sitecore.Pipelines.Pipeline.Start("loggingin", args1);
if (!args1.Success)
{
Sitecore.Web.WebUtil.Redirect(redirect);
return;
}

var args2 = new Sitecore.Pipelines.LoggedIn.LoggedInArgs();
args2.Username = username;
args2.StartUrl = redirect;
args2.Persist = false;

Sitecore.Pipelines.Pipeline.Start("loggedin", args2);

Sitecore.Web.WebUtil.Redirect(redirect);
%>
1 change: 1 addition & 0 deletions files/sitecore-rocks/WebService/Service2.asmx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%@ WebService Language="C#" CodeBehind="Service2.asmx.cs" Class="Sitecore.Visual.Service2" %>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%@ WebHandler Language="C#" CodeBehind="Sitecore.Rocks.Validation.ashx.cs" Class="Sitecore.Rocks.Server.WebService.ValidationHandler" %>
4 changes: 4 additions & 0 deletions sitecore/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ RUN Copy-Item /Config/*.* c:\inetpub\wwwroot\$Env:SITE_NAME\App_Config\Include
# enable live-mode
RUN mv C:\inetpub\wwwroot\sitecore\App_Config\Include\Examples\LiveMode.config.example C:\inetpub\wwwroot\sitecore\App_Config\Include\Examples\LiveMode.config

# copy sitecore rocks files
COPY files/sitecore-rocks/WebService/* /inetpub/wwwroot/sitecore/sitecore/shell/WebService/
COPY files/sitecore-rocks/*.dll /inetpub/wwwroot/sitecore/bin/

# Add Host
RUN /Scripts/Add-Hosts.ps1;

Expand Down