docs: Add readme
This commit is contained in:
		
					parent
					
						
							
								1ad64f8e24
							
						
					
				
			
			
				commit
				
					
						1ba51886f4
					
				
			
		
					 1 changed files with 39 additions and 1 deletions
				
			
		
							
								
								
									
										38
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										38
									
								
								README.md
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,3 +1,41 @@
 | 
			
		|||
- `/api/server/heartbeat` - server heartbeat
 | 
			
		||||
- `/api/plugin/{id}` - plugin info
 | 
			
		||||
- `/api/plugin/find/{name}` - find a plugin id by name
 | 
			
		||||
 | 
			
		||||
## Deployment
 | 
			
		||||
**Note:** if you have any issues with the build, do `./mvnw clean` and try again.
 | 
			
		||||
 | 
			
		||||
### Docker
 | 
			
		||||
The best way to deploy is using Docker.
 | 
			
		||||
 | 
			
		||||
To build an image:
 | 
			
		||||
```bash
 | 
			
		||||
./mvnw install -Dquarkus.container-image.build=true
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
TODO write instructions.
 | 
			
		||||
 | 
			
		||||
### Java
 | 
			
		||||
#### Normal JAR
 | 
			
		||||
To build a JAR:
 | 
			
		||||
```bash
 | 
			
		||||
./mvnw package
 | 
			
		||||
```
 | 
			
		||||
The output will be `target/quarkus-app/quarkus-run.jar` \
 | 
			
		||||
You to distribute the whole `target/quarkus-app` directory.
 | 
			
		||||
 | 
			
		||||
#### Uber JAR
 | 
			
		||||
To build an uber-JAR:
 | 
			
		||||
```bash
 | 
			
		||||
./mvnw package -Dquarkus.package.jar.type=uber-jar
 | 
			
		||||
```
 | 
			
		||||
The output will be `target/mstats-1.0.0-runner.jar` \
 | 
			
		||||
You only need distribute that JAR.
 | 
			
		||||
 | 
			
		||||
### Native
 | 
			
		||||
To build a GraalVM native image:
 | 
			
		||||
```bash
 | 
			
		||||
./mvnw package -Dnative
 | 
			
		||||
```
 | 
			
		||||
The output will be `target/mstats-1.0.0-runner` \
 | 
			
		||||
You only need to distribute that executable.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue