-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add entry points to the windows docker files #3462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add entry points to the windows docker files #3462
Conversation
docker/release/nanoserver/Dockerfile
Outdated
| # Persist %PSCORE% ENV variable for user convenience | ||
| ENV PSCORE='"C:\Program Files\PowerShell\Core\PowerShell.exe"' | ||
|
|
||
| ENTRYPOINT ["cmd", "/c", "\"%PSCORE%\""] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't just call powershell.exe directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docker/release/nanoserver/Dockerfile
Outdated
| # Persist %PSCORE% ENV variable for user convenience | ||
| ENV PSCORE='"C:\Program Files\PowerShell\Core\PowerShell.exe"' | ||
|
|
||
| ENTRYPOINT ["C:\\Program Files\\PowerShell\\Core\\PowerShell.exe"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typically, powershell.exe is expected to be installed to a versioned folder (c:\program files\powershell\6.0.0-alpha.17\powershell.exe), how does Core fit into this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docker image creates the core folder as a symbolic link (see line 35). This allow this static path to be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename core to latest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| @@ -1,5 +1,5 @@ | |||
| # escape=` | |||
| FROM microsoft/windowsservercore | |||
| FROM microsoft/windowsservercore:latest | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come you don't have this suffix for nanoserver?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't mean to add it, but it should be there. I'll add it too.
| # escape=` | ||
| FROM microsoft/nanoserver | ||
| FROM microsoft/nanoserver:latest | ||
| MAINTAINER brycem@microsoft.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we change this to powershellteam@hotmail.com?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that go anywhere? All the rest have actual email addresses on them. If we want to update them, that should probably be a separate item. The MAINTAINER tag is deprecated anyway. I filed #3465 for this. Can we continue this discussion there?
Related to #2793