Skip to content

Commit 8e96485

Browse files
committed
Move (copy) the README file back into place
Recent commits which vendor all of the various rabbitmq-components into this repository moved the root README file to another location. It has some relevancy at that location, so we copy it back to the root.
1 parent 2259039 commit 8e96485

File tree

2 files changed

+353
-288
lines changed

2 files changed

+353
-288
lines changed

README.md

Lines changed: 40 additions & 288 deletions
Original file line numberDiff line numberDiff line change
@@ -1,313 +1,65 @@
1-
# RabbitMQ server releases
1+
[![OTP v22.3](https://img.shields.io/github/workflow/status/rabbitmq/rabbitmq-server/Test%20-%20Erlang%2022.3/master?label=Erlang%2022.3)](https://github.com/rabbitmq/rabbitmq-server/actions?query=workflow%3A%22Test+-+Erlang+22.3%22+branch%3A%22master%22)
2+
[![OTP v23](https://img.shields.io/github/workflow/status/rabbitmq/rabbitmq-server/Test%20-%20Erlang%2023.1/master?label=Erlang%2023.1)](https://github.com/rabbitmq/rabbitmq-server/actions?query=workflow%3A%22Test+-+Erlang+23.1%22+branch%3Amaster)
23

3-
This repository provides scripts and Makefiles we use to create RabbitMQ
4-
server releases. It is organized in the following way:
5-
* The top-level `Makefile` manages the source archive.
6-
* There is a subdirectory inside `packaging` for each type of package we
7-
support.
4+
# RabbitMQ Server
85

9-
## TL;DR
6+
[RabbitMQ](https://rabbitmq.com) is a [feature rich](https://rabbitmq.com/documentation.html), multi-protocol messaging broker. It supports:
107

11-
* To create a source archive and all supported packages:
8+
* AMQP 0-9-1
9+
* AMQP 1.0
10+
* MQTT 3.1.1
11+
* STOMP 1.0 through 1.2
1212

13-
```
14-
make packages
15-
```
1613

17-
* To create a source archive and all supported packages, with a given version:
14+
## Installation
1815

19-
```
20-
make packages PROJECT_VERSION=3.8.1-rc.1
21-
```
16+
* [Installation guides](https://rabbitmq.com/download.html) for various platforms
17+
* [Kubernetes Cluster Operator](https://www.rabbitmq.com/kubernetes/operator/operator-overview.html)
18+
* [Changelog](https://www.rabbitmq.com/changelog.html)
19+
* [Releases](https://github.com/rabbitmq/rabbitmq-server/releases) on GitHub
20+
* [Supported and unsupported series](https://www.rabbitmq.com/versions.html)
21+
* [Supported Erlang versions](https://www.rabbitmq.com/which-erlang.html)
2222

23-
* To create all suported packages from an existing source archive:
2423

25-
```
26-
make -C packaging SOURCE_DIST_FILE=/path/to/rabbitmq-server-3.8.1-rc.1.tar.xz
27-
```
24+
## Tutorials & Documentation
2825

29-
The standalone package is different because it embeds the build
30-
platform's Erlang copy. Thus on Linux for instance, only the
31-
`linux-x86_64` standalone package will be built. To build the OS X
32-
standalone package, you need to run the following command on an OS X
33-
build host:
26+
* [RabbitMQ tutorials](https://rabbitmq.com/getstarted.html)
27+
* [All documentation guides](https://rabbitmq.com/documentation.html)
28+
* [CLI tools guide](https://rabbitmq.com/cli.html)
29+
* [Configuration guide](https://rabbitmq.com/configure.html)
30+
* [Client libraries and tools](https://rabbitmq.com/devtools.html)
31+
* [Monitoring guide](https://rabbitmq.com/monitoring.html)
32+
* [Production checklist](https://rabbitmq.com/production-checklist.html)
33+
* [Runnable tutorials](https://github.com/rabbitmq/rabbitmq-tutorials/)
34+
* [Documentation source](https://github.com/rabbitmq/rabbitmq-website/)
3435

35-
```
36-
make package-standalone-macosx
37-
# or
38-
make -C packaging package-standalone-macosx SOURCE_DIST_FILE=/path/to/rabbitmq-server-3.8.1-rc.1.tar.xz
39-
```
4036

41-
The instructions in the [`PKG_LINUX.md`](PKG_LINUX.md) document include a
42-
script to install the necessary pre-requisites for building package archives as
43-
well as `deb` and `rpm` packages.
37+
## Getting Help
4438

45-
## Source archive
39+
* [RabbitMQ mailing list](https://groups.google.com/forum/#!forum/rabbitmq-users)
40+
* [Commercial support](https://rabbitmq.com/services.html) from [Pivotal](https://pivotal.io) for open source RabbitMQ
41+
* [Community Slack](https://rabbitmq-slack.herokuapp.com/)
42+
* `#rabbitmq` on Freenode
4643

47-
### How to create it
4844

49-
The source archive is created with the following command:
50-
```
51-
make source-dist
52-
```
45+
## Contributing
5346

54-
It uses Erlang.mk's `PROJECT_VERSION` variable to set the version of the
55-
source archive. If the variable is unset, Erlang.mk computes a value
56-
based on the last tag and the current HEAD.
47+
See [CONTRIBUTING.md](./CONTRIBUTING.md) and our [development process overview](https://rabbitmq.com/github.html).
5748

58-
Here is an example with an explicit version:
59-
```
60-
make source-dist PROJECT_VERSION=3.8.1-rc.1
61-
```
49+
Questions about contributing, internals and so on are very welcome on the [mailing list](https://groups.google.com/forum/#!forum/rabbitmq-users).
6250

63-
The version is automatically propagated to the broker and plugins so
64-
they all advertise the same version.
6551

66-
The result is then available in the `PACKAGES` subdirectory. You can
67-
override the output directory with the `PACKAGES_DIR` variable:
68-
```
69-
make source-dist PROJDCT_VERSION=3.8.1-rc.1 \
70-
PACKAGES_DIR=/tmp
71-
```
52+
## Licensing
7253

73-
By default, two archives are produced:
74-
* a `tar.xz` file;
75-
* a `zip` file.
54+
RabbitMQ server is [licensed under the MPL 2.0](LICENSE-MPL-RabbitMQ).
7655

77-
You can ask for more/different types by specifying the
78-
`SOURCE_DIST_SUFFIXES` variable:
79-
```
80-
make source-dist PROJECT_VERSION=3.8.1-rc.1 \
81-
SOURCE_DIST_SUFFIXES='tar.xz tar.gz'
82-
```
8356

84-
Supported archive types are:
85-
* `tar.bz2`;
86-
* `tar.gz`;
87-
* `tar.xz`;
88-
* `zip`.
57+
## Building From Source and Packaging
8958

90-
### What is included
59+
* [Building RabbitMQ from Source](https://rabbitmq.com/build-server.html)
60+
* [Building RabbitMQ Distribution Packages](https://rabbitmq.com/build-server.html)
9161

92-
The source archive includes the broker and a set of plugins. The default
93-
list of plugins is in the `plugins.mk` file.
9462

95-
You can override this list by setting the `PLUGINS` variable to the list
96-
you want:
97-
```
98-
make source-dist PROJECT_VERSION=3.8.1-rc.1 \
99-
PLUGINS='rabbitmq_shovel rabbitmq_rabbitmq_shovel_management'
100-
```
63+
## Copyright
10164

102-
Dependencies are automatically included.
103-
104-
## Packages
105-
106-
Packages can be built with an existing source archive or create the
107-
source archive automatically.
108-
109-
If you want to use an existing archive, use `packaging/Makefile`:
110-
```
111-
make -C packaging package-$type \
112-
SOURCE_DIST_FILE=/path/to/rabbitmq-server-$version.tar.xz \
113-
...
114-
```
115-
116-
This has the following rules:
117-
* The archive must be a `tar.xz` file.
118-
* It can automatically take the only archive available under `PACKAGES`.
119-
However, if there is none or multiple archive, you must specify the
120-
`SOURCE_DIST_FILE` variable.
121-
122-
If you want the source archive to be created automatically, use the
123-
top-level `Makefile`:
124-
```
125-
make package-$type PROJECT_VERSION=3.8.1-rc.1 ...
126-
```
127-
128-
Packages are written to `PACKAGES_DIR`, like the source archive.
129-
130-
Each package type is further described separately because most of them
131-
have versioning specificities.
132-
133-
### `generic-unix` package
134-
135-
To create it:
136-
```
137-
make package-generic-unix
138-
```
139-
140-
There is no package revision, only the project version and no
141-
restriction on it.
142-
143-
`packaging/generic-unix/Makefile` tries to determine the version based
144-
on the source archive filename. If it fails, you can specify the version
145-
with the `VERSION` variable:
146-
```
147-
make -C packaging package-generic-unix \
148-
SOURCE_DIST_FILE=rabbitmq-server.tar.xz \
149-
VERSION=3.8.1-rc.1
150-
```
151-
152-
### Debian package
153-
154-
To create it:
155-
```
156-
make package-deb
157-
```
158-
159-
The package may have a different versioning than the project and may
160-
include an additional package revision. In particular, the package
161-
version can't have any `-` characters.
162-
163-
`packaging/debs/Debian/Makefile` tries to determine the version based
164-
on the source archive filename. If it fails, you can specify the version
165-
with the `VERSION` variable:
166-
```
167-
make -C packaging package-deb \
168-
SOURCE_DIST_FILE=rabbitmq-server.tar.xz \
169-
VERSION=3.8.1-rc.1
170-
```
171-
172-
By default, the package version is converted from `VERSION` with
173-
all `-` characters replaced by `~` (eg. `3.8.1~rc.1` in the example
174-
above). If you want to override that conversion, you can specify the
175-
`DEBIAN_VERSION` variable:
176-
```
177-
make -C packaging package-deb \
178-
SOURCE_DIST_FILE=rabbitmq-server.tar.xz \
179-
VERSION=3.8.1-rc.1
180-
DEBIAN_VERSION=3.8.1~rc.1
181-
```
182-
183-
### RPM package
184-
185-
We support RedHat and OpenSUSE RPM packages and both are created by default:
186-
187-
To create them:
188-
```
189-
make package-rpm
190-
```
191-
192-
You can create a single one with:
193-
```
194-
make package-rpm-fedora
195-
make package-rpm-suse
196-
```
197-
198-
RPM packages have the same restrictions as Debian packages and use the
199-
same default version conversion. To override the converted version, use
200-
the `RPM_VERSION` variable. See the "Debian package" section above for
201-
more details.
202-
203-
`packaging/RPMS/Fedora/Makefile`, which handles both RedHar and OpenSUSE
204-
flavors, accepts the `RPM_OS` variable to set the flavor. It can be:
205-
* `fedora`;
206-
* `suse`.
207-
208-
### Windows package
209-
210-
We create two artefacts:
211-
212-
* a Zip archive, resembling the `generic-unix` package;
213-
* an installer.
214-
215-
To create them:
216-
217-
```
218-
make package-windows
219-
```
220-
221-
To create them separately:
222-
223-
```
224-
make -C packaging/windows # the Zip archive
225-
make -C packaging/windows-exe # the installer
226-
```
227-
228-
The Zip archive has no package revision, only the project version and no
229-
restriction on it. It supports the same `VERSION` as the `generic-unix`
230-
package.
231-
232-
The installer requires a *product version* which must be 4 integers
233-
separated by `.` characters. Furthermore, unlike other packages, this
234-
one requires the Zip archive as its input, not the source archive.
235-
236-
So you need to built the Zip archive first, then the installer. You can
237-
specify the path to the Zip archive using the `ZIP` variable:
238-
239-
```
240-
make -C packaging/windows-exe ZIP=/path/to/rabbitmq-server-windows.zip
241-
```
242-
243-
By default, the *product version* is the project version where
244-
everything following the third integer was replaced by `.0`. Thus it's
245-
only fine if the version is a semver-based version (eg. 3.8.1-pre.3 or
246-
3.8.2). If the version doesn't conform to that, you need to set the
247-
`PRODUCT_VERSION` variable:
248-
249-
```
250-
make package-windows PROJECT_VERSION=3.8.1-rc.1 PRODUCT_VERSION=3.8.1.0
251-
```
252-
253-
To build the Windows package using a Windows machine, follow the
254-
instructions in [`PKG_WINDOWS.md`](PKG_WINDOWS.md).
255-
256-
### Standalone package
257-
258-
This is the equivalent of the `generic-unix` package with Erlang
259-
embbeded.
260-
261-
To create it:
262-
```
263-
make -C packaging/standalone SOURCE_DIST_FILE=... VERSION=...
264-
```
265-
266-
There is no package revision, only the project version and no
267-
restriction on it.
268-
269-
Unlike other packages, the top-level `Makefile` and `packaging/Makefile`
270-
provide targets to build the standalone package for specific platforms:
271-
```
272-
make package-standalone-macosx
273-
make package-standalone-linux-x86_64
274-
make package-standalone-freebsd-x86_64
275-
```
276-
277-
Cross-build isn't supported so using those targets on incompatible
278-
platforms is a no-op.
279-
280-
If you want to build a standalone package for your platform, you can use
281-
`packaging/standalone/Makefile` as described at the beginning of this
282-
section.
283-
284-
### Building all packages in one go
285-
286-
If you want to build all packages in one command, you can use the
287-
following helpers:
288-
```
289-
# Automatically creates the source archive.
290-
make packages
291-
292-
# Use an existing archive.
293-
make -C packaging package SOURCE_DIST_FILE=...
294-
```
295-
296-
However, be careful with the versioning! Because all package have
297-
incompatible requirements, you can only use a version with 3 integers
298-
(like a final semver-based version):
299-
```
300-
make packages PROJECT_VERSION=3.8.1
301-
make -C packaging packages SOURCE_DIST_FILE=rabbitmq-server-3.8.1.tar.xz
302-
```
303-
304-
If you do not follow that rule, the build will fail one way or another;
305-
probably in the Windows package because of the *product version*
306-
restrictions.
307-
308-
Another possibility is to specify the Windows *product version* and
309-
rely on automatic conversion for Debian and RPM packages (or use the
310-
`DEBIAN_VERSION` and `RPM_VERSION` variables), but this is untested:
311-
```
312-
make packages PROJECT_VERSION=3.8.1-rc.1 PRODUCT_VERSION=3.8.1.0
313-
```
65+
(c) 2007-2020 VMware, Inc. or its affiliates.

0 commit comments

Comments
 (0)