Browse Source

set entrypoint instead of command

master
JoYo 4 months ago
parent
commit
fe3b8ded68
  1. 2
      Dockerfile
  2. 4
      README.mdown
  3. 2
      rust.Dockerfile
  4. 2
      winxp.Dockerfile

2
Dockerfile

@ -13,4 +13,4 @@ RUN C:\docker\vs_buildtools.exe --quiet --wait --norestart --nocache `
VOLUME C:\source\
WORKDIR C:\source\
CMD ["powershell", "-NoExit", "-Command", "Import-Module C:\\msvc\\Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll;", "Enter-VsDevShell -VsInstallPath C:\\msvc\\ -DevCmdArguments -arch=amd64"]
ENTRYPOINT ["powershell", "-NoExit", "-Command", "Import-Module C:\\msvc\\Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll;", "Enter-VsDevShell -VsInstallPath C:\\msvc\\"]

4
README.mdown

@ -73,7 +73,7 @@ docker-compose run win_build
This will drop you into the visual studio developer shell or console for winxp.
To modify the developer shell environments replace `command:` in your `docker-compose.yaml` with the desired environment variables or scripted build commands.
To modify the developer shell environments replace `entrypoint:` in your `docker-compose.yaml` with the desired environment variables or scripted build commands.
```yaml
version: '3'
@ -83,7 +83,7 @@ services:
image: win_build
volumes:
- .:C:/source/
command: powershell -Command Import-Module C:\\msvc\\Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll; Enter-VsDevShell -VsInstallPath C:\\msvc\\
entrypoint: powershell -Command Import-Module C:\\msvc\\Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll; Enter-VsDevShell -VsInstallPath C:\\msvc\\ -DevCmdArguments -arch=amd64
```
# Optional Workstation Scripts

2
rust.Dockerfile

@ -4,7 +4,7 @@ FROM win_build
ADD https://win.rustup.rs C:\docker\rustup-init.exe
RUN C:\docker\rustup-init.exe --quiet -y
RUN setx path "%path%;C:\Users\ContainerAdministrator\.cargo\bin"
RUN setx path "%path%;%USERPROFILE%\.cargo\bin"
VOLUME C:\source\
WORKDIR C:\source\

2
winxp.Dockerfile

@ -13,4 +13,4 @@ RUN C:\docker\vs_buildtools.exe --quiet --wait --norestart --nocache `
VOLUME C:\source\
WORKDIR C:\source\
CMD ["cmd", "/k C:\\msvc\\Common7\\Tools\\VsDevCmd.bat"]
ENTRYPOINT ["cmd", "/k C:\\msvc\\Common7\\Tools\\VsDevCmd.bat"]
Loading…
Cancel
Save