Skip to content

Commit

Permalink
Switch the use from "linera-db" to "linera storage".
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuDutSik committed Nov 12, 2024
1 parent 574375e commit eb67463
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,15 @@ RUN cargo build --release \
--bin linera \
--bin linera-proxy \
--bin linera-server \
--bin linera-db \
--features scylladb,metrics

RUN mv \
target/"$target"/release/linera \
target/"$target"/release/linera-proxy \
target/"$target"/release/linera-server \
target/"$target"/release/linera-db \
./

RUN strip linera linera-proxy linera-server linera-db
RUN strip linera linera-proxy linera-server

# Optionally copy binaries instead of using the build images above
FROM scratch AS builder_copy
Expand All @@ -80,7 +78,6 @@ COPY \
"$binaries"/linera \
"$binaries"/linera-server \
"$binaries"/linera-proxy \
"$binaries"/linera-db \
./

FROM builder$copy AS binaries
Expand All @@ -105,7 +102,6 @@ COPY --from=binaries \
linera \
linera-server \
linera-proxy \
linera-db \
./

COPY --chmod=755 \
Expand Down
2 changes: 1 addition & 1 deletion docker/compose-server-init.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

while true; do
./linera-db check_existence --storage "scylladb:tcp:scylla:9042"
./linera storage check_existence --storage "scylladb:tcp:scylla:9042"
status=$?

if [ $status -eq 0 ]; then
Expand Down
2 changes: 1 addition & 1 deletion docker/proxy-init.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

while true; do
./linera-db check_existence --storage "scylladb:tcp:scylla-client.scylla.svc.cluster.local:9042"
./linera storage check_existence --storage "scylladb:tcp:scylla-client.scylla.svc.cluster.local:9042"
status=$?

if [ $status -eq 0 ]; then
Expand Down
2 changes: 1 addition & 1 deletion docker/server-init.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

while true; do
./linera-db check_existence --storage "scylladb:tcp:scylla-client.scylla.svc.cluster.local:9042"
./linera storage check_existence --storage "scylladb:tcp:scylla-client.scylla.svc.cluster.local:9042"
status=$?

if [ $status -eq 0 ]; then
Expand Down

0 comments on commit eb67463

Please sign in to comment.