Commit 9424228c authored by Reza Sahebgharan's avatar Reza Sahebgharan

fix(gitrun): test windows based container in gitrun

parent a029b2ba
...@@ -49,6 +49,7 @@ build_in_devel_windows: ...@@ -49,6 +49,7 @@ build_in_devel_windows:
- meteor build C:\output --directory --server-only - meteor build C:\output --directory --server-only
- Copy-Item -Path .\docker-compose.yml -Destination C:\output\bundle - Copy-Item -Path .\docker-compose.yml -Destination C:\output\bundle
- Copy-Item -Path .\docker\windows\Dockerfile -Destination C:\output\bundle - Copy-Item -Path .\docker\windows\Dockerfile -Destination C:\output\bundle
- Copy-Item -Path .\scripts\command.bat -Destination C:\output\bundle
- cd C:\output\bundle\programs\server - cd C:\output\bundle\programs\server
- npm install - npm install
- cd ../.. - cd ../..
...@@ -62,7 +63,7 @@ build_in_devel_windows: ...@@ -62,7 +63,7 @@ build_in_devel_windows:
- New-Item -Path '.\.env' -ItemType File - New-Item -Path '.\.env' -ItemType File
- Add-Content .\.env "$envtext" - Add-Content .\.env "$envtext"
- echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./.env staging.karname.ir:c:/Users/administrator/.env # save .env in remote server - echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./.env staging.karname.ir:c:/Users/administrator/.env # save .env in remote server
- echo y | plink -batch -ssh administrator@staging.karname.ir -pw $env:StagingPass -m ./scripts/command.bat - echo y | plink -batch -ssh administrator@staging.karname.ir -pw $env:StagingPass -m ./command.bat
# - ./scripts/command.ps1 # - ./scripts/command.ps1
allow_failure: true allow_failure: true
only: only:
......
FROM mcr.microsoft.com/windows/nanoserver:1809 FROM mcr.microsoft.com/windows/nanoserver:1809
RUN curl.exe -o node.zip https://nodejs.org/dist/v12.9.1/node-v12.9.1-win-x64.zip && \ RUN mkdir "C:\\node" && curl.exe -o "C:\\node\\node.zip" https://nodejs.org/dist/v12.9.1/node-v12.9.1-win-x64.zip && \
mkdir "C:\\Program Files\\node" && \ mkdir "C:\\Program Files\\node" && \
tar.exe -xf node.zip -C "C:\\Program Files\\node" --strip-components=1 tar.exe -xf "C:\\node\\node.zip" -C "C:\\Program Files\\node" --strip-components=1
ENV PATH "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\node" ENV PATH "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\node"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment