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

[DO NOT MERGE] New Downloads section in the Releases page #24018

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
129 changes: 129 additions & 0 deletions docs/content/preview/releases/ybdb-releases/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,135 @@ For information on stable release support policy, see [Stable Release support po

For information on release versioning, see [Versioning](../versioning/).

## Downloads

### v2024.1

{{<nav/tabs list="custom">}}
{{<nav/tab text="macOS" name="macos" active="true">}}
{{<nav/tab text="Linux x86" name="linux86">}}
{{<nav/tab text="Linux ARM" name="linuxarm">}}
{{<nav/tab text="Docker" name="docker">}}
{{</nav/tabs>}}

<!-- Panels begin-->
{{<nav/panels>}}

{{<nav/panel name="macos" active="true">}}

| Version | Binary |
|----| ------|
| {{<release "2024.1.2.0">}} | {{<download/link version="2024.1.2.0" build="b77" os="macos">}} |

{{</nav/panel>}}

{{<nav/panel name="linux86">}}

| Version | Binary |
|----| ------|
| {{<release "2024.1.2.0">}} | {{<download/link version="2024.1.2.0" build="b77" os="linux86">}} |

{{</nav/panel>}}

{{<nav/panel name="linuxarm">}}

| Version | Binary |
|----| ------|
| {{<release "2024.1.2.0">}} | {{<download/link version="2024.1.2.0" build="b77" os="linuxarm">}} |

{{</nav/panel>}}

{{<nav/panel name="docker">}}

| Version | Binary |
|----| ------|
| {{<release "2024.1.2.0">}} | `docker pull yugabytedb/yugabyte:2024.1.2.0-b77` |

{{</nav/panel>}}

{{</nav/panels>}}
<!-- Panels end-->

### v2.21

{{<nav/tabs list="none" repeatedTabs="true">}}
{{<nav/tab text="macOS" name="macos" active="true">}}
{{<nav/tab text="Linux x86" name="linux86">}}
{{<nav/tab text="Linux ARM" name="linuxarm">}}
{{<nav/tab text="Docker" name="docker">}}
{{</nav/tabs>}}

<!-- Panels begin-->
{{<nav/panels>}}

{{<nav/panel name="macos" active="true">}}

| Version | Binary |
|----| ------|
| {{<release "2.21.1.0">}} | {{<download/link version="2.21.1.0" build="b271" os="macos">}} |

#### Instructions

```bash
curl -O {{<download/link version="2.21.1.0" build="b271" os="macos" mode="plain">}}
tar xvfz {{<download/link version="2.21.1.0" build="b271" os="macos" mode="filename">}} && cd {{<download/link version="2.21.1.0" build="b271" os="macos" mode="dir">}}/
./bin/yugabyted start
```

{{</nav/panel>}}

{{<nav/panel name="linux86">}}

| Version | Binary |
|----| ------|
| {{<release "2.21.1.0">}} | {{<download/link version="2.21.1.0" build="b271" os="linux86">}} |

#### Instructions

```bash
wget {{<download/link version="2.21.1.0" build="b271" os="linux86" mode="plain">}}
tar xvfz {{<download/link version="2.21.1.0" build="b271" os="linux86" mode="filename">}} && cd {{<download/link version="2.21.1.0" build="b271" os="linux86" mode="dir">}}/
./bin/post_install.sh
./bin/yugabyted start
```

{{</nav/panel>}}

{{<nav/panel name="linuxarm">}}

| Version | Binary |
|----| ------|
| {{<release "2.21.1.0">}} | {{<download/link version="2.21.1.0" build="b271" os="linuxarm">}} |

#### Instructions

```bash
wget {{<download/link version="2.21.1.0" build="b271" os="linuxarm" mode="plain">}}
tar xvfz {{<download/link version="2.21.1.0" build="b271" os="linuxarm" mode="filename">}} && cd {{<download/link version="2.21.1.0" build="b271" os="linuxarm" mode="dir">}}/
./bin/post_install.sh
./bin/yugabyted start
```

{{</nav/panel>}}

{{<nav/panel name="docker">}}

| Version | Binary |
|----| ------|
| {{<release "2.21.1.0">}} | `docker pull yugabytedb/yugabyte:2.21.1.0-b271` |

#### Instructions

```bash
docker pull yugabytedb/yugabyte:2.21.1.0-b271
docker run -d --name yugabyte -p7000:7000 -p9000:9000 -p15433:15433 -p5433:5433 -p9042:9042 yugabytedb/yugabyte:2.21.1.0-b271 bin/yugabyted start --background=false
```

{{</nav/panel>}}

{{</nav/panels>}}
<!-- Panels end-->

## Releases at end of life (EOL) {#eol-releases}

{{<note title="Archived docs available">}}
Expand Down
25 changes: 25 additions & 0 deletions docs/layouts/shortcodes/download/link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{{- /* map of os to binary names */ -}}
{{- $osbinarymap := dict "linux86" "linux-x86_64"
"linuxx86" "linux-x86_64"
"linux-x86" "linux-x86_64"
"macos" "darwin-x86_64"
"darwin" "darwin-x86_64"
"linuxarm" "el8-aarch64"
-}}

{{- $version := .Get "version" }}
{{- $build := .Get "build" }}
{{- $mode := default "link" (.Get "mode") }}
{{- $os := .Get "os" -}}
{{- $binary := index $osbinarymap $os -}}
{{- $binaryname := printf "yugabyte-%s-%s-%s.tar.gz" $version $build $binary -}}
{{- $urlformat := "https://downloads.yugabyte.com/releases/%s/%s" -}}
{{- if eq $mode "plain" -}}
{{printf $urlformat $version $binaryname}}
{{- else if eq $mode "filename" -}}
{{$binaryname}}
{{- else if eq $mode "dir" -}}
{{- printf "yugabyte-%s" $version -}}
{{- else -}}
<a href="{{printf $urlformat $version $binaryname}}">{{$binaryname}}</a>
{{- end -}}
37 changes: 37 additions & 0 deletions docs/layouts/shortcodes/download/panel.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{{- $os := .Get "os" -}}
{{- $version := .Get "version" }}
{{- $build := .Get "build" }}
{{- $urlformat := "https://downloads.yugabyte.com/releases/%s/yugabyte-%s-%s-%s.tar.gz" -}}

<ul>
{{- if strings.Contains $os "darwin" -}}
<li>
<a href="{{printf $urlformat $version $version $build "darwin"}}">
<i class="fa-brands fa-apple"></i>
<span>macOS</span>
</a>
</li>
{{- else if strings.Contains $os "linux86" -}}
<li>
<a href="{{printf $urlformat $version $version $build "linux-x86_64"}}">
<i class="fa-brands fa-linux"></i>
<span>Linux x86</span>
</a>
</li>
{{- else if strings.Contains $os "linuxarm" -}}
<li>
<a href="{{printf $urlformat $version $version $build "el8-aarch64"}}">
<i class="fa-brands fa-linux"></i>
<span>Linux ARM</span>
</a>
</li>
{{- end -}}
</ul>

{{if strings.Contains $os "docker" }}
**Docker:**

```sh
docker pull yugabytedb/yugabyte:{{$version}}-${{$build}}
```
{{end}}
5 changes: 3 additions & 2 deletions docs/layouts/shortcodes/nav/panel.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{{ $suffix := "" }}
{{ $numpanels := .Page.Scratch.Get "numpanels" }}
{{ if $numpanels }}{{ $suffix = printf "-%d" $numpanels }}{{ end }}
{{ $name := printf "%s%s" (.Get "name") $suffix }}
{{ $name := .Get "name" }}
{{ $numname := printf "%s%s" (.Get "name") $suffix }}
{{ $active := .Get "active" }}
<div id="{{$name}}" class="tab-pane fade {{if $active}}show active{{end}}" role="tabpanel" aria-labelledby="{{$name}}-tab">
<div id="{{$numname}}" class="tab-pane fade {{if $active}}show active{{end}}" role="tabpanel" aria-labelledby="{{$name}}-tab">
{{.Inner | .Page.RenderString}}
</div>
8 changes: 7 additions & 1 deletion docs/layouts/shortcodes/nav/tab.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{{ $suffix := "" }}
{{ $numpanels := .Page.Scratch.Get "numpanels" }}
{{ if $numpanels }}{{ $suffix = printf "-%d" $numpanels }}{{ end }}
{{ $name := .Get "name" }}
{{ $numname := printf "%s%s" (.Get "name") $suffix }}

<li>
<a href="#{{.Get "name"}}" class="nav-link {{if (.Get "active")}}active{{end}}" id="{{.Get "name"}}-tab" data-bs-toggle="tab" role="tab" aria-controls="{{.Get "name"}}" aria-selected="true">
<a href="#{{$numname}}" class="nav-link {{if (.Get "active")}}active{{end}}" id="{{$name}}-tab" data-bs-toggle="tab" role="tab" aria-controls="{{$name}}" aria-selected="true">
{{if (.Get "img")}}<img src="{{.Get "img"}}" {{if (.Get "alt")}}alt="{{.Get "alt"}}"{{end}}>{{end}}
{{if (.Get "icon")}}<i class="icon-{{.Get "icon"}}" aria-hidden="true"></i>{{end}}
{{.Get "text"}}
Expand Down
16 changes: 10 additions & 6 deletions docs/layouts/shortcodes/nav/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,35 @@
{{- $repeatedTabs := default false (.Get "repeatedTabs") -}}
{{ $suffix := "" }}
{{ $name := "" }}
{{$numname := "" }}
{{ $numpanels := .Page.Scratch.Get "numpanels" }}
{{ if $numpanels }}{{ $suffix = printf "-%d" $numpanels }}{{ end }}
<ul class="nav nav-tabs-alt nav-tabs-yb custom-tabs{{- if $repeatedTabs }} repeated-tabs{{ end }}">
{{if strings.Contains $tabs "local"}}
{{$name = printf "%s%s" "local" $suffix}}
{{$name = "local"}}
{{$numname = printf "%s%s" $name $suffix}}
<li>
<a href="#{{$name}}" class="nav-link {{if (eq $active "local")}}active{{end}}" id="{{$name}}-tab" data-bs-toggle="tab" role="tab" aria-controls="{{$name}}" aria-selected="{{if (eq $active "local")}}true{{end}}">
<a href="#{{$numname}}" class="nav-link {{if (eq $active "local")}}active{{end}}" id="{{$name}}-tab" data-bs-toggle="tab" role="tab" aria-controls="{{$name}}" aria-selected="{{if (eq $active "local")}}true{{end}}">
<img src="/icons/database.svg" alt="Local Cluster"/>
Local
</a>
</li>
{{end}}
{{if strings.Contains $tabs "cloud"}}
{{$name = printf "%s%s" "cloud" $suffix}}
{{$name = "cloud" }}
{{$numname = printf "%s%s" $name $suffix}}
<li>
<a href="#{{$name}}" class="nav-link {{if (eq $active "cloud")}}active{{end}}" id="{{$name}}-tab" data-bs-toggle="tab" role="tab" aria-controls="{{$name}}" aria-selected="{{if (eq $active "cloud")}}true{{end}}">
<a href="#{{$numname}}" class="nav-link {{if (eq $active "cloud")}}active{{end}}" id="{{$name}}-tab" data-bs-toggle="tab" role="tab" aria-controls="{{$name}}" aria-selected="{{if (eq $active "cloud")}}true{{end}}">
<img src="/icons/cloud.svg" alt="Cloud Cluster"/>
YugabyteDB Aeon
</a>
</li>
{{end}}
{{if strings.Contains $tabs "anywhere"}}
<li>
{{$name = printf "%s%s" "anywhere" $suffix}}
<a href="#{{$name}}" class="nav-link {{if (eq $active "anywhere")}}active{{end}}" id="{{$name}}-tab" data-bs-toggle="tab" role="tab" aria-controls="{{$name}}" aria-selected="{{if (eq $active "anywhere")}}true{{end}}">
{{$name = "anywhere"}}
{{$numname = printf "%s%s" $name $suffix}}
<a href="#{{$numname}}" class="nav-link {{if (eq $active "anywhere")}}active{{end}}" id="{{$name}}-tab" data-bs-toggle="tab" role="tab" aria-controls="{{$name}}" aria-selected="{{if (eq $active "anywhere")}}true{{end}}">
<img src="/icons/server.svg" alt="Anywhere Cluster"/>
YugabyteDB Anywhere
</a>
Expand Down