Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/entur/kakka
Geocoder build pipeline + export module
https://github.com/entur/kakka
asag java-11 pelias postgresql ror spring-boot tiamat
Last synced: about 1 month ago
JSON representation
Geocoder build pipeline + export module
- Host: GitHub
- URL: https://github.com/entur/kakka
- Owner: entur
- License: eupl-1.2
- Created: 2018-02-05T10:26:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T23:34:26.000Z (about 2 months ago)
- Last Synced: 2024-10-26T12:08:40.126Z (about 2 months ago)
- Topics: asag, java-11, pelias, postgresql, ror, spring-boot, tiamat
- Language: Java
- Homepage:
- Size: 23.2 MB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Kakka [![CircleCI](https://circleci.com/gh/entur/kakka.svg?style=svg&circle-token=ad5039464c06f39960f03e52db5e67ce9633d507)](https://circleci.com/gh/entur/kakka)
Kakka is the build pipeline for the elastic search backing of the Pelias geocoder application.
Kakka is also responsible for triggering regular exports from Tiamat (NSR)## Configuration
* The application is unable to run without configuration. This must be defined externally to the application in a file called application.properties. Copy application.properties into either the current directory, i.e. where the application will be run from, or a /config subdirectory of this folder
* Typical application.properties for dev environment:```
shutdown.timeout=1
camel.springboot.name=Kakkaserver.admin.host=0.0.0.0
server.admin.port=8888
server.host=0.0.0.0
server.port=8776kakka.security.user-context-service=full-access
blobstore.gcs.container.name=marduk-test
blobstore.gcs.credential.path=/home/tomgag/.ssh/Carbon-ef49cabc6d04.json
blobstore.delete.external.blobs=false
blobstore.gcs.project.id=carbon-1287logging.config=classpath:logback.xml
logging.level.no=DEBUG
logging.level.no.entur.kakka=INFO
logging.level.org=INFO
logging.level.org.apache.camel.util=INFOspring.main.sources=no.entur.kakka
spring.profiles.active=gcs-blobstoretiamat.url=http4://tiamat:1888
babylon.url=http4://babylon:9030/restkartverket.username=
kartverket.password=```
* Run with maven `mvn spring-boot:run -Dspring.profiles.active=dev`* Build: `mvn clean install`
* Local run: `java -Xmx1280m -Dspring.profiles.active=dev -jar target/kakka-0.0.1-SNAPSHOT.jar`
* Docker image: `mvn -Dspring.profiles.active=dev -Pf8-build`
* Run the docker image in docker inside vagrant:```docker rm -f kakka ; mvn -Pf8-build && docker run -it --name kakka -e JAVA_OPTIONS="-Xmx1280m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" --link lamassu -v /git/config/kakka/dev/application.properties:/app/config/application.properties:ro dr.rutebanken.org/rutebanken/kakka:0.0.1-SNAPSHOT```
* For more docker plugin goals, see: http://ro14nd.de/docker-maven-plugin/goals.html
## Security
An authorization service implementation must be selected.
The following implementation gives full access to all authenticated users:```properties
kakka.security.user-context-service=full-access
```The following implementation enables OAuth2 token-based authorization:
```properties
kakka.security.user-context-service=token-based
```## Liveness and readyiness
In production, kakka can be probed with:
- http://:/health/live
- http://:/health/ready
to check liveness and readiness, accordingly