The main readme is up one level.
- Jedis and Spring version
- Spring pull request including Jedis 4.x
- Spring 3.0 SNAPSHOT
- GitHub deploying this java application with redis enterprise on AWS
You can run build and run the application from docker using the following commands:
cd java-redis
docker-compose build
docker-compose up -dThis command will create a new image and build the maven project into it.
The docker image used in k8s/stock.yaml is jphaugla/redis-searchstock:latest If building own image, have docker login, change to personal docker account and change the stock.yaml To build different version of the docker image: docker-compose build, docker tag, docker publish
cd python
docker login
docker-compose build
docker image tag jedis-searchstock:latest jphaugla/jedis-searchstock:latest
docker image push jphaugla/jedis-searchstock:latest- turn off the docker container so can run locally
docker stop jedis-stock- install java
- set java home
sudo yum install java-17-openjdk
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk- download and install maven following these steps - NOTE: yum installs older version
- this worked with java 17
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
export M2_HOME=/opt/maven
export MAVEN_HOME=/opt/maven
export PATH=${M2_HOME}/bin:${PATH}mkdir binaries
cd binaries
apt install openjdk-18-jdk openjdk-18-jre
cat <<EOF | sudo tee /etc/profile.d/jdk18.sh
export JAVA_HOME=/usr/lib/jvm/java-18-openjdk-amd64
EOF- download and install maven flollowing these steps Note: apt-get installs older version
The IP address for the API call is set to localhost. This must be changed for the IP address of the application server. The index.html file is at index.html replace all occurrences of localhost with the public ip address of the application server machine
cd java-jedis
mvn clean packageedit the app.env appropriately for desires and environment
source ../scripts/app.env
java -jar target/redisearch-0.0.1-SNAPSHOT.jar