Skip to content

Commit

Permalink
docker-compose yml file updated 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ASabovic committed Sep 30, 2024
1 parent c6c4132 commit e3fc596
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ services:
- ydb_dir=/data/yottadb
volumes:
- yotta_data:/data/yottadb
command: |
command: >
bash -c "
source /usr/local/lib/yottadb/r1.32_x86_64/ydb_env_set;
ydb -run ^GDE;
ydb -run ^ZSY;
source /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 @@ -24,11 +24,9 @@ services:
volumes:
- yotta_data:/data/yottadb
entrypoint: ["/bin/bash", "-c"]
command: |
"
command: >
source /usr/local/lib/yottadb/r1.32_x86_64/ydb_env_set &&
ydb -run SET ^myglobal('test')='Hello, YottaDB!' &&
ydb <<< "SET ^myglobal(\"test\")=\"Hello, YottaDB!\"" &&
echo 'Value set in YottaDB: ^myglobal(test) = Hello, YottaDB!'
"
volumes:
yotta_data:

0 comments on commit e3fc596

Please sign in to comment.