Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
karname-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Reza Sahebgharan
karname-ui
Commits
9424228c
Commit
9424228c
authored
Oct 30, 2019
by
Reza Sahebgharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(gitrun): test windows based container in gitrun
parent
a029b2ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
.gitlab-ci.yml
.gitlab-ci.yml
+2
-1
Dockerfile
docker/windows/Dockerfile
+2
-2
No files found.
.gitlab-ci.yml
View file @
9424228c
...
@@ -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
:
...
...
docker/windows/Dockerfile
View file @
9424228c
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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment