Skip to content

Commit

Permalink
Add docker host required init script to gradle check windows runner
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Oct 4, 2023
1 parent ab16329 commit 3df2200
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/compute/agent-nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ export class AgentNodes {
minimumNumberOfSpareInstances: 1,
numExecutors: 1,
amiId: 'ami-0a00aabd70b0757f9',
initScript: 'echo',
initScript: 'echo %USERNAME% && dockerd --register-service && net start docker && echo started docker deamon && docker ps && '
+ 'echo initializing docker images now waiting for 5min && git clone https://github.com/opensearch-project/opensearch-build.git && '
+ 'bash.exe -c "docker run --rm -it --name docker-windows-test -d `opensearch-build/docker/ci/get-ci-images.sh '
+ '-p windows2019-servercore -u opensearch -t build | head -1` bash.exe && sleep 5" && docker exec docker-windows-test whoami && '
+ 'docker ps && docker stop docker-windows-test && docker ps && rm -rf opensearch-build',
remoteFs: 'C:/Users/Administrator/jenkins',
};
this.AL2_X64_DEFAULT_AGENT = {
Expand Down

0 comments on commit 3df2200

Please sign in to comment.