Skip to content
This repository was archived by the owner on Jun 17, 2019. It is now read-only.

Commit 1a2c9ee

Browse files
committed
NAV container example with WinAuth.
- NAV container example with WinAuth. - Documentation has been updated. - Cleanup.
1 parent dfbc7bd commit 1a2c9ee

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

root/build/nav/_run.detached.sql.ps1

Lines changed: 0 additions & 6 deletions
This file was deleted.

root/build/nav/_stop.bat

Lines changed: 0 additions & 3 deletions
This file was deleted.

root/run/nav/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
# Dockerfiles for MS Dynamics NAV - root directory
22
[![Join the chat at https://gitter.im/dockerfiles-dynamics-nav/Lobby](https://badges.gitter.im/dockerfiles-dynamics-nav/Lobby.svg)](https://gitter.im/dockerfiles-dynamics-nav/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
33

4-
Instantiate independent NAV containers (right now an example with SQL authentication between NAV and SQL as well on the client side). The SQL must be already present somewher and must be accesible.
4+
Instantiate independent NAV containers (right now an example with SQL authentication between NAV and SQL as well on the client side). The SQL must be already present somewhere and must be accessible.
5+
6+
* `_run.sqlAuth.ps1`
7+
* Creates an independent NAV container on the default network (we are considering to be a **nat** network).
8+
* This container requires an existing and accessible SQL server instance. The authentication between NAV and SQL service will be provided via **SQL login** so you have to enable **Mixed Mode** on the SQL server and create/know a *SQL server login* with *db_owner* privileges on the target database.
9+
* NAV user authentication uses **NavUserPassword**.
10+
* Please, just change all necessary parameters (*-e* values) in the script, eventually, you also change the network driver and remove port mappings etc.
11+
* `_run.winAuth.ps1`
12+
* Creates an independent NAV container on the default network (we are considering to be a **nat** network).
13+
* This container requires an existing and accessible SQL server instance. The authentication betwen NAV and SQL server will be provided via **Windows Authentication** so you have to create a *Windows login* on the SQL server with *db_owner* privileges on the target database.
14+
* NAV user authentication uses **Windows**. This must be properly created in the target database.
15+
* **This demo requires gMSA to be active and properly configured.**

root/run/nav/_run.winAuth.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[CmdletBinding()]
2+
param (
3+
4+
)
5+
6+
. (Join-Path $PSScriptRoot '_createlinks.ps1')
7+
. (Join-Path $PSScriptRoot '_presetvars.ps1')
8+
9+
$containerId = docker run -d --hostname=NAVSERVER -p 7045-7048:7045-7048 `
10+
-e "sql_server=sql_ip\sql_instance" -e "sql_db=navdbname" `
11+
-e "import_cronus_license=false" -e "config_instance=false" `
12+
${repo}/${navImageNameWin}
13+
14+
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $containerId

0 commit comments

Comments
 (0)