Skip to content

Conversation

@TravisEz13
Copy link
Member

Related to #2793

# Persist %PSCORE% ENV variable for user convenience
ENV PSCORE='"C:\Program Files\PowerShell\Core\PowerShell.exe"'

ENTRYPOINT ["cmd", "/c", "\"%PSCORE%\""]
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

# Persist %PSCORE% ENV variable for user convenience
ENV PSCORE='"C:\Program Files\PowerShell\Core\PowerShell.exe"'

ENTRYPOINT ["C:\\Program Files\\PowerShell\\Core\\PowerShell.exe"]
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

@SteveL-MSFT SteveL-MSFT Mar 30, 2017

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?

Copy link
Member Author

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
Copy link
Member

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?

Copy link
Member Author

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
Copy link
Member

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?

Copy link
Member Author

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?

@daxian-dbw daxian-dbw merged commit 7ceb1f6 into PowerShell:master Mar 31, 2017
@TravisEz13 TravisEz13 deleted the FixWindowsDockerContainer branch March 31, 2017 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants