Skip to content

Commit 9929f93

Browse files
committed
chore: spotless style fix
1 parent 5102443 commit 9929f93

File tree

3 files changed

+34
-35
lines changed

3 files changed

+34
-35
lines changed

docs/Containers.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,48 +9,48 @@
99
# https://console.cloud.google.com/gcr/images/distroless/GLOBAL/java-debian10
1010
$ docker pull gcr.io/distroless/java-debian10:base
1111
$ docker pull gcr.io/distroless/java-debian10:base-nonroot
12-
12+
1313
# Distroless Java Base
1414
$ docker pull gcr.io/distroless/java:11 # OR
1515
$ docker pull gcr.io/distroless/java-debian10:latest
16-
16+
1717
# Distroless Static & Base
1818
$ docker pull gcr.io/distroless/static:latest
1919
$ docker pull gcr.io/distroless/base:latest
20-
20+
2121
# Openjdk
2222
$ docker pull openjdk:17-slim-buster
23-
23+
2424
# Oracle OpenJDK
2525
$ docker pull container-registry.oracle.com/java/openjdk:latest
26-
26+
2727
# Microsoft OpenJDK
2828
# https://docs.microsoft.com/en-us/java/openjdk/containers
2929
$ docker pull mcr.microsoft.com/openjdk/jdk:16-ubuntu
30-
30+
3131
# Alpine (Liberica)
3232
$ docker pull bellsoft/liberica-openjdk-alpine-musl:latest
3333
$ docker pull bellsoft/liberica-openjdk-alpine:latest (libc)
34-
34+
3535
# Alpine (Zulu)
3636
$ docker pull azul/zulu-openjdk-alpine:16
37-
37+
3838
# Alpine (OpenJDK)
3939
$ docker pull openjdk:17-jdk-alpine
40-
40+
4141
# Alpine (AdoptOpenJDK)
4242
$ docker pull adoptopenjdk/openjdk16:alpine-jre (musl)
43-
43+
4444
# Alpine (Amazon Corretto)
4545
$ docker pull amazoncorretto:16-alpine
46-
46+
4747
# GraalVM CE
4848
$ docker pull ghcr.io/graalvm/graalvm-ce:latest
49-
49+
5050
# Examples
5151
$ docker run -it --rm gcr.io/distroless/java-debian10:base-nonroot openssl s_client --connect google.com:443
5252
```
53-
53+
5454
- https://hub.docker.com/_/openjdk
5555
- https://github.com/docker-library/docs/tree/master/openjdk
5656
- https://github.com/AdoptOpenJDK/openjdk-docker#official-and-unofficial-images
@@ -78,7 +78,7 @@
7878

7979
```bash
8080
FROM alpine
81-
81+
8282
ENTRYPOINT while :; do nc -k -l -p $PORT -e sh -c 'echo -e "HTTP/1.1 200 OK\n\n hello, world"'; done
8383
# https://github.com/jamesward/hello-netcat
8484
# docker build -t hello-netcat .
@@ -92,11 +92,11 @@
9292
# forward request and error logs to docker log collector
9393
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
9494
&& ln -sf /dev/stderr /var/log/nginx/error.log
95-
95+
9696
# OR output directly to
9797
/proc/self/fd/1 (STDOUT)
9898
/proc/self/fd/2 (STDERR)
99-
99+
100100
# https://docs.docker.com/config/containers/logging/configure/
101101
```
102102

@@ -107,15 +107,15 @@
107107
#!/bin/bash
108108
## Entrypoint script for my-app. This script is to show how to write
109109
## an entrypoint script that actually passes down signals from Docker.
110-
110+
111111
## Load our DB Password into a runtime only Environment Variable
112112
if [ -f /run/secrets/password ]
113113
then
114114
echo "Loading DB password from secrets file"
115115
DB_PASS=$(cat /run/secrets/password)
116116
export DB_PASS
117117
fi
118-
118+
119119
## Run the Application
120120
exec my-app
121121
```

docs/JDK Commands.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -111,21 +111,21 @@ $ javac --enable-preview \
111111
--module-path ... \ // Optional, where to find application modules
112112
--module-source-path "src" \ // Source files for multiple modules
113113
-d classes \
114-
--module MainApp // Compile only the specified module(s)
114+
--module MainApp // Compile only the specified module(s)
115115

116116
# Package all modules (Create for all modules)
117117
$ jar --create \
118118
--file mods/app.jar \
119119
--main-class dev.suresh.MainKt \
120120
--module-version 1.0 \ // Optional
121121
-C app/ classes resources // Or *.class
122-
122+
123123
# Launch app
124124
$ java --enable-preview \
125125
--show-version \
126126
--show-module-resolution \
127127
--module-path mods \
128-
--module app // OR <module>/<mainclass>
128+
--module app // OR <module>/<mainclass>
129129
```
130130

131131
* [JPMS Quickstart](https://openjdk.java.net/projects/jigsaw/quick-start)
@@ -158,9 +158,9 @@ $ jshell --enable-preview --startup DEFAULT --startup ~/calc.repl
158158
##### 11. Loom config
159159

160160
```bash
161-
# Loom Default ForkJoinPool scheduler config. The scheduler is based on
162-
# ForkJoinPool and it's setup to spin up additional underlying carrier
163-
# threads to help when there are virtual threads blocked in Object.wait.
161+
# Loom Default ForkJoinPool scheduler config. The scheduler is based on
162+
# ForkJoinPool and it's setup to spin up additional underlying carrier
163+
# threads to help when there are virtual threads blocked in Object.wait.
164164
# The default maximum is 256.
165165

166166
$ java -Djdk.defaultScheduler.parallelism=1 // Default to available processors
@@ -302,13 +302,13 @@ println("Hello Kotlin Script")
302302
```bash
303303
# Turn on all debugging
304304
$ java -Djavax.net.debug=all
305-
305+
306306
# Override HostsFileNameService
307307
$ java -Djdk.net.hosts.file=/etc/host/style/file
308-
308+
309309
# Force IPv4
310310
$ java -Djava.net.preferIPv4Stack=true
311-
311+
312312
# The entropy gathering device can also be specified with the system property
313313
$ java -Djava.security.egd=file:/dev/./urandom
314314
```
@@ -473,7 +473,7 @@ sourceSets.main.get().compileClasspath
473473
val u: TaskProvider<Jar> = register<Jar>("jar"){} // Create new task
474474
val v: TaskProvider<Jar> by registering(Jar::class){} // Create task using property delegate
475475
val jar: TaskProvider<Task> by existing // Get task using property delegate
476-
476+
477477
val foo: FooTask by existing // Take Task type from val (Kotlin 1.4)
478478
val bar: BarTask by registering {} // Take Task type from val (Kotlin 1.4)
479479
```
@@ -579,7 +579,7 @@ configurations.all {
579579
580580
* **[Gradle Conflict Resolution](https://docs.gradle.org/current/userguide/dependency_resolution.html#sec:conflict-resolution)**
581581
582-
582+
583583
584584
##### 12. Update Wrapper and others
585585
@@ -602,7 +602,7 @@ $ ./gradlew run --args="<JFR_FILE>"
602602
603603
* https://services.gradle.org/versions
604604
605-
605+
606606
607607
### Security & Certificates
608608
@@ -1057,4 +1057,4 @@ $ cp README.md build/dokka/my-app/Overview.md
10571057
$ Fix the img reference on Overview.md
10581058
$ cd build/dokka
10591059
$ mkdocs build
1060-
```
1060+
```

docs/JVM Profiling.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
```bash
1414
# https://adoptopenjdk.net/jmc.html
1515
# http://jdk.java.net/jmc/
16-
#
16+
#
1717

1818
# JDK should be in - /Library/Java/JavaVirtualMachines/jdk-14.0.2.jdk/Contents/Home/
1919
$ curl https://ci.adoptopenjdk.net/view/JMC/job/jmc-build/job/master/lastSuccessfulBuild/artifact/target/products/org.openjdk.jmc-8.0.0-SNAPSHOT-macosx.cocoa.x86_64.tar.gz | tar xv -
@@ -38,7 +38,7 @@ $ open '/Applications/JDK Mission Control.app' --args -vm $JAVA_HOME/bin
3838

3939
* [D3 Flame Graph ](https://github.com/spiermar/d3-flame-graph)
4040

41-
41+
4242

4343
#### 4. Profilers & Tools
4444

@@ -48,10 +48,9 @@ $ open '/Applications/JDK Mission Control.app' --args -vm $JAVA_HOME/bin
4848

4949
* [FlameGraph](http://www.brendangregg.com/flamegraphs.html)
5050

51-
51+
5252

5353
#### 5. Resources
5454

5555
* [JDK Mission Control Docs](https://docs.oracle.com/en/java/java-components/jdk-mission-control/)
5656
* [Marcus Hirt's Blog](http://hirt.se/blog/?p=1312)
57-

0 commit comments

Comments
 (0)