Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 8fd8401

Browse files
committed
initial commit
1 parent b2aef87 commit 8fd8401

10 files changed

+85
-0
lines changed

README.rst

Whitespace-only changes.

cloudbuild.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
steps:
2+
- name: 'gcr.io/cloud-builders/docker'
3+
args: ['build', '-t', 'gcr.io/genuine-flight-317411/java-toolkit-aux/jtk-11', '.']
4+
- name: 'gcr.io/cloud-builders/docker'
5+
args: ['push', 'gcr.io/genuine-flight-317411/java-toolkit-aux/jtk-11']
6+
images: ['gcr.io/genuine-flight-317411/java-toolkit-aux/jtk-11']

configs.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"JDK_PATH": "/opt/java/openjdk",
3+
"MKDIR_POD_CMD": "mkdir /proc/{}/cwd/mnt/robusta",
4+
"RMDIR_POD_CMD": "rm -R /proc/{}/cwd/mnt/robusta",
5+
"COPY_PATH": "/proc/$PID_VAL/cwd/mnt/robusta",
6+
"JMAP_CMD": "/mnt/robusta/openjdk/bin/jmap -J-Xshareclasses:nonfatal -histo {}",
7+
"JSTACK_CMD": "mnt/robusta/openjdk/bin/jstack -J-Xshareclasses:nonfatal -l {}",
8+
"NSENTER_CMD": "nsenter -t {} -p -m {}"
9+
}

debugger-pod.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: java-tk-11
5+
labels:
6+
app: java-tk-11
7+
spec:
8+
replicas: 1
9+
selector:
10+
matchLabels:
11+
app: java-tk-11
12+
template:
13+
metadata:
14+
labels:
15+
app: java-tk-11
16+
spec:
17+
hostIPC: true
18+
hostNetwork: true
19+
hostPID: true
20+
volumes:
21+
- name: host-disk
22+
hostPath:
23+
path: /
24+
type: Directory
25+
containers:
26+
- name: java-tk-11
27+
image: gcr.io/genuine-flight-317411/java-toolkit-aux/jtk-11
28+
imagePullPolicy: Always
29+
volumeMounts:
30+
- name: host-disk
31+
mountPath: /host-disk
32+
securityContext:
33+
privileged: true
34+
capabilities:
35+
add:
36+
- SYS_PTRACE
37+
- SYS_ADMIN

dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM adoptopenjdk/openjdk11-openj9:jdk-11.0.13_8_openj9-0.29.0-debian
2+
3+
RUN apt-get update \
4+
&& apt-get install -y --no-install-recommends procps gdb git curl inotify-tools \
5+
&& apt-get purge -y --auto-remove \
6+
&& rm -rf /var/lib/apt/lists/*
7+
8+
WORKDIR /app/
9+
COPY ../../src /app/src
10+
CMD exec /bin/bash -c "trap : TERM INT; sleep infinity & wait"
11+
12+
#run on jenkens

pyproject.toml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[tool.poetry]
2+
name = "java-toolkit"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["Avi <[email protected]>"]
6+
7+
[tool.poetry.dependencies]
8+
python = "^3.8"
9+
10+
[tool.poetry.dev-dependencies]
11+
pytest = "^5.2"
12+
13+
[build-system]
14+
requires = ["poetry-core>=1.0.0"]
15+
build-backend = "poetry.core.masonry.api"

src/__init__.py

Whitespace-only changes.

src/java_toolkit/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.1.0'

src/tests/__init__.py

Whitespace-only changes.

src/tests/test_java_toolkit.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from java_toolkit import __version__
2+
3+
4+
def test_version():
5+
assert __version__ == '0.1.0'

0 commit comments

Comments
 (0)