Skip to content
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

Merged

Conversation

TravisEz13
Copy link
Member

Also, Address #4310

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

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?

Copy link
Member Author

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

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.

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 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.

Copy link
Member

@adityapatwardhan adityapatwardhan left a comment

Choose a reason for hiding this comment

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

LGTM

@TravisEz13 TravisEz13 merged commit 7ae955f into PowerShell:master Aug 12, 2017
@TravisEz13 TravisEz13 deleted the Update_NanoServerInsider_for_New_Bulid branch August 12, 2017 15:39
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.

None yet

4 participants