-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Dockerfile for UD Community Demo
- Loading branch information
Lee Berg
committed
Aug 15, 2019
1 parent
3dd890b
commit a7d5bc4
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM mcr.microsoft.com/powershell:latest | ||
LABEL description="Based on the Microfot Ubuntu 18.04 for Linux PowerShell Dockerfile that will download and start Universal Dashboard Community on port 8080" | ||
|
||
# FROM: https://hub.docker.com/_/microsoft-powershell | ||
# Build: docker build . --tag=universaldashboarddemo | ||
# Run: docker run -it -p 8080:8080 universaldashboarddemo:latest | ||
|
||
EXPOSE 8080 | ||
COPY [ "./startdashboard.ps1", "/home/startdashboard.ps1" ] | ||
ENTRYPOINT ["pwsh", "/home/startdashboard.ps1"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Write-Host "Installing Universal Dashboard Community Edition..." | ||
Install-module UniversalDashboard.Community -AllowPrerelease -AcceptLicense -Force | ||
Import-module UniversalDashboard.Community -Force | ||
|
||
Write-Host "Starting Demo Dashboard..." | ||
|
||
Try{ | ||
Get-UDDashboard | Stop-UDDashboard | ||
Start-UDDashboard -Port 8080 | ||
Read-Host "Universal Dashboard Community Edition is now running!" | ||
} | ||
Catch{ | ||
Write-Host "UniversalDashboard failed to start!" | ||
} |