From 66e016c6dc71abadf4a18ecf8688cf66079f6212 Mon Sep 17 00:00:00 2001 From: Rafael Matias Date: Thu, 25 Jul 2019 13:08:29 +0200 Subject: [PATCH] swarm: release v0.4.3 (#1602) * swarm: 0.4.3 release notes * swarm: 0.4.3 stable version * swarm: 0.4.3 release notes - fix --- CHANGELOG.md | 26 +++++++++++++++++++++----- README.md | 23 +++++++++++------------ version/version.go | 8 ++++---- 3 files changed, 36 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83660742ff..5dabb151b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,28 @@ -## v0.4.3 (Unreleased) +## v0.4.3 (July 25, 2019) ### Notes -### Features +- **Docker users:** The `$PASSWORD` and `$DATADIR` environment variables are not supported anymore since this release. From now on you should mount the password or data dirctories as a volume. For example: + ```bash + $ docker run -it -v $PWD/hostdata:/data \ + -v $PWD/password:/password \ + ethersphere/swarm:0.4.3 \ + --datadir /data \ + --password /password + ``` -### Improvements +### Bug fixes and improvements -### Bug fixes +* [#1586](https://github.com/ethersphere/swarm/pull/1586): network: structured output for kademlia table +* [#1582](https://github.com/ethersphere/swarm/pull/1582): client: add bzz client, update smoke tests +* [#1578](https://github.com/ethersphere/swarm/pull/1578): swarm-smoke: fix check max prox hosts for pull/push sync modes +* [#1557](https://github.com/ethersphere/swarm/pull/1557): cmd/swarm: allow using a network interface by name for nat purposes +* [#1534](https://github.com/ethersphere/swarm/pull/1534): api, network: count chunk deliveries per peer +* [#1537](https://github.com/ethersphere/swarm/pull/1537): swarm: fix bzz_info.port when using dynamic port allocation +* [#1531](https://github.com/ethersphere/swarm/pull/1531): cmd/swarm: make bzzaccount flag optional and add bzzkeyhex flag +* [#1536](https://github.com/ethersphere/swarm/pull/1536): cmd/swarm: use only one function to parse flags +* [#1530](https://github.com/ethersphere/swarm/pull/1530): network/bitvector: Multibit set/unset + string rep +* [#1555](https://github.com/ethersphere/swarm/pull/1555): PoC: Network simulation framework ## v0.4.2 (June 28, 2019) @@ -14,7 +30,7 @@ This release is not backward compatible with the previous versions of Swarm due to changes to the wire protocol of the Retrieve Request messages. Please update your nodes. -### Bug fixes and Improvements +### Bug fixes and improvements * [#1503](https://github.com/ethersphere/swarm/pull/1503): network/simulation: add ExecAdapter capability to swarm simulations * [#1495](https://github.com/ethersphere/swarm/pull/1495): build: enable ubuntu ppa disco (19.04) builds diff --git a/README.md b/README.md index 08037cd651..56fba9384c 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,6 @@ Swarm is a distributed storage platform and content distribution service, a nati - [Documentation](#Documentation) - [Docker](#Docker) - [Docker tags](#Docker-tags) - - [Environment variables](#Environment-variables) - [Swarm command line arguments](#Swarm-command-line-arguments) - [Developers Guide](#Developers-Guide) - [Go Environment](#Go-Environment) @@ -109,11 +108,6 @@ Swarm container images are available at Docker Hub: [ethersphere/swarm](https:// * `edge` - latest build from `master` * `v0.x.y` - specific stable release -### Environment variables - -* `PASSWORD` - *required* - Used to setup a sample Ethereum account in the data directory. If a data directory is mounted with a volume, the first Ethereum account from it is loaded, and Swarm will try to decrypt it non-interactively with `PASSWORD` -* `DATADIR` - *optional* - Defaults to `/root/.ethereum` - ### Swarm command line arguments All Swarm command line arguments are supported and can be sent as part of the CMD field to the Docker container. @@ -123,15 +117,16 @@ All Swarm command line arguments are supported and can be sent as part of the CM Running a Swarm container from the command line ```bash -$ docker run -e PASSWORD=password123 -t ethersphere/swarm \ +$ docker run -it ethersphere/swarm \ --debug \ --verbosity 4 ``` + Running a Swarm container with custom ENS endpoint ```bash -$ docker run -e PASSWORD=password123 -t ethersphere/swarm \ +$ docker run -it ethersphere/swarm \ --ens-api http://1.2.3.4:8545 \ --debug \ --verbosity 4 @@ -140,7 +135,7 @@ $ docker run -e PASSWORD=password123 -t ethersphere/swarm \ Running a Swarm container with metrics enabled ```bash -$ docker run -e PASSWORD=password123 -t ethersphere/swarm \ +$ docker run -it ethersphere/swarm \ --debug \ --metrics \ --metrics.influxdb.export \ @@ -155,7 +150,7 @@ $ docker run -e PASSWORD=password123 -t ethersphere/swarm \ Running a Swarm container with tracing and pprof server enabled ```bash -$ docker run -e PASSWORD=password123 -t ethersphere/swarm \ +$ docker run -it ethersphere/swarm \ --debug \ --tracing \ --tracing.endpoint 127.0.0.1:6831 \ @@ -165,10 +160,14 @@ $ docker run -e PASSWORD=password123 -t ethersphere/swarm \ --pprofport 6060 ``` -Running a Swarm container with custom data directory mounted from a volume +Running a Swarm container with a custom data directory mounted from a volume and a password file to unlock the swarm account ```bash -$ docker run -e DATADIR=/data -e PASSWORD=password123 -v /tmp/hostdata:/data -t ethersphere/swarm \ +$ docker run -it -v $PWD/hostdata:/data \ + -v $PWD/password:/password \ + ethersphere/swarm \ + --datadir /data \ + --password /password \ --debug \ --verbosity 4 ``` diff --git a/version/version.go b/version/version.go index d5c528a1da..ff880e79c1 100644 --- a/version/version.go +++ b/version/version.go @@ -21,10 +21,10 @@ import ( ) const ( - VersionMajor = 0 // Major version component of the current release - VersionMinor = 4 // Minor version component of the current release - VersionPatch = 3 // Patch version component of the current release - VersionMeta = "unstable" // Version metadata to append to the version string + VersionMajor = 0 // Major version component of the current release + VersionMinor = 4 // Minor version component of the current release + VersionPatch = 3 // Patch version component of the current release + VersionMeta = "stable" // Version metadata to append to the version string ) // Version holds the textual version string.