• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

builder_image/H27-Apr-2021-220183

README.mdH A D27-Apr-20211.4 KiB5738

README.md

1# README
2
3## Docker Package Building for Linux Systems
4
5The image is based on CentOS 6 (yes, I know it's EOL--this preserves it
6for the people still using it, and the resulting binary runs nearly everywhere due
7to it's ancient LIBC version).
8
9### Update/edit the image
10
11If you edit the `Dockerfile`, you will see:
12
13```
14# Can change these
15ENV PYVER=3.8
16ENV PYPATCH=7
17ENV OPENSSL_VER=1.1.1i
18```
19
20You should be able to edit these values with whatever is available at the respective
21sites, python.org and openssl.org.
22
23### Build the image
24To build the image, `cd` to the `builder_image` directory and run:
25
26```
27docker build -t curator_builder:latest .
28```
29
30### Build packages
31
32The following will check out the tag identified by `tags/vX.Y.Z` from the Curator
33Github repository and build package which will be deposited in the present working directory.
34
35```
36docker run --rm -v $(pwd):/curator_packages curator_builder /package_maker.sh X.Y.Z
37```
38
39The result will be an RPM package named:
40
41```
42elasticsearch-curator-X.Y.Z-1.x86_64.rpm
43```
44
45and a DEB package named:
46
47```
48elasticsearch-curator_X.Y.Z_amd64.deb
49```
50
51These packages were tested in CentOS 6 & 7; Ubuntu 1404, 1604, and 1804; and Debian 8 & 9.
52
53## Publishing of Packages
54
55This process is used to create packages which are subsequently signed with Elastic's key
56and published to the repositories identified in the Curator documentation.
57