Skip to content

Add quick-start script for Windows#690

Merged
kezhenxu94 merged 4 commits intomasterfrom
windows-quickstart
Mar 18, 2024
Merged

Add quick-start script for Windows#690
kezhenxu94 merged 4 commits intomasterfrom
windows-quickstart

Conversation

@Superskyyy
Copy link
Member

@Superskyyy Superskyyy commented Mar 16, 2024

This is an equivalent quick start script for Windows (powershell).

Functionality has been tested on my Windows laptop. A new section will be added to the OAP doc to cover its usage.

It could be excuted using:

(Invoke-WebRequest -Uri https://skywalking.apache.org/quickstart-docker.ps1 -UseBasicParsing).Content | Invoke-Expression

Can be run with or without interaction:
image

@Superskyyy Superskyyy added the enhancement New feature or request label Mar 16, 2024
@Superskyyy Superskyyy requested a review from kezhenxu94 March 16, 2024 18:42
@Superskyyy Superskyyy self-assigned this Mar 16, 2024
@netlify
Copy link

netlify bot commented Mar 16, 2024

Deploy Preview for skywalking-website-preview ready!

Name Link
🔨 Latest commit 0f49d9d
🔍 Latest deploy log https://app.netlify.com/sites/skywalking-website-preview/deploys/65f78b7d3396490008fa7b47
😎 Deploy Preview https://deploy-preview-690--skywalking-website-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines 39 to 40
Write-Host " -d Run in background mode (docker compose up -d)"
Write-Host " -f Run in foreground mode (docker compose up)"
Copy link
Member

Choose a reason for hiding this comment

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

Can we only keep one of these options? For a Boolean option I don't think it necessary to provide 2 options

Copy link
Member Author

@Superskyyy Superskyyy Mar 17, 2024

Choose a reason for hiding this comment

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

Ok, removed. It was put there to allow non-interative runs.

Copy link
Member

Choose a reason for hiding this comment

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

I can't see commits today. Do you miss it?

Copy link
Member Author

@Superskyyy Superskyyy Mar 18, 2024

Choose a reason for hiding this comment

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

I can't see commits today. Do you miss it?

Just pushed, was having hotpot at home 😆

Write-Host "Docker is installed, continue...`n"

# In place download
Invoke-WebRequest -Uri "https://github.com/apache/skywalking/raw/master/docker/docker-compose.yml" -OutFile ".\docker-compose.yml"
Copy link
Member

Choose a reason for hiding this comment

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

You download the file to the current directory, let's either move it to a temporary folder or check whether current directory already has a file with the same name in case we override user's file unexpectedly

Copy link
Member Author

@Superskyyy Superskyyy Mar 18, 2024

Choose a reason for hiding this comment

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

Added new logic to allow user to choose the override behavior, bevause temp dir on windows won't be cleared automatically so I figured some people might not like that. (and its hard to say if the temp dir logic will work on all systems)

@wu-sheng wu-sheng requested a review from kezhenxu94 March 18, 2024 00:37
@kezhenxu94 kezhenxu94 merged commit ee29956 into master Mar 18, 2024
@kezhenxu94 kezhenxu94 deleted the windows-quickstart branch March 18, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants