elastalert
elastalert copied to clipboard
Necessaries Kubernetes files were added and Dockerfile edited for 0.2.4 version
These steps are tested by me and using in the production environment right now. I didn't see any issue with running behavior.
docker build error
Sending build context to Docker daemon 151kB
Step 1/32 : FROM alpine:latest as py-ea
---> e50c909a8df2
Step 2/32 : ARG ELASTALERT_VERSION=v0.2.4
---> Running in 0173c4dfa7ca
Removing intermediate container 0173c4dfa7ca
---> 09e5ab585201
Step 3/32 : ENV ELASTALERT_VERSION=${ELASTALERT_VERSION}
---> Running in b319a4f613b9
Removing intermediate container b319a4f613b9
---> 249f658ee3f4
Step 4/32 : ARG ELASTALERT_URL=https://github.com/Yelp/elastalert/archive/$ELASTALERT_VERSION.zip
---> Running in 2b8c2fda428c
Removing intermediate container 2b8c2fda428c
---> 34c69d929e6f
Step 5/32 : ENV ELASTALERT_URL=${ELASTALERT_URL}
---> Running in f8bb8ee57190
Removing intermediate container f8bb8ee57190
---> 84b9888d5cfe
Step 6/32 : ENV ELASTALERT_HOME /opt/elastalert
---> Running in 263dc6681c70
Removing intermediate container 263dc6681c70
---> fc6ca60b7447
Step 7/32 : WORKDIR /opt
---> Running in 71fd941aff9a
Removing intermediate container 71fd941aff9a
---> 0a1e5792b049
Step 8/32 : RUN apk add --update --no-cache ca-certificates openssl-dev openssl python3-dev python3 py3-pip py3-yaml libffi-dev gcc musl-dev wget && wget -O elastalert.zip "${ELASTALERT_URL}" && unzip elastalert.zip && rm elastalert.zip && mv e* "${ELASTALERT_HOME}"
---> Running in 5a297e573007
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
(1/59) Installing ca-certificates (20191127-r5)
(2/59) Installing libgcc (10.2.1_pre1-r3)
(3/59) Installing libstdc++ (10.2.1_pre1-r3)
(4/59) Installing binutils (2.35.1-r1)
(5/59) Installing libgomp (10.2.1_pre1-r3)
(6/59) Installing libatomic (10.2.1_pre1-r3)
(7/59) Installing libgphobos (10.2.1_pre1-r3)
(8/59) Installing gmp (6.2.1-r0)
(9/59) Installing isl22 (0.22-r0)
(10/59) Installing mpfr4 (4.1.0-r0)
(11/59) Installing mpc1 (1.2.0-r0)
(12/59) Installing gcc (10.2.1_pre1-r3)
(13/59) Installing linux-headers (5.7.8-r0)
(14/59) Installing libffi (3.3-r2)
(15/59) Installing pkgconf (1.7.3-r0)
(16/59) Installing libffi-dev (3.3-r2)
(17/59) Installing musl-dev (1.2.2-r0)
(18/59) Installing openssl (1.1.1i-r0)
(19/59) Installing openssl-dev (1.1.1i-r0)
(20/59) Installing libbz2 (1.0.8-r1)
(21/59) Installing expat (2.2.10-r1)
(22/59) Installing gdbm (1.19-r0)
(23/59) Installing xz-libs (5.2.5-r0)
(24/59) Installing ncurses-terminfo-base (6.2_p20210109-r0)
(25/59) Installing ncurses-libs (6.2_p20210109-r0)
(26/59) Installing readline (8.1.0-r0)
(27/59) Installing sqlite-libs (3.34.1-r0)
(28/59) Installing python3 (3.8.7-r0)
(29/59) Installing py3-appdirs (1.4.4-r1)
(30/59) Installing py3-ordered-set (4.0.2-r0)
(31/59) Installing py3-parsing (2.4.7-r1)
(32/59) Installing py3-six (1.15.0-r0)
(33/59) Installing py3-packaging (20.9-r0)
(34/59) Installing py3-setuptools (51.3.3-r0)
(35/59) Installing py3-chardet (4.0.0-r0)
(36/59) Installing py3-idna (3.1-r0)
(37/59) Installing py3-urllib3 (1.26.2-r1)
(38/59) Installing py3-requests (2.25.1-r1)
(39/59) Installing py3-msgpack (1.0.2-r0)
(40/59) Installing py3-lockfile (0.12.2-r3)
(41/59) Installing py3-cachecontrol (0.12.6-r0)
(42/59) Installing py3-colorama (0.4.4-r0)
(43/59) Installing py3-contextlib2 (0.6.0-r0)
(44/59) Installing py3-distlib (0.3.1-r1)
(45/59) Installing py3-distro (1.5.0-r1)
(46/59) Installing py3-webencodings (0.5.1-r3)
(47/59) Installing py3-html5lib (1.1-r0)
(48/59) Installing py3-pytoml (0.1.21-r0)
(49/59) Installing py3-pep517 (0.9.1-r0)
(50/59) Installing py3-progress (1.5-r0)
(51/59) Installing py3-retrying (1.3.3-r0)
(52/59) Installing py3-toml (0.10.2-r0)
(53/59) Installing py3-pip (20.3.4-r0)
(54/59) Installing yaml (0.2.5-r0)
(55/59) Installing py3-yaml (5.3.1-r2)
(56/59) Installing python3-dev (3.8.7-r0)
(57/59) Installing libunistring (0.9.10-r0)
(58/59) Installing libidn2 (2.3.0-r0)
(59/59) Installing wget (1.21.1-r1)
Executing busybox-1.32.1-r2.trigger
Executing ca-certificates-20191127-r5.trigger
OK: 247 MiB in 73 packages
--2021-02-11 05:15:17-- https://github.com/Yelp/elastalert/archive/v0.2.4.zip
Resolving github.com (github.com)... 13.114.40.48
Connecting to github.com (github.com)|13.114.40.48|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/Yelp/elastalert/zip/v0.2.4 [following]
--2021-02-11 05:15:18-- https://codeload.github.com/Yelp/elastalert/zip/v0.2.4
Resolving codeload.github.com (codeload.github.com)... 52.68.31.213
Connecting to codeload.github.com (codeload.github.com)|52.68.31.213|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: 'elastalert.zip'
0K .......... .......... .......... .......... .......... 143K
50K .......... .......... .......... .......... .......... 285K
100K .......... .......... .......... .......... .......... 66.9M
150K .......... .......... .......... .......... .......... 287K
200K .......... ......... 79.9M=0.7s
2021-02-11 05:15:19 (313 KB/s) - 'elastalert.zip' saved [224847]
Archive: elastalert.zip
creating: elastalert-0.2.4/
inflating: elastalert-0.2.4/.editorconfig
inflating: elastalert-0.2.4/.gitignore
inflating: elastalert-0.2.4/.pre-commit-config.yaml
inflating: elastalert-0.2.4/.secrets.baseline
inflating: elastalert-0.2.4/.travis.yml
inflating: elastalert-0.2.4/Dockerfile-test
inflating: elastalert-0.2.4/LICENSE
inflating: elastalert-0.2.4/Makefile
inflating: elastalert-0.2.4/README.md
inflating: elastalert-0.2.4/changelog.md
inflating: elastalert-0.2.4/config.yaml.example
inflating: elastalert-0.2.4/docker-compose.yml
creating: elastalert-0.2.4/docs/
inflating: elastalert-0.2.4/docs/Makefile
creating: elastalert-0.2.4/docs/source/
creating: elastalert-0.2.4/docs/source/_static/
inflating: elastalert-0.2.4/docs/source/_static/.gitkeep
inflating: elastalert-0.2.4/docs/source/conf.py
inflating: elastalert-0.2.4/docs/source/elastalert.rst
inflating: elastalert-0.2.4/docs/source/elastalert_status.rst
inflating: elastalert-0.2.4/docs/source/index.rst
creating: elastalert-0.2.4/docs/source/recipes/
inflating: elastalert-0.2.4/docs/source/recipes/adding_alerts.rst
inflating: elastalert-0.2.4/docs/source/recipes/adding_enhancements.rst
inflating: elastalert-0.2.4/docs/source/recipes/adding_loaders.rst
inflating: elastalert-0.2.4/docs/source/recipes/adding_rules.rst
inflating: elastalert-0.2.4/docs/source/recipes/signing_requests.rst
inflating: elastalert-0.2.4/docs/source/recipes/writing_filters.rst
inflating: elastalert-0.2.4/docs/source/ruletypes.rst
inflating: elastalert-0.2.4/docs/source/running_elastalert.rst
creating: elastalert-0.2.4/elastalert/
inflating: elastalert-0.2.4/elastalert/__init__.py
inflating: elastalert-0.2.4/elastalert/alerts.py
inflating: elastalert-0.2.4/elastalert/auth.py
inflating: elastalert-0.2.4/elastalert/config.py
inflating: elastalert-0.2.4/elastalert/create_index.py
inflating: elastalert-0.2.4/elastalert/elastalert.py
inflating: elastalert-0.2.4/elastalert/enhancements.py
creating: elastalert-0.2.4/elastalert/es_mappings/
creating: elastalert-0.2.4/elastalert/es_mappings/5/
inflating: elastalert-0.2.4/elastalert/es_mappings/5/elastalert.json
inflating: elastalert-0.2.4/elastalert/es_mappings/5/elastalert_error.json
inflating: elastalert-0.2.4/elastalert/es_mappings/5/elastalert_status.json
inflating: elastalert-0.2.4/elastalert/es_mappings/5/past_elastalert.json
inflating: elastalert-0.2.4/elastalert/es_mappings/5/silence.json
creating: elastalert-0.2.4/elastalert/es_mappings/6/
inflating: elastalert-0.2.4/elastalert/es_mappings/6/elastalert.json
inflating: elastalert-0.2.4/elastalert/es_mappings/6/elastalert_error.json
inflating: elastalert-0.2.4/elastalert/es_mappings/6/elastalert_status.json
inflating: elastalert-0.2.4/elastalert/es_mappings/6/past_elastalert.json
inflating: elastalert-0.2.4/elastalert/es_mappings/6/silence.json
inflating: elastalert-0.2.4/elastalert/kibana.py
inflating: elastalert-0.2.4/elastalert/kibana_discover.py
inflating: elastalert-0.2.4/elastalert/loaders.py
inflating: elastalert-0.2.4/elastalert/opsgenie.py
inflating: elastalert-0.2.4/elastalert/rule_from_kibana.py
inflating: elastalert-0.2.4/elastalert/ruletypes.py
inflating: elastalert-0.2.4/elastalert/schema.yaml
inflating: elastalert-0.2.4/elastalert/test_rule.py
inflating: elastalert-0.2.4/elastalert/util.py
inflating: elastalert-0.2.4/elastalert/zabbix.py
creating: elastalert-0.2.4/example_rules/
inflating: elastalert-0.2.4/example_rules/example_cardinality.yaml
inflating: elastalert-0.2.4/example_rules/example_change.yaml
inflating: elastalert-0.2.4/example_rules/example_frequency.yaml
inflating: elastalert-0.2.4/example_rules/example_new_term.yaml
inflating: elastalert-0.2.4/example_rules/example_opsgenie_frequency.yaml
inflating: elastalert-0.2.4/example_rules/example_percentage_match.yaml
inflating: elastalert-0.2.4/example_rules/example_single_metric_agg.yaml
inflating: elastalert-0.2.4/example_rules/example_spike.yaml
inflating: elastalert-0.2.4/example_rules/example_spike_single_metric_agg.yaml
inflating: elastalert-0.2.4/example_rules/jira_acct.txt
inflating: elastalert-0.2.4/example_rules/ssh-repeat-offender.yaml
inflating: elastalert-0.2.4/example_rules/ssh.yaml
inflating: elastalert-0.2.4/pytest.ini
inflating: elastalert-0.2.4/requirements-dev.txt
inflating: elastalert-0.2.4/requirements.txt
inflating: elastalert-0.2.4/setup.cfg
inflating: elastalert-0.2.4/setup.py
inflating: elastalert-0.2.4/supervisord.conf.example
creating: elastalert-0.2.4/tests/
inflating: elastalert-0.2.4/tests/__init__.py
inflating: elastalert-0.2.4/tests/alerts_test.py
inflating: elastalert-0.2.4/tests/auth_test.py
inflating: elastalert-0.2.4/tests/base_test.py
inflating: elastalert-0.2.4/tests/conftest.py
inflating: elastalert-0.2.4/tests/create_index_test.py
inflating: elastalert-0.2.4/tests/elasticsearch_test.py
inflating: elastalert-0.2.4/tests/kibana_discover_test.py
inflating: elastalert-0.2.4/tests/kibana_test.py
inflating: elastalert-0.2.4/tests/loaders_test.py
inflating: elastalert-0.2.4/tests/rules_test.py
inflating: elastalert-0.2.4/tests/util_test.py
inflating: elastalert-0.2.4/tox.ini
Removing intermediate container 5a297e573007
---> ec66f127ea48
Step 9/32 : WORKDIR "${ELASTALERT_HOME}"
---> Running in e9447bd3b0ad
Removing intermediate container e9447bd3b0ad
---> 9969672926bd
Step 10/32 : RUN pip install -r requirements.txt && pip install "setuptools>=11.3"
---> Running in 03817f4065db
Collecting apscheduler>=3.3.0
Downloading APScheduler-3.7.0-py2.py3-none-any.whl (59 kB)
Collecting aws-requests-auth>=0.3.0
Downloading aws_requests_auth-0.4.3-py2.py3-none-any.whl (6.8 kB)
Collecting blist>=1.3.6
Downloading blist-1.3.6.tar.gz (122 kB)
Collecting boto3>=1.4.4
Downloading boto3-1.17.5-py2.py3-none-any.whl (130 kB)
Collecting cffi>=1.11.5
Downloading cffi-1.14.4.tar.gz (471 kB)
Collecting configparser>=3.5.0
Downloading configparser-5.0.1-py3-none-any.whl (22 kB)
Collecting croniter>=0.3.16
Downloading croniter-1.0.6-py2.py3-none-any.whl (13 kB)
Collecting elasticsearch>=7.0.0
Downloading elasticsearch-7.11.0-py2.py3-none-any.whl (325 kB)
Collecting envparse>=0.2.0
Downloading envparse-0.2.0.tar.gz (7.6 kB)
Collecting exotel>=0.1.3
Downloading exotel-0.1.5.tar.gz (2.2 kB)
Collecting jira<1.0.15,>=1.0.10
Downloading jira-1.0.14-py2.py3-none-any.whl (95 kB)
Collecting jsonschema>=3.0.2
Downloading jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting mock>=2.0.0
Downloading mock-4.0.3-py3-none-any.whl (28 kB)
Collecting prison>=0.1.2
Downloading prison-0.1.3-py2.py3-none-any.whl (5.8 kB)
Collecting py-zabbix==1.1.3
Downloading py_zabbix-1.1.3-py2.py3-none-any.whl (12 kB)
Collecting PyStaticConfiguration>=0.10.3
Downloading PyStaticConfiguration-0.10.5.tar.gz (21 kB)
Collecting python-dateutil<2.7.0,>=2.6.0
Downloading python_dateutil-2.6.1-py2.py3-none-any.whl (194 kB)
Collecting python-magic>=0.4.15
Downloading python_magic-0.4.18-py2.py3-none-any.whl (8.6 kB)
Requirement already satisfied: PyYAML>=5.1 in /usr/lib/python3.8/site-packages (from -r requirements.txt (line 19)) (5.3.1)
Requirement already satisfied: requests>=2.0.0 in /usr/lib/python3.8/site-packages (from -r requirements.txt (line 20)) (2.25.1)
Collecting stomp.py>=4.1.17
Downloading stomp.py-6.1.0-py3-none-any.whl (37 kB)
Collecting texttable>=0.8.8
Downloading texttable-1.6.3-py2.py3-none-any.whl (10 kB)
Collecting twilio==6.0.0
Downloading twilio-6.0.0.tar.gz (304 kB)
Requirement already satisfied: six in /usr/lib/python3.8/site-packages (from twilio==6.0.0->-r requirements.txt (line 23)) (1.15.0)
Collecting pytz
Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
Collecting PyJWT>=1.4.2
Downloading PyJWT-2.0.1-py3-none-any.whl (15 kB)
Collecting pysocks
Downloading PySocks-1.7.1-py3-none-any.whl (16 kB)
Requirement already satisfied: setuptools>=0.7 in /usr/lib/python3.8/site-packages (from apscheduler>=3.3.0->-r requirements.txt (line 1)) (51.3.3)
Collecting tzlocal~=2.0
Downloading tzlocal-2.1-py2.py3-none-any.whl (16 kB)
Collecting s3transfer<0.4.0,>=0.3.0
Downloading s3transfer-0.3.4-py2.py3-none-any.whl (69 kB)
Collecting jmespath<1.0.0,>=0.7.1
Downloading jmespath-0.10.0-py2.py3-none-any.whl (24 kB)
Collecting botocore<1.21.0,>=1.20.5
Downloading botocore-1.20.5-py2.py3-none-any.whl (7.2 MB)
Collecting pycparser
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting future
Downloading future-0.18.2.tar.gz (829 kB)
Collecting natsort
Downloading natsort-7.1.1-py3-none-any.whl (35 kB)
Requirement already satisfied: urllib3<2,>=1.21.1 in /usr/lib/python3.8/site-packages (from elasticsearch>=7.0.0->-r requirements.txt (line 8)) (1.26.2)
Collecting certifi
Downloading certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Collecting requests-oauthlib>=0.6.1
Downloading requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting requests-toolbelt
Downloading requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB)
Collecting pbr>=3.0.0
Downloading pbr-5.5.1-py2.py3-none-any.whl (106 kB)
Collecting defusedxml
Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting pyrsistent>=0.14.0
Downloading pyrsistent-0.17.3.tar.gz (106 kB)
Collecting attrs>=17.4.0
Downloading attrs-20.3.0-py2.py3-none-any.whl (49 kB)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/lib/python3.8/site-packages (from requests>=2.0.0->-r requirements.txt (line 20)) (4.0.0)
Requirement already satisfied: idna<3.2,>=2.5 in /usr/lib/python3.8/site-packages (from requests>=2.0.0->-r requirements.txt (line 20)) (3.1)
Collecting docopt<0.7.0,>=0.6.2
Downloading docopt-0.6.2.tar.gz (25 kB)
Collecting oauthlib>=3.0.0
Downloading oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Using legacy 'setup.py install' for twilio, since package 'wheel' is not installed.
Using legacy 'setup.py install' for blist, since package 'wheel' is not installed.
Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
Using legacy 'setup.py install' for envparse, since package 'wheel' is not installed.
Using legacy 'setup.py install' for exotel, since package 'wheel' is not installed.
Using legacy 'setup.py install' for PyStaticConfiguration, since package 'wheel' is not installed.
Using legacy 'setup.py install' for docopt, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pyrsistent, since package 'wheel' is not installed.
Using legacy 'setup.py install' for future, since package 'wheel' is not installed.
Installing collected packages: python-dateutil, jmespath, pytz, oauthlib, botocore, tzlocal, s3transfer, requests-toolbelt, requests-oauthlib, pysocks, pyrsistent, PyJWT, pycparser, pbr, natsort, future, docopt, defusedxml, certifi, attrs, twilio, texttable, stomp.py, python-magic, PyStaticConfiguration, py-zabbix, prison, mock, jsonschema, jira, exotel, envparse, elasticsearch, croniter, configparser, cffi, boto3, blist, aws-requests-auth, apscheduler
Running setup.py install for pyrsistent: started
Running setup.py install for pyrsistent: finished with status 'done'
Running setup.py install for future: started
Running setup.py install for future: finished with status 'done'
Running setup.py install for docopt: started
Running setup.py install for docopt: finished with status 'done'
Running setup.py install for twilio: started
Running setup.py install for twilio: finished with status 'done'
Running setup.py install for PyStaticConfiguration: started
Running setup.py install for PyStaticConfiguration: finished with status 'done'
Running setup.py install for exotel: started
Running setup.py install for exotel: finished with status 'done'
Running setup.py install for envparse: started
Running setup.py install for envparse: finished with status 'done'
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status 'done'
Running setup.py install for blist: started
Running setup.py install for blist: finished with status 'done'
Successfully installed PyJWT-2.0.1 PyStaticConfiguration-0.10.5 apscheduler-3.7.0 attrs-20.3.0 aws-requests-auth-0.4.3 blist-1.3.6 boto3-1.17.5 botocore-1.20.5 certifi-2020.12.5 cffi-1.14.4 configparser-5.0.1 croniter-1.0.6 defusedxml-0.6.0 docopt-0.6.2 elasticsearch-7.11.0 envparse-0.2.0 exotel-0.1.5 future-0.18.2 jira-1.0.14 jmespath-0.10.0 jsonschema-3.2.0 mock-4.0.3 natsort-7.1.1 oauthlib-3.1.0 pbr-5.5.1 prison-0.1.3 py-zabbix-1.1.3 pycparser-2.20 pyrsistent-0.17.3 pysocks-1.7.1 python-dateutil-2.6.1 python-magic-0.4.18 pytz-2021.1 requests-oauthlib-1.3.0 requests-toolbelt-0.9.1 s3transfer-0.3.4 stomp.py-6.1.0 texttable-1.6.3 twilio-6.0.0 tzlocal-2.1
Requirement already satisfied: setuptools>=11.3 in /usr/lib/python3.8/site-packages (51.3.3)
Removing intermediate container 03817f4065db
---> f4bff865f1b2
Step 11/32 : RUN pip uninstall -y jira && pip install jira>2.0.0
---> Running in 1f15d9d2ab62
Found existing installation: jira 1.0.14
Uninstalling jira-1.0.14:
Successfully uninstalled jira-1.0.14
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp7dl1f6r2
cwd: /tmp/pip-install-t7_5mxl6/cryptography_48992643964044cd8e1791f70de45281
Complete output (149 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-x86_64-3.8/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-x86_64-3.8/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-3.8/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-x86_64-3.8/cryptography
copying src/cryptography/utils.py -> build/lib.linux-x86_64-3.8/cryptography
creating build/lib.linux-x86_64-3.8/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat
copying src/cryptography/hazmat/_der.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat
copying src/cryptography/hazmat/_oid.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat
copying src/cryptography/hazmat/_types.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat
creating build/lib.linux-x86_64-3.8/cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-3.8/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-x86_64-3.8/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-3.8/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-3.8/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-3.8/cryptography/x509
copying src/cryptography/x509/ocsp.py -> build/lib.linux-x86_64-3.8/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-3.8/cryptography/x509
creating build/lib.linux-x86_64-3.8/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends
creating build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings
creating build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
creating build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
creating build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings/openssl
creating build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
creating build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/serialization
creating build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/twofactor
running egg_info
writing src/cryptography.egg-info/PKG-INFO
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing requirements to src/cryptography.egg-info/requires.txt
writing top-level names to src/cryptography.egg-info/top_level.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'vectors'
warning: no previously-included files matching '*' found under directory 'vectors'
warning: no previously-included files matching '*' found under directory '.github'
warning: no previously-included files found matching 'release.py'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'mypy.ini'
warning: no previously-included files matching '*' found under directory '.zuul.d'
warning: no previously-included files matching '*' found under directory '.zuul.playbooks'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
copying src/cryptography/py.typed -> build/lib.linux-x86_64-3.8/cryptography
running build_ext
generating cffi module 'build/temp.linux-x86_64-3.8/_padding.c'
creating build/temp.linux-x86_64-3.8
generating cffi module 'build/temp.linux-x86_64-3.8/_openssl.c'
running build_rust
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation.html for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq.html
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation.html#rust
5) If you are experiencing issues with Rust for *this release only* you may
set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`.
=============================DEBUG ASSISTANCE=============================
error: Can not find Rust compiler
----------------------------------------
ERROR: Failed building wheel for cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
The command '/bin/sh -c pip uninstall -y jira && pip install jira>2.0.0' returned a non-zero code: 1
Hi @nsano-rururu Fixed the issue. Could you try again?
I confirmed that the docker image can be created normally.
This is information sharing. It is up to you to decide whether or not to support it.
npm WARN deprecated [email protected]: This module is no longer maintained, try this instead:
npm WARN deprecated npm i nyc
npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
npm WARN deprecated [email protected]: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: Please use the native JSON object instead of JSON 3
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
Babel Upgrade (6 → 7)
sudo npm i -g babel-upgrade
babel-upgrade --write --install
index.js
require('babel-register'); → require('@babel/register');
require('@babel/register');
require('src');
package.json
Library Update
{
"name": "@bitsensor/elastalert",
"version": "3.0.0-beta.0",
"description": "A server that runs ElastAlert and exposes REST API's for manipulating rules and alerts.",
"license": "MIT",
"main": "index.js",
"author": {
"name": "BitSensor",
"url": "https://bitsensor.io",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bitsensor/elastalert.git"
},
"directories": {
"lib": "./lib",
"test": "./test"
},
"dependencies": {
"@babel/cli": "^7.12.13",
"@babel/core": "^7.12.13",
"@babel/preset-env": "^7.12.13",
"@babel/register": "^7.12.13",
"body-parser": "^1.19.0",
"bunyan": "^1.8.15",
"cors": "^2.8.5",
"elasticsearch": "^16.7.2",
"express": "^4.17.1",
"fs-extra": "^9.1.0",
"joi": "^17.4.0",
"lodash": "^4.17.20",
"mkdirp": "^1.0.4",
"object-resolve-path": "^1.1.1",
"randomstring": "^1.1.5",
"raven": "^2.6.4",
"request": "^2.88.2",
"request-promise-native": "^1.0.9",
"tar": "^6.1.0",
"ws": "^7.4.3"
},
"devDependencies": {
"eslint": "^7.19.0",
"husky": "^5.0.9",
"istanbul": "^0.4.4",
"mocha": "~8.2.1"
},
"scripts": {
"build": "babel src -d lib",
"start": "sh ./scripts/start.sh",
"test": "./scripts/test.sh",
"update-authors": "./scripts/update-authors.sh",
"precommit": "./node_modules/eslint/bin/eslint.js ."
}
}
src/common/config/server_config.js
- delete 「import Joi from 'joi';」
- edit
before
this._jsonConfig = Joi.validate(jsonConfig, schema).value;
after
this._jsonConfig = schema.validate(JSON.parse(jsonConfig)).value;
src/common/file_system.js
- delete 「import mkdirp from 'mkdirp';」
- edit
before
mkdirp(pathToFolder, function (error) {
after
fs.mkdir(pathToFolder, { recursive: true }, function (error) {
src/controllers/rules/index.js
- delete 「import mkdirp from 'mkdirp';」
- edit
before
mkdirp(fullPath, function(error) {
after
fs.mkdir(fullPath, { recursive: true }, function(error) {
src/controllers/templates/index.js
- delete 「import mkdirp from 'mkdirp';」
- add「import fs from 'fs';」
- edit
before
mkdirp(fullPath, function (error) {
after
fs.mkdir(fullPath, { recursive: true }, function (error) {
src/handlers/test/post.js
before
const validationResult = Joi.validate(request.body.options, optionsSchema);
after
const validationResult = optionsSchema.validate(request.body.options);
Makefile
before
v ?= v0.2.0b2
all: build
build:
docker pull alpine:latest && docker pull node:alpine
docker build --build-arg ELASTALERT_VERSION=$(v) -t elastalert .
server: build
docker run -it --rm -p 3030:3030 \
--net="host" \
elastalert:latest
.PHONY: build
after
v ?= v0.2.4
all: build
build:
docker pull alpine:latest && docker pull node:alpine
docker build --build-arg ELASTALERT_VERSION=$(v) -t elastalert .
server: build
docker run -it --rm -p 3030:3030 -p 3333:3333 \
--net="host" \
elastalert:latest
.PHONY: build