Skip to content

Commit

Permalink
docs: download tarball using powershell commands
Browse files Browse the repository at this point in the history
  • Loading branch information
salzig committed Sep 26, 2024
1 parent fa71f10 commit 48106a5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ This is a WSL Distro for Ruby'n'Rails (Ruby and RubyOnRails) development. It is
* [RubyOnRails](https://rubyonrails.org/)

## Copy & Paste setup


```
# Install WSL2
wsl --install
# Build the WSL-Distro Tarball
docker build -o type=tar,dest=rubynrails.tar .
# Download the WSL-Distro Tarball
$version = [io.path]::GetFileName((Invoke-WebRequest "https://github.com/salzig/wsl-distro-rubynrails/releases/latest" -MaximumRedirection 0 -ErrorAction Ignore).Headers.Location)
(New-Object System.Net.WebClient).DownloadFile("https://github.com/salzig/wsl-distro-rubynrails/releases/download/$version/wsl-distro-rubynrails.tar", "wsl-distro-rubynrails.tar")
# Import Tarball as WSL-Distro
wsl --import RubynRails C:\WSL\rubynrails .\rubynrails.tar
wsl --import RubynRails .\rubynrails wsl-distro-rubynrails.tar
# Cleanup temporary file
Remove-Item "wsl-distro-rubynrails.tar"
```

Default user is `me` with a password of `love`, which you need to run commands as root (using sudo).
Expand Down

0 comments on commit 48106a5

Please sign in to comment.