Skip to content

Commit

Permalink
Merge pull request #6 from NAVRockClimber/Documentation
Browse files Browse the repository at this point in the history
Documentation
  • Loading branch information
NAVRockClimber authored Jul 21, 2020
2 parents aae3aea + 9c895e9 commit ea8ed69
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,20 @@ docker build -t <imagename>:<tag> --build-arg BASE=<sac tag> --build-arg NCHVERS

# Run the container

The most simple variant for running the compiler would be:
```
docker run -v <App Folder Host>:C:\src -v -e RulesetFile="c:\src\Cop.ruleset.json" --name alcnano --rm alc:<tag>
```

If the compile process takes a long time you can try to improve it with granting more memory to the container. This reduced the compile time of about 7000 AL files from over 30 minutes to 3 minutes.
```
docker run -v <App Folder Host>:C:\src -v -e RulesetFile="c:\src\Cop.ruleset.json" --memory 10G --name alcnano --rm alc:<tag>
```

# Choosing the right image

If you don't have any dotnet declarations you should be able to use the much smaller Nanoserver Image. Elsewise you got to choose the servercore image due to it contains the .Net framework.

# Converting the output for DevOps

For usage with DevOps you can use the [Convert-ALC-Output.ps1](https://raw.githubusercontent.com/NAVRockClimber/convert-alc-output/dev/Convert-ALC-Output.ps1). Just pass the log into the script.

0 comments on commit ea8ed69

Please sign in to comment.