Skip to content

Commit c23898d

Browse files
committed
Move tiny-java-containers under native-image/containerize category
1 parent 4084651 commit c23898d

28 files changed

+12
-11
lines changed

.github/workflows/tiny-java-containers.yml renamed to .github/workflows/containerize-tiny-java-containers.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
1-
name: tiny-java-containers
1+
name: native-image/containerize/tiny-java-containers
22
on:
33
push:
44
paths:
5-
- 'tiny-java-containers/**'
6-
- '.github/workflows/tiny-java-containers.yml'
5+
- 'native-image/containerize/tiny-java-containers/**'
6+
- '.github/workflows/containerize-tiny-java-containers.yml'
77
schedule:
88
- cron: "0 0 1 * *" # run every month
99
workflow_dispatch:
1010
permissions:
1111
contents: read
1212
jobs:
1313
run:
14-
name: Run 'tiny-java-containers'
14+
name: Run 'native-image/containerize/tiny-java-containers'
1515
runs-on: ubuntu-20.04 # Docker has changed its behavior on Ubuntu 22.04
1616
timeout-minutes: 20
17+
strategy:
18+
matrix:
19+
java-version: ['21', '24-ea']
1720
steps:
1821
- uses: actions/checkout@v4
1922
- uses: graalvm/setup-graalvm@v1
2023
with:
21-
java-version: '21'
24+
java-version: ${{ matrix.java-version }}
2225
distribution: 'graalvm'
2326
github-token: ${{ secrets.GITHUB_TOKEN }}
2427
- name: Run 'tiny-java-containers'

tiny-java-containers/README.md renamed to native-image/containerize/tiny-java-containers/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ shared libraries, an executable has to be fully statically linked with all
99
needed libraries and resources.
1010

1111
To support static linking of `libc`, GraalVM Native Image supports using the
12-
"lightweight, fast, simple, free" [musl](https://musl.libc.org/) libc
12+
"lightweight, fast, simple, free" [musl](https://musl.libc.org/) `libc`
1313
implementation.
1414

1515
You can watch a [Devoxx 2022](https://devoxx.be/) session that walks through
@@ -176,15 +176,13 @@ or
176176
![](images/keyboard.jpg) `docker run --init --rm -p8000:8000 jwebserver:scratch.static-upx`
177177

178178
Using `curl` or your favourite tool you can hit `http://localhost:8000` to fetch
179-
the index.html file.
179+
the _index.html_ file.
180180

181181
## Wrapping Up
182182

183183
A fully functional, albeit minimal, Java "microservice" was compiled into a
184184
native Linux executable and packaged into Distroless, Alpine, and
185185
`scratch`-based container images thanks to GraalVM Native Image's support for
186-
various linking options including fully static linking with the `musl` libc.
186+
various linking options including fully static linking with `musl libc`.
187187

188-
To learn more about linking options check out [Static and Mostly Static
189-
Images](https://www.graalvm.org/latest/reference-manual/native-image/guides/build-static-executables/)
190-
in the GraalVM docs.
188+
To learn more about linking options check out [Static and Mostly Static Images](https://www.graalvm.org/latest/reference-manual/native-image/guides/build-static-executables/) in the GraalVM docs.

0 commit comments

Comments
 (0)