Skip to content

Commit

Permalink
docker-compose yml file updated 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ASabovic committed Sep 30, 2024
1 parent e3fc596 commit 154aa63
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ services:
container_name: yottadb_container
environment:
- ydb_dir=/data/yottadb
- gtmdir=/data/yottadb # Set GT.M dir to match YottaDB dir
volumes:
- yotta_data:/data/yottadb
command: >
command: >
bash -c "
source /usr/local/lib/yottadb/r1.32_x86_64/ydb_env_set &&
. /usr/local/lib/yottadb/r1.32_x86_64/ydb_env_set &&
ydb <<< \"D ^GDE\" &&
ydb <<< \"D ^ZSY\" &&
while true; do sleep 1000; done;
Expand All @@ -25,8 +26,9 @@ services:
- yotta_data:/data/yottadb
entrypoint: ["/bin/bash", "-c"]
command: >
source /usr/local/lib/yottadb/r1.32_x86_64/ydb_env_set &&
. /usr/local/lib/yottadb/r1.32_x86_64/ydb_env_set &&
ydb <<< "SET ^myglobal(\"test\")=\"Hello, YottaDB!\"" &&
echo 'Value set in YottaDB: ^myglobal(test) = Hello, YottaDB!'
volumes:
yotta_data:

0 comments on commit 154aa63

Please sign in to comment.