-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add benchmark initial work * feat: add benchmark initial work * test: jmeter - use "topsecret" + number for generated password * fix: missing envs * fix: parsing the authz jmx * fix: parsing the authz jmx * fix: adjust jmx * docs: add envs description * fix: add benchmark doc and yaml * ci: fix conditional on updating dates inside dockerfile * docs: proofreaad Co-authored-by: YuriyZ <yzabrovarniy@gmail.com>
- Loading branch information
Showing
39 changed files
with
2,289 additions
and
8,701 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
demos/benchmarking/docker-jans-loadtesting-jmeter/.dockerignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# exclude everything | ||
* | ||
|
||
# include required files/directories | ||
!certs | ||
!conf | ||
!jetty | ||
!libs | ||
!scripts | ||
!LICENSE | ||
!requirements.txt |
2 changes: 2 additions & 0 deletions
2
demos/benchmarking/docker-jans-loadtesting-jmeter/.gitattributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
105 changes: 105 additions & 0 deletions
105
demos/benchmarking/docker-jans-loadtesting-jmeter/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# dotenv | ||
.env | ||
|
||
# virtualenv | ||
.venv | ||
venv/ | ||
ENV/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# PyCharm project settings | ||
.idea | ||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
.DS_STORE |
4 changes: 4 additions & 0 deletions
4
demos/benchmarking/docker-jans-loadtesting-jmeter/.hadolint.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ignored: | ||
- DL3018 # Pin versions in apk add | ||
- DL3013 # Pin versions in pip | ||
- DL3003 # Use WORKDIR to switch to a directory |
77 changes: 77 additions & 0 deletions
77
demos/benchmarking/docker-jans-loadtesting-jmeter/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
FROM blazemeter/taurus:master-f96971fa-2022-12-12 | ||
|
||
# =============== | ||
# Ubuntu packages | ||
# =============== | ||
|
||
RUN apt-get clean \ | ||
&& mv /var/lib/apt/lists /tmp \ | ||
&& mkdir -p /var/lib/apt/lists/partial \ | ||
&& apt-get clean | ||
|
||
RUN apt-get update \ | ||
&& apt-get install openjdk-8-jre-headless wget git bash python3 python3-dev lsb-core python3-setuptools cmake build-essential apt-utils python3-pip -y | ||
|
||
# =============== | ||
# Environmental Variables | ||
# =============== | ||
|
||
ENV FQDN="https://demoexample.jans.io" \ | ||
AUTHZ_CLIENT_ID="" \ | ||
AUTHZ_CLIENT_SECRET="" \ | ||
ROPC_CLIENT_ID="" \ | ||
ROPC_CLIENT_SECRET="" \ | ||
RUN_AUTHZ_TEST=false \ | ||
RUN_ROPC_TEST=false \ | ||
TEST_USERS_PREFIX_STRING="test_user" \ | ||
THREAD_COUNT=200 \ | ||
COUCHBASE_URL="" \ | ||
COUCHBASE_PW="" \ | ||
USER_NUMBER_STARTING_POINT=0 \ | ||
USER_NUMBER_ENDING_POINT=50000000 \ | ||
LOAD_USERS_TO_COUCHBASE=false \ | ||
LOAD_USERS_TO_LDAP=false \ | ||
LOAD_USERS_TO_SPANNER=false \ | ||
LOAD_USERS_TO_RDBMS=false \ | ||
USER_SPLIT_PARALLEL_THREADS=20 \ | ||
GOOGLE_APPLICATION_CREDENTIALS=""\ | ||
GOOGLE_PROJECT_ID=""\ | ||
GOOGLE_SPANNER_INSTANCE_ID=""\ | ||
GOOGLE_SPANNER_DATABASE_ID=""\ | ||
LDAP_URL="opendj:1636" \ | ||
LDAP_PW="" \ | ||
LDAP_DN="cn=directory manager" \ | ||
# pgsql or mysql | ||
RDBMS_TYPE="mysql" \ | ||
RDBMS_DB="jans" \ | ||
RDBMS_USER="jans" \ | ||
RDBMS_PASSWORD="" \ | ||
RDBMS_HOST="localhost" | ||
|
||
|
||
|
||
# ====== | ||
# Python | ||
# ====== | ||
|
||
COPY requirements.txt /scripts/requirements.txt | ||
RUN pip install --no-cache-dir -U pip wheel \ | ||
&& pip3 install --no-cache-dir --default-timeout=300 -r /scripts/requirements.txt \ | ||
&& pip3 uninstall -y pip wheel | ||
|
||
COPY scripts /scripts | ||
|
||
RUN mkdir -p /root/.bzt/jmeter-taurus \ | ||
&& wget -q https://dlcdn.apache.org//jmeter/binaries/apache-jmeter-5.5.tgz -O /scripts/apache-jmeter-5.5.tgz \ | ||
&& tar zxvf /scripts/apache-jmeter-5.5.tgz -C /root/.bzt/jmeter-taurus \ | ||
&& mv /root/.bzt/jmeter-taurus/apache-jmeter-5.5 /root/.bzt/jmeter-taurus/5.5 | ||
|
||
LABEL name="janssenproject/demo_loadtesting" \ | ||
maintainer="Janssen Project <support@jans.io>" \ | ||
vendor="Janssen Project" \ | ||
version="1.0.6" \ | ||
release="dev" \ | ||
summary="Janssen Jmeter tests" \ | ||
description="Janssen Jmeter and user loader image" | ||
|
||
ENTRYPOINT ["bash", "/scripts/entrypoint.sh"] |
Oops, something went wrong.