From fa65c54d2592d90495fc4128df63f195e0e2fa3f Mon Sep 17 00:00:00 2001 From: Adam Hevenor Date: Fri, 18 Oct 2024 14:58:24 -0600 Subject: [PATCH 1/3] change docker image location --- prism-image-search/docker-compose.yml | 2 +- quote-semantic-search/docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prism-image-search/docker-compose.yml b/prism-image-search/docker-compose.yml index 8ebbe1e..40150b7 100644 --- a/prism-image-search/docker-compose.yml +++ b/prism-image-search/docker-compose.yml @@ -33,7 +33,7 @@ services: timeout: 20s retries: 10 app: - image: prism:latest + image: aerospike/prism-search-example:latest depends_on: avs: condition: service_healthy diff --git a/quote-semantic-search/docker-compose.yml b/quote-semantic-search/docker-compose.yml index acdfed6..0143fed 100644 --- a/quote-semantic-search/docker-compose.yml +++ b/quote-semantic-search/docker-compose.yml @@ -35,7 +35,7 @@ services: timeout: 20s retries: 10 app: - image: quote-search + image: aerospike/quote-search-example:latest depends_on: avs: condition: service_healthy From 20e89d7b82ec8965b6d2fb406725087075d7f885 Mon Sep 17 00:00:00 2001 From: Adam Hevenor Date: Fri, 25 Oct 2024 09:44:58 -0600 Subject: [PATCH 2/3] add example image --- .../prism/images/static/data/avs.png | Bin 0 -> 1840 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 prism-image-search/container-volumes/prism/images/static/data/avs.png diff --git a/prism-image-search/container-volumes/prism/images/static/data/avs.png b/prism-image-search/container-volumes/prism/images/static/data/avs.png new file mode 100644 index 0000000000000000000000000000000000000000..c70a759ae5d96a4c30652938b618ce00236f6ddd GIT binary patch literal 1840 zcmV-02haG4P)k7RA_qopAN-6gce zmiC#uxwF0wGrKd>owr~)$t0bf_ukxd@4NTix$l*6&S5!X#j<4mlz0`OYI;P~^!{Z< z97zK}8UT)|nm$ks8Ke^zNUx`#I;%lmDsc`YqX2M2{4p5|E3(PUB%Vdm$yj*U>LHOoD@&MKSuaY) z!es+jG8T@PYf~vK+gx3m#qF@Ue$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CH 3/3] local option --- prism-image-search/README.md | 2 +- prism-image-search/docker-compose-dev.yml | 53 +++++++++++++++++++ quote-semantic-search/README.md | 2 +- quote-semantic-search/docker-compose-dev.yml | 55 ++++++++++++++++++++ 4 files changed, 110 insertions(+), 2 deletions(-) create mode 100644 prism-image-search/docker-compose-dev.yml create mode 100644 quote-semantic-search/docker-compose-dev.yml diff --git a/prism-image-search/README.md b/prism-image-search/README.md index e7037e7..1119174 100644 --- a/prism-image-search/README.md +++ b/prism-image-search/README.md @@ -72,7 +72,7 @@ Add your features.conf file to container-volumes/avs/etc/avs. ### 3. Start the environment ``` -docker compose up +docker compose -f docker-compose-dev.yml up ``` ## Developing diff --git a/prism-image-search/docker-compose-dev.yml b/prism-image-search/docker-compose-dev.yml new file mode 100644 index 0000000..8ebbe1e --- /dev/null +++ b/prism-image-search/docker-compose-dev.yml @@ -0,0 +1,53 @@ +services: + aerospike: + image: aerospike/aerospike-server-enterprise:7.0.0.2 + ports: + - "3000:3000" + networks: + - avs-demo + volumes: + - ./container-volumes/aerospike/etc/aerospike:/opt/aerospike/etc/aerospike + command: + - "--config-file" + - "/opt/aerospike/etc/aerospike/aerospike.conf" + # use this line to store all index and vector data in the default namespace (test) + # - "/opt/aerospike/etc/aerospike/aerospike-single-namespace.conf" + healthcheck: +# test: [ "CMD", "asinfo", "-U", "admin", "-P", "admin", "-p", "3000", "-v", "build" ] + test: [ "CMD", "asinfo", "-p", "3000", "-v", "build" ] + interval: 5s + timeout: 20s + retries: 10 + avs: + image: aerospike/aerospike-vector-search:0.10.0 + depends_on: + aerospike: + condition: service_healthy + networks: + - avs-demo + volumes: + - ./container-volumes/avs/etc/aerospike-vector-search:/etc/aerospike-vector-search + healthcheck: + test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"] + interval: 5s + timeout: 20s + retries: 10 + app: + image: prism:latest + depends_on: + avs: + condition: service_healthy + ports: + - "8080:8080" + networks: + - avs-demo + environment: + AVS_HOST: avs + AVS_PORT: "5000" + APP_NUM_QUOTES: "5000" + GRPC_DNS_RESOLVER: native + volumes: + - ./container-volumes/prism/images:/prism/static/images/data + +networks: + avs-demo: {} diff --git a/quote-semantic-search/README.md b/quote-semantic-search/README.md index 8288ee7..124a041 100644 --- a/quote-semantic-search/README.md +++ b/quote-semantic-search/README.md @@ -62,7 +62,7 @@ Add your features.conf file to container-volumes/avs/etc/aerospike-vector-search ### 3. Start the environment ``` -docker compose up +docker compose -f docker-compose-dev.yml up ``` ## Developing diff --git a/quote-semantic-search/docker-compose-dev.yml b/quote-semantic-search/docker-compose-dev.yml new file mode 100644 index 0000000..e4e38fc --- /dev/null +++ b/quote-semantic-search/docker-compose-dev.yml @@ -0,0 +1,55 @@ +services: + aerospike: + image: aerospike/aerospike-server-enterprise:7.0.0.2 + # ports: + # - "3000:3000" + networks: + - avs-demo + volumes: + - ./container-volumes/aerospike/etc/aerospike:/opt/aerospike/etc/aerospike + command: + - "--config-file" + - "/opt/aerospike/etc/aerospike/aerospike.conf" + # use this line to store all index and vector data in the default namespace (test) + # - "/opt/aerospike/etc/aerospike/aerospike-single-namespace.conf" + healthcheck: +# test: [ "CMD", "asinfo", "-U", "admin", "-P", "admin", "-p", "3000", "-v", "build" ] + test: [ "CMD", "asinfo", "-p", "3000", "-v", "build" ] + interval: 5s + timeout: 20s + retries: 10 + avs: + depends_on: + aerospike: + condition: service_healthy + image: aerospike/aerospike-vector-search:0.10.0 + # ports: + # - "5002:5002" + networks: + - avs-demo + volumes: + - ./container-volumes/avs/etc/aerospike-vector-search:/etc/aerospike-vector-search + healthcheck: + test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"] + interval: 5s + timeout: 20s + retries: 10 + app: + image: quote-search:latest + depends_on: + avs: + condition: service_healthy + ports: + - "8080:8080" + networks: + - avs-demo + volumes: + - ./container-volumes/quote-search/data:/container-volumes/quote-search/data + environment: + AVS_HOST: avs + AVS_PORT: "5000" + APP_NUM_QUOTES: "5000" + GRPC_DNS_RESOLVER: native + +networks: + avs-demo: {} \ No newline at end of file