javacore-analyser 2.2.0.dev79__tar.gz → 2.2.0.dev84__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/.travis.yml +2 -2
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/CONTRIBUTING.md +39 -1
- javacore_analyser-2.2.0.dev84/Dockerfile +19 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/PKG-INFO +4 -4
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/README.md +3 -3
- javacore_analyser-2.2.0.dev79/Dockerfile +0 -15
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/.github/dco.yml +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/.gitignore +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/CHANGELOG.md +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/CODE_OF_CONDUCT.md +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/LICENSE +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/MAINTAINERS.md +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/REQUIREMENTS.md +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/SECURITY.md +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/docs/ClassDiagram.png +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/docs/dom_example.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/pyproject.toml +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/requirements.txt +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/__init__.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/__main__.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/abstract_snapshot_collection.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/code_snapshot_collection.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/constants.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/expand.js +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/html/error.html +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/html/processing_data.html +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/jquery/chart.js +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/jquery/chartjs-adapter-date-fns.bundle.min.js +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/jquery/jq.css +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/jquery/jquery.mark.min.js +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/jquery/jquery.min.js +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/jquery/jquery.tablesorter.min.js +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/jquery/jquery.tablesorter.widgets.min.js +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/jquery/search.js +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/jquery/sorting.js +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/jquery/theme.blue.css +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/jquery/theme.default.min.css +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/jquery/wait2scripts.js +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/style.css +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/xml/index.xml +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/xml/javacores/javacore.xml +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/xml/javacores/javacore.xsl +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/xml/report.xsl +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/xml/threads/thread.xml +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/xml/threads/thread.xsl +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/har_file.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/java_thread.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/javacore.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/javacore_analyser_batch.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/javacore_analyser_web.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/javacore_set.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/logging_utils.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/snapshot_collection.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/snapshot_collection_collection.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/stack_trace.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/stack_trace_element.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/stack_trace_kind.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/templates/index.html +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/thread_snapshot.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/tips.py +0 -0
- {javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/verbose_gc.py +0 -0
@@ -29,5 +29,5 @@ deploy:
|
|
29
29
|
file: dist/*
|
30
30
|
on:
|
31
31
|
# all_branches: true # uncomment for testing purposes
|
32
|
-
branch: main # uncomment on production
|
33
|
-
tags: true # We need to consider if we want to publish all versions or every build
|
32
|
+
# branch: main # uncomment on production
|
33
|
+
tags: true # We need to consider if we want to publish all versions or every build
|
@@ -94,7 +94,7 @@ To run web application:
|
|
94
94
|
|
95
95
|
## Build pip package
|
96
96
|
Follow the steps from [Packaging projects](https://packaging.python.org/en/latest/tutorials/packaging-projects/).
|
97
|
-
Currently Chris
|
97
|
+
Currently Chris and Tad have an API keys for test and production pypi
|
98
98
|
|
99
99
|
## Build container localy
|
100
100
|
To build a container:
|
@@ -115,6 +115,43 @@ or
|
|
115
115
|
`-p` specifies port mapping. The application in container is running on port 5000. You can map it to another port on
|
116
116
|
your machine (5001 in this example).
|
117
117
|
|
118
|
+
|
119
|
+
## Publish the container to ghcr.io/ibm/javacore-analyser
|
120
|
+
Once you built the container locally, you might need to publish it on ghcr.io/ibm/javacore-analyser.
|
121
|
+
Here are the instructions:
|
122
|
+
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry.
|
123
|
+
Steps:
|
124
|
+
1. Generate the token by navigating to https://github.com/settings/tokens/new?scopes=write:packages.
|
125
|
+
* Select the read:packages scope to download container images and read their metadata.
|
126
|
+
* Select the write:packages scope to download and upload container images and read and write their metadata.
|
127
|
+
* Select the delete:packages scope to delete container images.
|
128
|
+
NOTE: you can use the same token for multiple pushes until it does not expire.
|
129
|
+
2. Tag image:
|
130
|
+
```commandline
|
131
|
+
podman image tag localhost/javacore-analyser ghcr.io/ibm/javacore-analyser:latest
|
132
|
+
podman image tag localhost/javacore-analyser ghcr.io/ibm/javacore-analyser:2.1
|
133
|
+
```
|
134
|
+
3. Push the image:
|
135
|
+
```commandline
|
136
|
+
export CR_PAT=<token-id generated in step 1>
|
137
|
+
echo $CR_PAT | podman login ghcr.io -u USERNAME --password-stdin
|
138
|
+
podman push ghcr.io/ibm/javacore-analyser:2.1
|
139
|
+
podman push ghcr.io/ibm/javacore-analyser:latest
|
140
|
+
```
|
141
|
+
|
142
|
+
## Build and Publish multiplatform image
|
143
|
+
To publish the image for multiple platforms, follow these instructions:
|
144
|
+
https://developers.redhat.com/articles/2023/11/03/how-build-multi-architecture-container-images#benefits_of_multi_architecture_containers
|
145
|
+
```commandline
|
146
|
+
<Generate token if you do not have it yet>
|
147
|
+
export CR_PAT=<token-id generated in step 1>
|
148
|
+
echo $CR_PAT | podman login ghcr.io -u USERNAME --password-stdin
|
149
|
+
podman manifest create javacore-analyser:2.1
|
150
|
+
podman build --platform linux/amd64,linux/arm64,linux/i386 --manifest javacore-analyser:2.1 .
|
151
|
+
podman manifest push javacore-analyser:2.1 docker://ghcr.io/ibm/javacore-analyser:2.1
|
152
|
+
podman manifest push javacore-analyser:2.1 docker://ghcr.io/ibm/javacore-analyser:latest
|
153
|
+
```
|
154
|
+
|
118
155
|
## Releasing a new version
|
119
156
|
Release a new version is partially automated by Travis. Here are the steps:
|
120
157
|
1. Make sure you are on `main` branch in your repository.
|
@@ -162,6 +199,7 @@ https://github.com/settings/tokens/new
|
|
162
199
|
6. Publish release.
|
163
200
|
7. Copy release notes to [CHANGELOG.md](CHANGELOG.md) file.
|
164
201
|
|
202
|
+
|
165
203
|
## Testing
|
166
204
|
As default the tests in Pycharm are ran in the current selected directory. However we want to run them in main
|
167
205
|
directory of the tool (**javacore-analyser** directory, not **test** directory).
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#
|
2
|
+
# Copyright IBM Corp. 2024 - 2024
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
4
|
+
#
|
5
|
+
|
6
|
+
FROM python:3
|
7
|
+
|
8
|
+
LABEL org.opencontainers.image.source="https://github.com/IBM/javacore-analyser"
|
9
|
+
LABEL org.opencontainers.image.description="This is a tool to analyse IBM Javacore files and provide the report used to analyse hang/outage and performance issues."
|
10
|
+
LABEL org.opencontainers.image.licenses="Apache-2.0"
|
11
|
+
|
12
|
+
EXPOSE 5000/tcp
|
13
|
+
ENV REPORTS_DIR=/reports
|
14
|
+
RUN mkdir /reports
|
15
|
+
VOLUME ["/reports"]
|
16
|
+
|
17
|
+
RUN pip install --no-cache-dir --root-user-action ignore javacore-analyser
|
18
|
+
|
19
|
+
CMD [ "javacore_analyser_web" ]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: javacore_analyser
|
3
|
-
Version: 2.2.0.
|
3
|
+
Version: 2.2.0.dev84
|
4
4
|
Summary: The tool to review IBM Javacore files
|
5
5
|
Project-URL: Homepage, https://github.com/IBM/javacore-analyser
|
6
6
|
Project-URL: Issues, https://github.com/IBM/javacore-analyser/issues
|
@@ -318,13 +318,13 @@ You can type the following command to obtain the help:
|
|
318
318
|
Now you can type (http://localhost:5000/).
|
319
319
|
|
320
320
|
### Running container image
|
321
|
-
There is
|
321
|
+
There is a Docker/Podman container managed by one of projects developers. Use the following command
|
322
322
|
to start it:
|
323
323
|
|
324
|
-
`podman run -it --rm --name javacore-analyser --mount type=bind,src="/local-reports-dir",target=/reports -p 5001:5000 ghcr.io/
|
324
|
+
`podman run -it --rm --name javacore-analyser --mount type=bind,src="/local-reports-dir",target=/reports -p 5001:5000 ghcr.io/ibm/javacore-analyser:latest`
|
325
325
|
|
326
326
|
or
|
327
|
-
`docker run -it --rm --name javacore-analyser --mount type=bind,src="/local-reports-dir",target=/reports -p 5001:5000 ghcr.io/
|
327
|
+
`docker run -it --rm --name javacore-analyser --mount type=bind,src="/local-reports-dir",target=/reports -p 5001:5000 ghcr.io/ibm/javacore-analyser:latest`
|
328
328
|
|
329
329
|
The `mount` option specifies where you want locally to store the reports. The reports in the container are stored in
|
330
330
|
`/reports` directory. If you remove mount option, the application will work but the reports will not persist after
|
@@ -79,13 +79,13 @@ You can type the following command to obtain the help:
|
|
79
79
|
Now you can type (http://localhost:5000/).
|
80
80
|
|
81
81
|
### Running container image
|
82
|
-
There is
|
82
|
+
There is a Docker/Podman container managed by one of projects developers. Use the following command
|
83
83
|
to start it:
|
84
84
|
|
85
|
-
`podman run -it --rm --name javacore-analyser --mount type=bind,src="/local-reports-dir",target=/reports -p 5001:5000 ghcr.io/
|
85
|
+
`podman run -it --rm --name javacore-analyser --mount type=bind,src="/local-reports-dir",target=/reports -p 5001:5000 ghcr.io/ibm/javacore-analyser:latest`
|
86
86
|
|
87
87
|
or
|
88
|
-
`docker run -it --rm --name javacore-analyser --mount type=bind,src="/local-reports-dir",target=/reports -p 5001:5000 ghcr.io/
|
88
|
+
`docker run -it --rm --name javacore-analyser --mount type=bind,src="/local-reports-dir",target=/reports -p 5001:5000 ghcr.io/ibm/javacore-analyser:latest`
|
89
89
|
|
90
90
|
The `mount` option specifies where you want locally to store the reports. The reports in the container are stored in
|
91
91
|
`/reports` directory. If you remove mount option, the application will work but the reports will not persist after
|
@@ -1,15 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright IBM Corp. 2024 - 2024
|
3
|
-
# SPDX-License-Identifier: Apache-2.0
|
4
|
-
#
|
5
|
-
|
6
|
-
FROM python:3
|
7
|
-
|
8
|
-
EXPOSE 5000/tcp
|
9
|
-
ENV REPORTS_DIR=/reports
|
10
|
-
RUN mkdir /reports
|
11
|
-
VOLUME ["/reports"]
|
12
|
-
|
13
|
-
RUN pip install --no-cache-dir --root-user-action ignore javacore-analyser
|
14
|
-
|
15
|
-
CMD [ "javacore_analyser_web" ]
|
{javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/.github/ISSUE_TEMPLATE/bug_report.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/__init__.py
RENAMED
File without changes
|
{javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/__main__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/constants.py
RENAMED
File without changes
|
{javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/expand.js
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/data/style.css
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/har_file.py
RENAMED
File without changes
|
{javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/java_thread.py
RENAMED
File without changes
|
{javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/javacore.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/stack_trace.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/tips.py
RENAMED
File without changes
|
{javacore_analyser-2.2.0.dev79 → javacore_analyser-2.2.0.dev84}/src/javacore_analyser/verbose_gc.py
RENAMED
File without changes
|