FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PipeScript/PipeScript.ps.dockerfile at main · StartAutomating/PipeScript · GitHub
StartAutomating
/
PipeScript
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
7
Star
110
Code
Issues
370
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
PipeScript
/
PipeScript.ps.dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
44 lines (36 loc) · 1.54 KB
Breadcrumbs
PipeScript
/
PipeScript.ps.dockerfile
Copy path
File metadata and controls
44 lines (36 loc) · 1.54 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#
{
#
<#
#
.Synopsis
#
Sample PipeScript Dockerfile Template
#
.Description
#
This is a working example DockerFile template that generates a dockerfile that runs PipeScript.
#
#>
#
param($BaseImage = 'mcr.microsoft.com/powershell')
#
"FROM $BaseImage"
#
}
#
{
#
param($EnvironmentVariables = [Ordered]@{PIPESCRIPT_VERSION=(Get-Module PipeScript).Version})
#
if ($EnvironmentVariables) {
#
foreach ($kvp in $environmentVariables.GetEnumerator()) {
#
"ENV $($kvp.Key) $($kvp.Value)"
#
}
#
}
#
}
#
{
#
param($DockerInstallPackages = @("git","curl","ca-certificates","libc6","libgcc1") )
#
if ($DockerInstallPackages) {"RUN apt-get update && apt-get install -y $($dockerInstallPackages -join ' ')"}
#
}
ENV
PSModulePath ./Modules
#
{
#
param($DockerInstallModules = @("Splatter", "PSSVG", "ugit", "Irregular") )
#
$PowerShellPath = "opt/microsoft/powershell/7/pwsh"
#
if ($DockerInstallModules) { "RUN $PowerShellPath --noprofile --nologo -c Install-Module '$($DockerInstallModules -join "','")' -Scope CurrentUser -Force"}
#
}
#
{
#
$LoadedModuleInPath = (Get-Module | Split-Path) -match ([Regex]::Escape($pwd)) | Select -first 1
#
if ($LoadedModuleInPath) { "COPY ./ ./Modules/$($LoadedModuleInPath | Split-Path -Leaf)" }
#
}
#
{
#
param(<# A Script to Run When Docker Starts #>$DockerProfileScript = "./Http.Server.Start.ps1")
#
if ($DockerProfileScript) { "COPY ./$DockerProfileScript /root/.config/powershell/Microsoft.PowerShell_profile.ps1"}
#
}
Back
|
FazBrowse Home
|
New Git URL