2014-01-03 19:52:18 -05:00
|
|
|
# Release Checklist
|
2013-08-16 19:05:16 -04:00
|
|
|
## A maintainer's guide to releasing Docker
|
|
|
|
|
|
|
|
So you're in charge of a Docker release? Cool. Here's what to do.
|
|
|
|
|
|
|
|
If your experience deviates from this document, please document the changes
|
|
|
|
to keep it up-to-date.
|
|
|
|
|
2014-03-07 01:26:18 -05:00
|
|
|
It is important to note that this document assumes that the git remote in your
|
2014-07-24 18:19:50 -04:00
|
|
|
repository that corresponds to "https://github.com/docker/docker" is named
|
2014-03-07 01:26:18 -05:00
|
|
|
"origin". If yours is not (for example, if you've chosen to name it "upstream"
|
|
|
|
or something similar instead), be sure to adjust the listed snippets for your
|
|
|
|
local environment accordingly. If you are not sure what your upstream remote is
|
|
|
|
named, use a command like `git remote -v` to find out.
|
|
|
|
|
|
|
|
If you don't have an upstream remote, you can add one easily using something
|
|
|
|
like:
|
|
|
|
|
|
|
|
```bash
|
2014-06-06 17:12:39 -04:00
|
|
|
export GITHUBUSER="YOUR_GITHUB_USER"
|
2014-07-24 18:19:50 -04:00
|
|
|
git remote add origin https://github.com/docker/docker.git
|
2014-06-06 17:12:39 -04:00
|
|
|
git remote add $GITHUBUSER git@github.com:$GITHUBUSER/docker.git
|
2014-03-07 01:26:18 -05:00
|
|
|
```
|
|
|
|
|
2013-08-16 19:05:16 -04:00
|
|
|
### 1. Pull from master and create a release branch
|
|
|
|
|
2015-07-27 19:36:57 -04:00
|
|
|
All releases version numbers will be of the form: vX.Y.Z where X is the major
|
|
|
|
version number, Y is the minor version number and Z is the patch release version number.
|
|
|
|
|
|
|
|
#### Major releases
|
|
|
|
|
|
|
|
The release branch name is just vX.Y because it's going to be the basis for all .Z releases.
|
2014-06-06 17:12:39 -04:00
|
|
|
|
2013-08-16 19:05:16 -04:00
|
|
|
```bash
|
2015-07-27 19:36:57 -04:00
|
|
|
export BASE=vX.Y
|
2014-01-03 19:52:18 -05:00
|
|
|
export VERSION=vX.Y.Z
|
2014-06-06 17:12:39 -04:00
|
|
|
git fetch origin
|
2015-07-27 19:36:57 -04:00
|
|
|
git checkout --track origin/master
|
|
|
|
git checkout -b release/$BASE
|
|
|
|
```
|
|
|
|
|
|
|
|
This new branch is going to be the base for the release. We need to push it to origin so we
|
|
|
|
can track the cherry-picked changes and the version bump:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git push origin release/$BASE
|
|
|
|
```
|
|
|
|
|
|
|
|
When you have the major release branch in origin, we need to create the bump fork branch
|
|
|
|
that we'll push to our fork:
|
|
|
|
|
|
|
|
```bash
|
2013-08-16 19:05:16 -04:00
|
|
|
git checkout -b bump_$VERSION
|
2014-07-08 19:09:22 -04:00
|
|
|
```
|
|
|
|
|
2015-07-27 19:36:57 -04:00
|
|
|
#### Patch releases
|
|
|
|
|
|
|
|
If we have the release branch in origin, we can create the forked bump branch from it directly:
|
|
|
|
|
2014-07-08 19:09:22 -04:00
|
|
|
```bash
|
2015-07-27 19:36:57 -04:00
|
|
|
export VERSION=vX.Y.Z
|
|
|
|
export PATCH=vX.Y.Z+1
|
|
|
|
git fetch origin
|
|
|
|
git checkout --track origin/release/$BASE
|
|
|
|
git checkout -b bump_$PATCH
|
2013-08-16 19:05:16 -04:00
|
|
|
```
|
2014-07-08 21:53:08 -04:00
|
|
|
|
2015-07-27 19:36:57 -04:00
|
|
|
We cherry-pick only the commits we want into the bump branch:
|
|
|
|
|
2014-07-08 19:09:22 -04:00
|
|
|
```bash
|
2014-07-08 21:53:08 -04:00
|
|
|
# get the commits ids we want to cherry-pick
|
2014-07-08 19:09:22 -04:00
|
|
|
git log
|
2014-07-08 21:53:08 -04:00
|
|
|
# cherry-pick the commits starting from the oldest one, without including merge commits
|
2016-09-27 12:03:20 -04:00
|
|
|
git cherry-pick -s -x <commit-id>
|
|
|
|
git cherry-pick -s -x <commit-id>
|
2014-07-08 19:09:22 -04:00
|
|
|
...
|
|
|
|
```
|
2013-08-16 19:05:16 -04:00
|
|
|
|
2016-02-04 17:42:56 -05:00
|
|
|
### 2. Update the VERSION files and API version on master
|
2015-04-20 14:24:28 -04:00
|
|
|
|
2016-02-04 17:42:56 -05:00
|
|
|
We don't want to stop contributions to master just because we are releasing.
|
|
|
|
So, after the release branch is up, we bump the VERSION and API version to mark
|
|
|
|
the start of the "next" release.
|
2015-04-20 14:24:28 -04:00
|
|
|
|
2016-02-04 17:42:56 -05:00
|
|
|
#### 2.1 Update the VERSION files
|
|
|
|
|
|
|
|
Update the content of the `VERSION` file to be the next minor (incrementing Y)
|
|
|
|
and add the `-dev` suffix. For example, after the release branch for 1.5.0 is
|
|
|
|
created, the `VERSION` file gets updated to `1.6.0-dev` (as in "1.6.0 in the
|
|
|
|
making").
|
|
|
|
|
|
|
|
#### 2.2 Update API version on master
|
|
|
|
|
|
|
|
We don't want API changes to go to the now frozen API version. Create a new
|
|
|
|
entry in `docs/reference/api/` by copying the latest and bumping the version
|
|
|
|
number (in both the file's name and content), and submit this in a PR against
|
|
|
|
master.
|
2015-04-20 14:24:28 -04:00
|
|
|
|
|
|
|
### 3. Update CHANGELOG.md
|
2013-08-16 19:05:16 -04:00
|
|
|
|
2014-06-06 17:12:39 -04:00
|
|
|
You can run this command for reference with git 2.0:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git fetch --tags
|
|
|
|
LAST_VERSION=$(git tag -l --sort=-version:refname "v*" | grep -E 'v[0-9\.]+$' | head -1)
|
|
|
|
git log --stat $LAST_VERSION..bump_$VERSION
|
|
|
|
```
|
2013-08-16 19:05:16 -04:00
|
|
|
|
2014-06-06 17:12:39 -04:00
|
|
|
If you don't have git 2.0 but have a sort command that supports `-V`:
|
2013-08-16 19:05:16 -04:00
|
|
|
```bash
|
2014-06-06 17:12:39 -04:00
|
|
|
git fetch --tags
|
|
|
|
LAST_VERSION=$(git tag -l | grep -E 'v[0-9\.]+$' | sort -rV | head -1)
|
|
|
|
git log --stat $LAST_VERSION..bump_$VERSION
|
2013-08-16 19:05:16 -04:00
|
|
|
```
|
|
|
|
|
2014-06-06 17:12:39 -04:00
|
|
|
If releasing a major version (X or Y increased in vX.Y.Z), simply listing notable user-facing features is sufficient.
|
|
|
|
```markdown
|
|
|
|
#### Notable features since <last major version>
|
|
|
|
* New docker command to do something useful
|
|
|
|
* Remote API change (deprecating old version)
|
|
|
|
* Performance improvements in some usecases
|
|
|
|
* ...
|
|
|
|
```
|
|
|
|
|
|
|
|
For minor releases (only Z increases in vX.Y.Z), provide a list of user-facing changes.
|
2014-01-03 19:52:18 -05:00
|
|
|
Each change should be listed under a category heading formatted as `#### CATEGORY`.
|
2013-08-16 19:05:16 -04:00
|
|
|
|
2014-01-03 19:52:18 -05:00
|
|
|
`CATEGORY` should describe which part of the project is affected.
|
2013-08-16 19:05:16 -04:00
|
|
|
Valid categories are:
|
|
|
|
* Builder
|
|
|
|
* Documentation
|
|
|
|
* Hack
|
|
|
|
* Packaging
|
|
|
|
* Remote API
|
|
|
|
* Runtime
|
2014-01-03 19:52:18 -05:00
|
|
|
* Other (please use this category sparingly)
|
|
|
|
|
|
|
|
Each change should be formatted as `BULLET DESCRIPTION`, given:
|
2013-08-16 19:05:16 -04:00
|
|
|
|
2014-01-03 19:52:18 -05:00
|
|
|
* BULLET: either `-`, `+` or `*`, to indicate a bugfix, new feature or
|
|
|
|
upgrade, respectively.
|
|
|
|
|
|
|
|
* DESCRIPTION: a concise description of the change that is relevant to the
|
|
|
|
end-user, using the present tense. Changes should be described in terms
|
|
|
|
of how they affect the user, for example "Add new feature X which allows Y",
|
|
|
|
"Fix bug which caused X", "Increase performance of Y".
|
2013-08-16 19:05:16 -04:00
|
|
|
|
|
|
|
EXAMPLES:
|
|
|
|
|
2014-01-03 19:52:18 -05:00
|
|
|
```markdown
|
|
|
|
## 0.3.6 (1995-12-25)
|
|
|
|
|
|
|
|
#### Builder
|
|
|
|
|
2014-05-08 09:11:17 -04:00
|
|
|
+ 'docker build -t FOO .' applies the tag FOO to the newly built image
|
2014-01-03 19:52:18 -05:00
|
|
|
|
|
|
|
#### Remote API
|
|
|
|
|
|
|
|
- Fix a bug in the optional unix socket transport
|
|
|
|
|
|
|
|
#### Runtime
|
|
|
|
|
|
|
|
* Improve detection of kernel version
|
2013-08-16 19:05:16 -04:00
|
|
|
```
|
|
|
|
|
2014-02-04 15:32:53 -05:00
|
|
|
If you need a list of contributors between the last major release and the
|
|
|
|
current bump branch, use something like:
|
|
|
|
```bash
|
|
|
|
git log --format='%aN <%aE>' v0.7.0...bump_v0.8.0 | sort -uf
|
|
|
|
```
|
|
|
|
Obviously, you'll need to adjust version numbers as necessary. If you just need
|
|
|
|
a count, add a simple `| wc -l`.
|
|
|
|
|
2015-04-20 14:24:28 -04:00
|
|
|
### 4. Change the contents of the VERSION file
|
2013-08-16 19:05:16 -04:00
|
|
|
|
2015-02-23 14:32:28 -05:00
|
|
|
Before the big thing, you'll want to make successive release candidates and get
|
|
|
|
people to test. The release candidate number `N` should be part of the version:
|
|
|
|
|
2013-11-22 13:39:40 -05:00
|
|
|
```bash
|
2015-02-23 14:32:28 -05:00
|
|
|
export RC_VERSION=${VERSION}-rcN
|
|
|
|
echo ${RC_VERSION#v} > VERSION
|
2013-11-22 13:39:40 -05:00
|
|
|
```
|
|
|
|
|
2015-04-20 14:24:28 -04:00
|
|
|
### 5. Test the docs
|
2013-10-15 18:52:21 -04:00
|
|
|
|
|
|
|
Make sure that your tree includes documentation for any modified or
|
2014-05-20 01:54:10 -04:00
|
|
|
new features, syntax or semantic changes.
|
|
|
|
|
|
|
|
To test locally:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make docs
|
|
|
|
```
|
|
|
|
|
2015-04-11 13:58:09 -04:00
|
|
|
To make a shared test at https://beta-docs.docker.io:
|
2014-05-20 01:54:10 -04:00
|
|
|
|
|
|
|
(You will need the `awsconfig` file added to the `docs/` dir)
|
|
|
|
|
|
|
|
```bash
|
2014-07-22 05:05:18 -04:00
|
|
|
make AWS_S3_BUCKET=beta-docs.docker.io BUILD_ROOT=yes docs-release
|
2014-05-20 01:54:10 -04:00
|
|
|
```
|
2013-10-15 18:52:21 -04:00
|
|
|
|
2015-04-20 14:24:28 -04:00
|
|
|
### 6. Commit and create a pull request to the "release" branch
|
2013-08-16 19:05:16 -04:00
|
|
|
|
|
|
|
```bash
|
2013-10-29 18:28:12 -04:00
|
|
|
git add VERSION CHANGELOG.md
|
2013-08-16 19:05:16 -04:00
|
|
|
git commit -m "Bump version to $VERSION"
|
2014-06-06 17:12:39 -04:00
|
|
|
git push $GITHUBUSER bump_$VERSION
|
2015-07-27 19:36:57 -04:00
|
|
|
echo "https://github.com/$GITHUBUSER/docker/compare/docker:release/$BASE...$GITHUBUSER:bump_$VERSION?expand=1"
|
2013-08-16 19:05:16 -04:00
|
|
|
```
|
|
|
|
|
2014-01-03 19:52:18 -05:00
|
|
|
That last command will give you the proper link to visit to ensure that you
|
|
|
|
open the PR against the "release" branch instead of accidentally against
|
|
|
|
"master" (like so many brave souls before you already have).
|
|
|
|
|
2015-07-19 15:43:28 -04:00
|
|
|
### 7. Build release candidate rpms and debs
|
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
**NOTE**: It will be a lot faster if you pass a different graphdriver with
|
|
|
|
`DOCKER_GRAPHDRIVER` than `vfs`.
|
|
|
|
|
2015-07-19 15:43:28 -04:00
|
|
|
```bash
|
|
|
|
docker build -t docker .
|
|
|
|
docker run \
|
|
|
|
--rm -t --privileged \
|
2016-01-27 17:00:53 -05:00
|
|
|
-e DOCKER_GRAPHDRIVER=aufs \
|
2015-07-19 15:43:28 -04:00
|
|
|
-v $(pwd)/bundles:/go/src/github.com/docker/docker/bundles \
|
|
|
|
docker \
|
|
|
|
hack/make.sh binary build-deb build-rpm
|
|
|
|
```
|
|
|
|
|
2016-01-26 19:20:23 -05:00
|
|
|
### 8. Publish release candidate rpms and debs
|
|
|
|
|
|
|
|
With the rpms and debs you built from the last step you can release them on the
|
|
|
|
same server, or ideally, move them to a dedicated release box via scp into
|
|
|
|
another docker/docker directory in bundles. This next step assumes you have
|
|
|
|
a checkout of the docker source code at the same commit you used to build, with
|
|
|
|
the artifacts from the last step in `bundles`.
|
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
**NOTE:** If you put a space before the command your `.bash_history` will not
|
|
|
|
save it. (for the `GPG_PASSPHRASE`).
|
|
|
|
|
2016-01-26 19:20:23 -05:00
|
|
|
```bash
|
|
|
|
docker build -t docker .
|
|
|
|
docker run --rm -it --privileged \
|
2016-01-27 17:00:53 -05:00
|
|
|
-v /volumes/repos:/volumes/repos \
|
2016-01-26 19:20:23 -05:00
|
|
|
-v $(pwd)/bundles:/go/src/github.com/docker/docker/bundles \
|
|
|
|
-v $HOME/.gnupg:/root/.gnupg \
|
|
|
|
-e DOCKER_RELEASE_DIR=/volumes/repos \
|
|
|
|
-e GPG_PASSPHRASE \
|
|
|
|
-e KEEPBUNDLE=1 \
|
|
|
|
docker \
|
2016-01-27 17:00:53 -05:00
|
|
|
hack/make.sh release-deb release-rpm sign-repos generate-index-listing
|
2016-01-26 19:20:23 -05:00
|
|
|
```
|
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 9. Upload the changed repos to wherever you host
|
2016-01-26 19:20:23 -05:00
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
For example, above we bind mounted `/volumes/repos` as the storage for
|
|
|
|
`DOCKER_RELEASE_DIR`. In this case `/volumes/repos/apt` can be synced with
|
|
|
|
a specific s3 bucket for the apt repo and `/volumes/repos/yum` can be synced with
|
|
|
|
a s3 bucket for the yum repo.
|
2016-01-26 19:20:23 -05:00
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 10. Publish release candidate binaries
|
2014-01-03 19:52:18 -05:00
|
|
|
|
2015-02-23 14:32:28 -05:00
|
|
|
To run this you will need access to the release credentials. Get them from the
|
|
|
|
Core maintainers.
|
2014-06-06 17:12:39 -04:00
|
|
|
|
2014-01-03 19:52:18 -05:00
|
|
|
```bash
|
|
|
|
docker build -t docker .
|
2015-07-27 19:36:57 -04:00
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
# static binaries are still pushed to s3
|
2014-01-03 19:52:18 -05:00
|
|
|
docker run \
|
2016-01-27 17:00:53 -05:00
|
|
|
-e AWS_S3_BUCKET=test.docker.com \
|
2016-03-25 10:54:36 -04:00
|
|
|
-e AWS_ACCESS_KEY_ID \
|
|
|
|
-e AWS_SECRET_ACCESS_KEY \
|
|
|
|
-e AWS_DEFAULT_REGION \
|
2015-07-19 15:43:28 -04:00
|
|
|
-i -t --privileged \
|
|
|
|
docker \
|
|
|
|
hack/release.sh
|
2014-01-03 19:52:18 -05:00
|
|
|
```
|
|
|
|
|
2015-07-19 15:43:28 -04:00
|
|
|
It will run the test suite, build the binaries and upload to the specified bucket,
|
|
|
|
so this is a good time to verify that you're running against **test**.docker.com.
|
2014-01-03 19:52:18 -05:00
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 11. Purge the cache!
|
2016-01-26 19:20:23 -05:00
|
|
|
|
2015-07-19 15:43:28 -04:00
|
|
|
After the binaries are uploaded to test.docker.com and the packages are on
|
|
|
|
apt.dockerproject.org and yum.dockerproject.org, make sure
|
2014-01-03 19:52:18 -05:00
|
|
|
they get tested in both Ubuntu and Debian for any obvious installation
|
|
|
|
issues or runtime issues.
|
|
|
|
|
2015-02-23 14:32:28 -05:00
|
|
|
If everything looks good, it's time to create a git tag for this candidate:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git tag -a $RC_VERSION -m $RC_VERSION bump_$VERSION
|
|
|
|
git push origin $RC_VERSION
|
|
|
|
```
|
|
|
|
|
|
|
|
Announcing on multiple medias is the best way to get some help testing! An easy
|
|
|
|
way to get some useful links for sharing:
|
2014-01-03 19:52:18 -05:00
|
|
|
|
|
|
|
```bash
|
2015-07-19 15:43:28 -04:00
|
|
|
echo "Ubuntu/Debian: curl -sSL https://test.docker.com/ | sh"
|
2014-09-23 19:18:09 -04:00
|
|
|
echo "Linux 64bit binary: https://test.docker.com/builds/Linux/x86_64/docker-${VERSION#v}"
|
|
|
|
echo "Darwin/OSX 64bit client binary: https://test.docker.com/builds/Darwin/x86_64/docker-${VERSION#v}"
|
|
|
|
echo "Linux 64bit tgz: https://test.docker.com/builds/Linux/x86_64/docker-${VERSION#v}.tgz"
|
2015-12-21 18:08:18 -05:00
|
|
|
echo "Windows 64bit client binary: https://test.docker.com/builds/Windows/x86_64/docker-${VERSION#v}.exe"
|
|
|
|
echo "Windows 32bit client binary: https://test.docker.com/builds/Windows/i386/docker-${VERSION#v}.exe"
|
2014-01-03 19:52:18 -05:00
|
|
|
```
|
|
|
|
|
2015-02-23 14:32:28 -05:00
|
|
|
We recommend announcing the release candidate on:
|
2014-01-03 19:52:18 -05:00
|
|
|
|
2015-02-23 14:32:28 -05:00
|
|
|
- IRC on #docker, #docker-dev, #docker-maintainers
|
|
|
|
- In a comment on the pull request to notify subscribed people on GitHub
|
|
|
|
- The [docker-dev](https://groups.google.com/forum/#!forum/docker-dev) group
|
|
|
|
- The [docker-maintainers](https://groups.google.com/a/dockerproject.org/forum/#!forum/maintainers) group
|
2015-03-10 05:03:28 -04:00
|
|
|
- Any social media that can bring some attention to the release candidate
|
2014-01-03 19:52:18 -05:00
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 12. Iterate on successive release candidates
|
2014-03-13 14:15:52 -04:00
|
|
|
|
|
|
|
Spend several days along with the community explicitly investing time and
|
|
|
|
resources to try and break Docker in every possible way, documenting any
|
|
|
|
findings pertinent to the release. This time should be spent testing and
|
|
|
|
finding ways in which the release might have caused various features or upgrade
|
|
|
|
environments to have issues, not coding. During this time, the release is in
|
|
|
|
code freeze, and any additional code changes will be pushed out to the next
|
|
|
|
release.
|
|
|
|
|
|
|
|
It should include various levels of breaking Docker, beyond just using Docker
|
|
|
|
by the book.
|
|
|
|
|
|
|
|
Any issues found may still remain issues for this release, but they should be
|
|
|
|
documented and give appropriate warnings.
|
|
|
|
|
2015-02-23 14:32:28 -05:00
|
|
|
During this phase, the `bump_$VERSION` branch will keep evolving as you will
|
|
|
|
produce new release candidates. The frequency of new candidates is up to the
|
|
|
|
release manager: use your best judgement taking into account the severity of
|
|
|
|
reported issues, testers availability, and time to scheduled release date.
|
|
|
|
|
|
|
|
Each time you'll want to produce a new release candidate, you will start by
|
|
|
|
adding commits to the branch, usually by cherry-picking from master:
|
|
|
|
|
|
|
|
```bash
|
2016-09-27 12:03:20 -04:00
|
|
|
git cherry-pick -s -x -m0 <commit_id>
|
2015-02-23 14:32:28 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
You want your "bump commit" (the one that updates the CHANGELOG and VERSION
|
|
|
|
files) to remain on top, so you'll have to `git rebase -i` to bring it back up.
|
|
|
|
|
|
|
|
Now that your bump commit is back on top, you will need to update the CHANGELOG
|
|
|
|
file (if appropriate for this particular release candidate), and update the
|
|
|
|
VERSION file to increment the RC number:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
export RC_VERSION=$VERSION-rcN
|
|
|
|
echo $RC_VERSION > VERSION
|
|
|
|
```
|
|
|
|
|
|
|
|
You can now amend your last commit and update the bump branch:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git commit --amend
|
|
|
|
git push -f $GITHUBUSER bump_$VERSION
|
|
|
|
```
|
|
|
|
|
|
|
|
Repeat step 6 to tag the code, publish new binaries, announce availability, and
|
|
|
|
get help testing.
|
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 13. Finalize the bump branch
|
2015-02-23 14:32:28 -05:00
|
|
|
|
|
|
|
When you're happy with the quality of a release candidate, you can move on and
|
|
|
|
create the real thing.
|
|
|
|
|
|
|
|
You will first have to amend the "bump commit" to drop the release candidate
|
|
|
|
suffix in the VERSION file:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
echo $VERSION > VERSION
|
|
|
|
git add VERSION
|
|
|
|
git commit --amend
|
|
|
|
```
|
|
|
|
|
|
|
|
You will then repeat step 6 to publish the binaries to test
|
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 14. Get 2 other maintainers to validate the pull request
|
2015-02-23 14:32:28 -05:00
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 15. Build final rpms and debs
|
2015-07-19 15:43:28 -04:00
|
|
|
|
|
|
|
```bash
|
|
|
|
docker build -t docker .
|
|
|
|
docker run \
|
|
|
|
--rm -t --privileged \
|
|
|
|
-v $(pwd)/bundles:/go/src/github.com/docker/docker/bundles \
|
|
|
|
docker \
|
|
|
|
hack/make.sh binary build-deb build-rpm
|
|
|
|
```
|
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 16. Publish final rpms and debs
|
2016-01-26 19:20:23 -05:00
|
|
|
|
|
|
|
With the rpms and debs you built from the last step you can release them on the
|
|
|
|
same server, or ideally, move them to a dedicated release box via scp into
|
|
|
|
another docker/docker directory in bundles. This next step assumes you have
|
|
|
|
a checkout of the docker source code at the same commit you used to build, with
|
|
|
|
the artifacts from the last step in `bundles`.
|
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
**NOTE:** If you put a space before the command your `.bash_history` will not
|
|
|
|
save it. (for the `GPG_PASSPHRASE`).
|
|
|
|
|
2016-01-26 19:20:23 -05:00
|
|
|
```bash
|
|
|
|
docker build -t docker .
|
|
|
|
docker run --rm -it --privileged \
|
2016-01-27 17:00:53 -05:00
|
|
|
-v /volumes/repos:/volumes/repos \
|
2016-01-26 19:20:23 -05:00
|
|
|
-v $(pwd)/bundles:/go/src/github.com/docker/docker/bundles \
|
|
|
|
-v $HOME/.gnupg:/root/.gnupg \
|
|
|
|
-e DOCKER_RELEASE_DIR=/volumes/repos \
|
|
|
|
-e GPG_PASSPHRASE \
|
|
|
|
-e KEEPBUNDLE=1 \
|
|
|
|
docker \
|
2016-01-27 17:00:53 -05:00
|
|
|
hack/make.sh release-deb release-rpm sign-repos generate-index-listing
|
2016-01-26 19:20:23 -05:00
|
|
|
```
|
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 17. Upload the changed repos to wherever you host
|
2016-01-26 19:20:23 -05:00
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
For example, above we bind mounted `/volumes/repos` as the storage for
|
|
|
|
`DOCKER_RELEASE_DIR`. In this case `/volumes/repos/apt` can be synced with
|
|
|
|
a specific s3 bucket for the apt repo and `/volumes/repos/yum` can be synced with
|
|
|
|
a s3 bucket for the yum repo.
|
2016-01-26 19:20:23 -05:00
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 18. Publish final binaries
|
2015-02-23 14:32:28 -05:00
|
|
|
|
|
|
|
Once they're tested and reasonably believed to be working, run against
|
|
|
|
get.docker.com:
|
|
|
|
|
|
|
|
```bash
|
2015-07-19 15:43:28 -04:00
|
|
|
docker build -t docker .
|
2016-01-27 17:00:53 -05:00
|
|
|
# static binaries are still pushed to s3
|
2015-02-23 14:32:28 -05:00
|
|
|
docker run \
|
2016-01-27 17:00:53 -05:00
|
|
|
-e AWS_S3_BUCKET=get.docker.com \
|
2016-03-25 10:54:36 -04:00
|
|
|
-e AWS_ACCESS_KEY_ID \
|
|
|
|
-e AWS_SECRET_ACCESS_KEY \
|
|
|
|
-e AWS_DEFAULT_REGION \
|
2015-07-19 15:43:28 -04:00
|
|
|
-i -t --privileged \
|
|
|
|
docker \
|
|
|
|
hack/release.sh
|
2015-02-23 14:32:28 -05:00
|
|
|
```
|
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 19. Purge the cache!
|
2016-01-26 19:20:23 -05:00
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 20. Apply tag and create release
|
2014-06-06 17:12:39 -04:00
|
|
|
|
|
|
|
It's very important that we don't make the tag until after the official
|
2014-09-23 19:18:09 -04:00
|
|
|
release is uploaded to get.docker.com!
|
2013-08-16 19:05:16 -04:00
|
|
|
|
|
|
|
```bash
|
2013-11-22 13:39:40 -05:00
|
|
|
git tag -a $VERSION -m $VERSION bump_$VERSION
|
|
|
|
git push origin $VERSION
|
2013-08-16 19:05:16 -04:00
|
|
|
```
|
|
|
|
|
2015-08-20 06:22:31 -04:00
|
|
|
Once the tag is pushed, go to GitHub and create a [new release](https://github.com/docker/docker/releases/new).
|
|
|
|
If the tag is for an RC make sure you check `This is a pre-release` at the bottom of the form.
|
|
|
|
|
|
|
|
Select the tag that you just pushed as the version and paste the changelog in the description of the release.
|
|
|
|
You can see examples in this two links:
|
|
|
|
|
|
|
|
https://github.com/docker/docker/releases/tag/v1.8.0
|
|
|
|
https://github.com/docker/docker/releases/tag/v1.8.0-rc3
|
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 21. Go to github to merge the `bump_$VERSION` branch into release
|
2014-01-03 19:52:18 -05:00
|
|
|
|
2014-03-07 01:16:26 -05:00
|
|
|
Don't forget to push that pretty blue button to delete the leftover
|
|
|
|
branch afterwards!
|
2014-02-13 14:42:14 -05:00
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 22. Update the docs branch
|
2014-02-13 14:42:14 -05:00
|
|
|
|
2015-08-20 06:22:31 -04:00
|
|
|
You will need to point the docs branch to the newly created release tag:
|
2014-05-20 01:54:10 -04:00
|
|
|
|
2014-03-07 01:16:26 -05:00
|
|
|
```bash
|
2015-08-20 06:22:31 -04:00
|
|
|
git checkout origin/docs
|
|
|
|
git reset --hard origin/$VERSION
|
2014-03-07 01:16:26 -05:00
|
|
|
git push -f origin docs
|
|
|
|
```
|
2013-10-29 18:28:12 -04:00
|
|
|
|
2015-04-11 13:58:09 -04:00
|
|
|
The docs will appear on https://docs.docker.com/ (though there may be cached
|
2014-07-22 04:04:48 -04:00
|
|
|
versions, so its worth checking http://docs.docker.com.s3-website-us-east-1.amazonaws.com/).
|
2014-05-20 01:54:10 -04:00
|
|
|
For more information about documentation releases, see `docs/README.md`.
|
2013-11-22 13:39:40 -05:00
|
|
|
|
2014-12-18 01:46:43 -05:00
|
|
|
Note that the new docs will not appear live on the site until the cache (a complex,
|
|
|
|
distributed CDN system) is flushed. The `make docs-release` command will do this
|
|
|
|
_if_ the `DISTRIBUTION_ID` is set correctly - this will take at least 15 minutes to run
|
2015-08-20 06:22:31 -04:00
|
|
|
and you can check its progress with the CDN Cloudfront Chrome addon.
|
2014-07-22 04:04:48 -04:00
|
|
|
|
2016-01-27 17:00:53 -05:00
|
|
|
### 23. Create a new pull request to merge your bump commit back into master
|
2013-08-16 19:05:16 -04:00
|
|
|
|
|
|
|
```bash
|
2014-01-03 19:52:18 -05:00
|
|
|
git checkout master
|
2013-10-29 18:28:12 -04:00
|
|
|
git fetch
|
2014-01-03 19:52:18 -05:00
|
|
|
git reset --hard origin/master
|
2016-09-27 12:03:20 -04:00
|
|
|
git cherry-pick -s -x $VERSION
|
2014-06-06 17:12:39 -04:00
|
|
|
git push $GITHUBUSER merge_release_$VERSION
|
2014-07-24 18:19:50 -04:00
|
|
|
echo "https://github.com/$GITHUBUSER/docker/compare/docker:master...$GITHUBUSER:merge_release_$VERSION?expand=1"
|
2013-08-16 19:05:16 -04:00
|
|
|
```
|
|
|
|
|
2014-01-03 19:52:18 -05:00
|
|
|
Again, get two maintainers to validate, then merge, then push that pretty
|
|
|
|
blue button to delete your branch.
|
2013-08-16 19:05:16 -04:00
|
|
|
|
2016-02-04 17:42:56 -05:00
|
|
|
### 24. Rejoice and Evangelize!
|
2013-08-16 19:05:16 -04:00
|
|
|
|
|
|
|
Congratulations! You're done.
|
2013-11-22 13:39:40 -05:00
|
|
|
|
|
|
|
Go forth and announce the glad tidings of the new release in `#docker`,
|
2014-12-27 10:56:03 -05:00
|
|
|
`#docker-dev`, on the [dev mailing list](https://groups.google.com/forum/#!forum/docker-dev),
|
|
|
|
the [announce mailing list](https://groups.google.com/forum/#!forum/docker-announce),
|
2013-11-22 13:39:40 -05:00
|
|
|
and on Twitter!
|