https://github.com/noherczeg/karaf-play
https://github.com/noherczeg/karaf-play
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/noherczeg/karaf-play
- Owner: noherczeg
- Created: 2022-12-06T01:00:19.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T01:02:19.000Z (over 2 years ago)
- Last Synced: 2025-02-01T16:48:46.973Z (5 months ago)
- Language: Java
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# karaf-play
## Get tools
```bash
./get-jdk.sh
./get-karaf.sh
```## Run Karaf
```bash
./run-karaf.sh
```## Prepare essentials
_In Karaf Console_
```
feature:install http
feature:install webconsole
```## Allow an admin user to access the WebConsole
_karaf:karaf_ (DO NOT USE IN PRODUCTION)
```bash
echo "karaf = karaf,_g_:admingroup" > karaf/etc/users.properties
echo "_g_\:admingroup = group,admin,manager,viewer,systembundles,ssh" >> karaf/etc/users.properties
```Now, the [http://localhost:8181/system/console]() should be available
## Build Bundles
```bash
mvn clean install
```## Install Bundles
```
bundle:install -s mvn:com.example/karaf-play-contract/1.0.0-SNAPSHOT
bundle:install -s mvn:com.example/karaf-play-service/1.0.0-SNAPSHOT
```## Install Features
```
feature:repo-add mvn:com.example/karaf-play-features/1.0.0-SNAPSHOT/xmlfeature:install karaf-play-contract
feature:install karaf-play-service
```## References
- https://karaf.apache.org/download.html
- https://www.azul.com/downloads/
- https://karaf.apache.org/manual/latest/webconsole
- https://karaf.apache.org/manual/latest/security