This repository contains a Dockerised application that with minimal configuration will allow you to integrate the Sajari search service with a Google product feed.
This application uses Gradle as a build tool. Simply run gradle build
to build the project, or if using Docker
you can run the Docker file.
You will need to create a gradle.properties with a valid Github personal access token with package access. More information is available here using a published package and here creating a personal access token
gpr.user=githubusername
gpr.key=ghp_personal_access_token
Update the application.yml to correctly reference your Sajari collection and with the appropriate collection-id, key-id and key-secret. You will also need to provide a reference to the Google Product Feed. These can be passed to the application as environment variables key.id, key.secret, collection.id etc.
sajari:
key-id: ${key.id}
key-secret: ${key.secret}
collection-id: ${collection.id}
api-url: https://api-gateway.sajari.com
customer:
google-product-feed-url: ${google.product.feed.url}
sweep-stale-data: ${sweep.stale.data}
These can also be passed as environment variables:
Key | Value |
---|---|
key.id | See Console credentials page |
key.secret | See Console credentials page |
collection.id | The Sajari collection id you are working with |
google.product.feed.url | Google product feed endpoint |
sweep.stale.data | 'true' if the service should delete old recrods |
This application can be deployed as a Docker container to a service of your choice.
Attached to this project is an example deployment configuration using a GitHub action triggered when you create a GitHub release. Look at the following action for more details: main.yml