-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Update nano server insider for new bulid #4555
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
Update nano server insider for new bulid #4555
Conversation
# Copy Powershell from the installer containter | ||
ENV ProgramFiles C:\Program Files | ||
COPY --from=installer-env ["\\PowerShell\\", "$ProgramFiles\\PowerShell"] | ||
|
||
# Persist %PSCORE% ENV variable for user convenience | ||
ENV PSCORE="$ProgramFiles\PowerShell\PowerShell.exe" | ||
|
||
# setx /M fails on nanoserver-insider, setting the user path | ||
# Set the path | ||
RUN setx PATH "%PATH%;%ProgramFiles%\PowerShell" |
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.
Just curious, setx /M
is not necessary on nanoserver because it's a single user OS, correct?
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.
correct, they fixed the container to use the per user path.
RUN setx PATH "%PATH%;%ProgramFiles%\PowerShell" | ||
|
||
CMD ["C:\\Program Files\\PowerShell\\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.
In docker/README.md:
Due to an issue with the container not picking up the path, you must specify the path when running a command on the command line.
Looks like the PATH issue has been fixed, so the document should be updated.
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 added a note that it will be fixed soon. I have to setup a build machine matching the exact build of the container, which might take me some time.
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.
LGTM
Also, Address #4310