Skip to content

Commit

Permalink
AU: 2 updated - dropbox etcd
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey Community committed Dec 16, 2022
1 parent 5c4fa55 commit cee4ba7
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 14 deletions.
2 changes: 1 addition & 1 deletion automatic/dropbox/dropbox.json
@@ -1,4 +1,4 @@
{
"beta": "164.3.7891-beta",
"beta": "164.3.7907-beta",
"stable": "163.4.5456"
}
2 changes: 1 addition & 1 deletion automatic/dropbox/dropbox.nuspec
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>dropbox</id>
<version>163.4.5456</version>
<version>164.3.7907-beta</version>
<title>Dropbox</title>
<authors>Dropbox</authors>
<owners>chocolatey-community,ferventcoder,the-running-dev</owners>
Expand Down
10 changes: 5 additions & 5 deletions automatic/dropbox/tools/chocolateyinstall.ps1
Expand Up @@ -4,7 +4,7 @@ if (!$PSScriptRoot) {
}
. "$PSScriptRoot\helper.ps1"

$version = '163.4.5456'
$version = '164.3.7907'

if (!(IsVersionAlreadyInstalled $version)) {
$stop_dropbox = if (Get-Process -Name Dropbox -ErrorAction SilentlyContinue) { $false } else { $true }
Expand All @@ -13,10 +13,10 @@ if (!(IsVersionAlreadyInstalled $version)) {
$packageArgs = @{
packageName = $env:ChocolateyPackageName
softwareName = "Dropbox"
url = 'https://edge.dropboxstatic.com/dbx-releng/client/experimental/Dropbox%20163.4.5456%20Offline%20Installer.x86.exe'
url64 = 'https://edge.dropboxstatic.com/dbx-releng/client/experimental/Dropbox%20163.4.5456%20Offline%20Installer.x64.exe'
checksum = 'f6aa1826bd687b7ae2c2b549ef0fa65bfe97a05bb8a57d05c4a5ed1cc92663a2'
checksum64 = '157a1b9c2fa37d502874420bbf954110c81a9a5683b29b77cf0769a57dbcfc93'
url = 'https://edge.dropboxstatic.com/dbx-releng/client/experimental/Dropbox%20164.3.7907%20Offline%20Installer.x86.exe'
url64 = 'https://edge.dropboxstatic.com/dbx-releng/client/experimental/Dropbox%20164.3.7907%20Offline%20Installer.x64.exe'
checksum = '1d761a21bf76a0b5a7dea2d30aae1c0af292a7a25bd7b6b00885a5a51f7d5586'
checksum64 = 'a004783ff4df5e1e50fbfc77f9a89dfd00bef9600e63dcda9b6f0052f32d9efd'
fileType = 'exe'
checksumType = 'sha256'
checksumType64 = 'sha256'
Expand Down
4 changes: 2 additions & 2 deletions automatic/etcd/etcd.json
Expand Up @@ -5,7 +5,7 @@
"3.1": "3.1.20",
"3.2": "3.2.32",
"3.3": "3.3.27",
"3.4": "3.4.21",
"3.5": "3.5.5",
"3.4": "3.4.22",
"3.5": "3.5.6",
"3.6": "3.6.0-alpha0"
}
92 changes: 90 additions & 2 deletions automatic/etcd/etcd.nuspec
Expand Up @@ -3,7 +3,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>etcd</id>
<version>3.5.5</version>
<version>3.5.6</version>
<packageSourceUrl>https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/etcd</packageSourceUrl>
<owners>chocolatey-community,dgalbraith,Andrei Bejenaru,Robert Labrie</owners>
<title>etcd (Install)</title>
Expand Down Expand Up @@ -45,7 +45,95 @@ Example: `choco install etcd -y --params="-discovery https://discovery.etcd.io/t
* Windows support is limited to 64-bit systems
* Originally packaged by Robert Labrie (https://github.com/robertlabrie)
]]></description>
<releaseNotes>https://github.com/etcd-io/etcd/releases/tag/v3.5.5</releaseNotes>
<releaseNotes>Please check out [CHANGELOG](https://github.com/etcd-io/etcd/blob/main/CHANGELOG/CHANGELOG-3.5.md) for a full list of changes. And make sure to read [upgrade guide](https://github.com/etcd-io/website/blob/main/content/en/docs/v3.5/upgrades/upgrade_3_5.md) before upgrading etcd (there may be breaking changes).

For installation guides, please check out [play.etcd.io](http://play.etcd.io) and [operating etcd](https://github.com/etcd-io/etcd/tree/master/Documentation#operating-etcd-clusters). Latest support status for common architectures and operating systems can be found at [supported platforms](https://github.com/etcd-io/website/blob/main/content/en/docs/v3.5/op-guide/supported-platform.md).

###### Linux

```bash
ETCD_VER=v3.5.6

# choose either URL
GOOGLE_URL=https://storage.googleapis.com/etcd
GITHUB_URL=https://github.com/etcd-io/etcd/releases/download
DOWNLOAD_URL=${GOOGLE_URL}

rm -f /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
rm -rf /tmp/etcd-download-test &amp;&amp; mkdir -p /tmp/etcd-download-test

curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/etcd-download-test --strip-components=1
rm -f /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz

/tmp/etcd-download-test/etcd --version
/tmp/etcd-download-test/etcdctl version
```

```bash
# start a local etcd server
/tmp/etcd-download-test/etcd

# write,read to etcd
/tmp/etcd-download-test/etcdctl --endpoints=localhost:2379 put foo bar
/tmp/etcd-download-test/etcdctl --endpoints=localhost:2379 get foo
```

###### macOS (Darwin)

```bash
ETCD_VER=v3.5.6

# choose either URL
GOOGLE_URL=https://storage.googleapis.com/etcd
GITHUB_URL=https://github.com/etcd-io/etcd/releases/download
DOWNLOAD_URL=${GOOGLE_URL}

rm -f /tmp/etcd-${ETCD_VER}-darwin-amd64.zip
rm -rf /tmp/etcd-download-test &amp;&amp; mkdir -p /tmp/etcd-download-test

curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-darwin-amd64.zip -o /tmp/etcd-${ETCD_VER}-darwin-amd64.zip
unzip /tmp/etcd-${ETCD_VER}-darwin-amd64.zip -d /tmp &amp;&amp; rm -f /tmp/etcd-${ETCD_VER}-darwin-amd64.zip
mv /tmp/etcd-${ETCD_VER}-darwin-amd64/* /tmp/etcd-download-test &amp;&amp; rm -rf mv /tmp/etcd-${ETCD_VER}-darwin-amd64

/tmp/etcd-download-test/etcd --version
/tmp/etcd-download-test/etcdctl version
```

###### Docker

etcd uses [`gcr.io/etcd-development/etcd`](https://gcr.io/etcd-development/etcd) as a primary container registry, and [`quay.io/coreos/etcd`](https://quay.io/coreos/etcd) as secondary.

```bash
rm -rf /tmp/etcd-data.tmp &amp;&amp; mkdir -p /tmp/etcd-data.tmp &amp;&amp; \
docker rmi gcr.io/etcd-development/etcd:v3.5.6 || true &amp;&amp; \
docker run \
-p 2379:2379 \
-p 2380:2380 \
--mount type=bind,source=/tmp/etcd-data.tmp,destination=/etcd-data \
--name etcd-gcr-v3.5.6 \
gcr.io/etcd-development/etcd:v3.5.6 \
/usr/local/bin/etcd \
--name s1 \
--data-dir /etcd-data \
--listen-client-urls http://0.0.0.0:2379 \
--advertise-client-urls http://0.0.0.0:2379 \
--listen-peer-urls http://0.0.0.0:2380 \
--initial-advertise-peer-urls http://0.0.0.0:2380 \
--initial-cluster s1=http://0.0.0.0:2380 \
--initial-cluster-token tkn \
--initial-cluster-state new \
--log-level info \
--logger zap \
--log-outputs stderr

docker exec etcd-gcr-v3.5.6 /bin/sh -c "/usr/local/bin/etcd --version"
docker exec etcd-gcr-v3.5.6 /bin/sh -c "/usr/local/bin/etcdctl version"
docker exec etcd-gcr-v3.5.6 /bin/sh -c "/usr/local/bin/etcdctl endpoint health"
docker exec etcd-gcr-v3.5.6 /bin/sh -c "/usr/local/bin/etcdctl put foo bar"
docker exec etcd-gcr-v3.5.6 /bin/sh -c "/usr/local/bin/etcdctl get foo"
```
</releaseNotes>
<dependencies>
<dependency id="nssm" version="2.24.101" />
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions automatic/etcd/legal/VERIFICATION.txt
Expand Up @@ -4,11 +4,11 @@ Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

The embedded software have been downloaded from the listed download
location on <https://github.com/etcd-io/etcd/releases/tag/v3.5.5>
location on <https://github.com/etcd-io/etcd/releases/tag/v3.5.6>
and can be verified by doing the following:

1. Download the following:
software: <https://github.com/etcd-io/etcd/releases/download/v3.5.5/etcd-v3.5.5-windows-amd64.zip>
software: <https://github.com/etcd-io/etcd/releases/download/v3.5.6/etcd-v3.5.6-windows-amd64.zip>

2. Get the checksum using one of the following methods:
- Using powershell function 'Get-FileHash'
Expand All @@ -17,6 +17,6 @@ and can be verified by doing the following:
3. The checksums should match the following:

checksum type: sha256
checksum: BCABE6BBEB1AC0B91395E19856E39C1056C05EB303B714670876ACF21158BD3F
checksum: D3090A0C4814E8A9EAE0FBA561F368AB09CD5E1C86C59F84CC9E3881A190A1FC

The file 'LICENSE.txt' has been obtained from <https://github.com/etcd-io/etcd/commit/3381177341c11aa9d89b6172699d64ddc2146a11/LICENSE>

0 comments on commit cee4ba7

Please sign in to comment.