Skip to content

Commit a4d58cb

Browse files
committed
Add build instructions
1 parent 6c16a30 commit a4d58cb

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,38 @@
11
# example-spring-boot
22

3-
From https://github.com/spring-guides/gs-spring-boot, directory "initial"
3+
## Building
4+
5+
1. Create once a [Personal Access Token (PAK)](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) with [packages scope](https://docs.github.com/en/packages/publishing-and-managing-packages/about-github-packages#about-tokens).
6+
2. Provide the PAK in the environment
7+
```
8+
export GITHUB_ACTOR=YOUR_USERNAME
9+
export GITHUB_TOKEN=YOUR_PAK
10+
```
11+
3. Use maven to build
12+
```
13+
mvn -s settings.xml package
14+
```
15+
16+
## Running
17+
18+
Please refer to [README](https://github.com/org-crac/docs#users-flow) for details.
19+
20+
### Preparing the image
21+
1. Run the [JDK](README.md#JDK) in the checkpoint mode
22+
```
23+
$JAVA_HOME/bin/java -Zcheckpoint:cr -jar target/spring-boot-0.0.1-SNAPSHOT.jar
24+
```
25+
2. Warm-up the instance
26+
```
27+
siege -c 1 -r 100000 -b -H "Content-type: text/plain" "http://localhost:8080/transform POST < example.xml"
28+
```
29+
3. Request checkpoint
30+
```
31+
jcmd target/spring-boot-0.0.1-SNAPSHOT.jar JDK.checkpoint
32+
```
33+
34+
### Restoring
35+
36+
```
37+
$JAVA_HOME/bin/java -Zrestore:cr
38+
```

0 commit comments

Comments
 (0)