Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: v1.3.0-beta.1 install page #445

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions versioned_docs/version-1.3.0-beta.1/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Install ORAS from the latest [release artifacts](https://github.com/oras-project
If you want to install ORAS on an AMD64-based Linux machine, run the following command:

```bash
VERSION="1.2.0"
VERSION="1.3.0-beta.1"
curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz"
mkdir -p oras-install/
tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/
Expand All @@ -41,7 +41,7 @@ rm -rf oras_${VERSION}_*.tar.gz oras-install/
```
:::note

If you want to install ORAS on an ARM64-based Linux machine, you can download it from `https://github.com/oras-project/oras/releases/download/v1.2.0/oras_1.2.0_linux_arm64.tar.gz`.
If you want to install ORAS on an ARM64-based Linux machine, you can download it from `https://github.com/oras-project/oras/releases/download/v1.3.0-beta.1/oras_1.3.0-beta.1_linux_arm64.tar.gz`.

:::

Expand All @@ -50,7 +50,7 @@ If you want to install ORAS on an ARM64-based Linux machine, you can download it
If you want to install ORAS on a Mac computer with Apple silicon, run the following command:

```bash
VERSION="1.2.0"
VERSION="1.3.0-beta.1"
curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_darwin_arm64.tar.gz"
mkdir -p oras-install/
tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/
Expand All @@ -59,7 +59,7 @@ rm -rf oras_${VERSION}_*.tar.gz oras-install/
```
:::note

If you want to install ORAS on an Intel-based Mac, you can download it from `https://github.com/oras-project/oras/releases/download/v1.2.0/oras_1.2.0_darwin_amd64.tar.gz`.
If you want to install ORAS on an Intel-based Mac, you can download it from `https://github.com/oras-project/oras/releases/download/v1.3.0-beta.1/oras_1.3.0-beta.1_darwin_amd64.tar.gz`.

:::

Expand All @@ -68,13 +68,13 @@ If you want to install ORAS on an Intel-based Mac, you can download it from `htt
- You can install ORAS CLI on Windows using [WinGet (Windows Package Manager)](https://github.com/microsoft/winget-pkgs):

```bash
winget install oras --version 1.2.0
winget install oras --version 1.3.0-beta.1
```

- Alternatively, you can install ORAS CLI using `.exe` installer. Add `%USERPROFILE%\bin\` to your `PATH` environment variable so that `oras.exe` can be found.

```cmd
set VERSION="1.2.0"
set VERSION="1.3.0-beta.1"
curl.exe -sLO "https://github.com/oras-project/oras/releases/download/v%VERSION%/oras_%VERSION%_windows_amd64.zip"
tar.exe -xvzf oras_%VERSION%_windows_amd64.zip
mkdir -p %USERPROFILE%\bin\
Expand All @@ -87,7 +87,7 @@ set PATH=%USERPROFILE%\bin\;%PATH%
A public Docker image containing the CLI is available on [GitHub Container Registry](https://github.com/orgs/oras-project/packages/container/package/oras):

```
docker run -it --rm -v $(pwd):/workspace ghcr.io/oras-project/oras:v1.2.0 help
docker run -it --rm -v $(pwd):/workspace ghcr.io/oras-project/oras:v1.3.0-beta.1 help
```
:::note

Expand All @@ -99,7 +99,7 @@ You can use the Docker image locally instead of installing a binary.
For example create an alias:

```
alias doras='docker run -it --rm -v $(pwd):/workspace ghcr.io/oras-project/oras:v1.2.0'
alias doras='docker run -it --rm -v $(pwd):/workspace ghcr.io/oras-project/oras:v1.3.0-beta.1'
```

Run ORAS commands:
Expand Down Expand Up @@ -130,11 +130,13 @@ nix-env -iA nixpkgs.oras

## Verify

Your Go version, OS/Arch and Git commit may vary depending on what you have downloaded:
```shell
$ oras version
Version: 1.2.0
Go version: go1.22.3
Git commit: dcef719e208a9b226b15bc6512ad729a7dd93270
Version: 1.3.0-beta.1
Go version: go1.23.4
OS/Arch: darwin/arm64
Git commit: 2ca02f6f6514200366df26ba9ef6d1b311629dad
Git tree state: clean
```

Expand Down
Loading