Clean up containers (#201)
This commit is contained in:
parent
45ef069372
commit
945bbfdc49
@ -106,6 +106,8 @@ case $1 in
|
|||||||
# Copy Memgraph binary.
|
# Copy Memgraph binary.
|
||||||
for iter in $(seq 1 "$JEPSEN_ACTIVE_NODES_NO"); do
|
for iter in $(seq 1 "$JEPSEN_ACTIVE_NODES_NO"); do
|
||||||
jepsen_node_name="jepsen-n$iter"
|
jepsen_node_name="jepsen-n$iter"
|
||||||
|
# Cleanup the node folder with previous binaries.
|
||||||
|
docker exec "$jepsen_node_name" rm -rf /opt/memgraph/
|
||||||
docker exec "$jepsen_node_name" mkdir -p /opt/memgraph
|
docker exec "$jepsen_node_name" mkdir -p /opt/memgraph
|
||||||
docker cp "$binary_path" "$jepsen_node_name":/opt/memgraph/"$binary_name"
|
docker cp "$binary_path" "$jepsen_node_name":/opt/memgraph/"$binary_name"
|
||||||
docker exec "$jepsen_node_name" bash -c "rm -f /opt/memgraph/memgraph && ln -s /opt/memgraph/$binary_name /opt/memgraph/memgraph"
|
docker exec "$jepsen_node_name" bash -c "rm -f /opt/memgraph/memgraph && ln -s /opt/memgraph/$binary_name /opt/memgraph/memgraph"
|
||||||
|
Loading…
Reference in New Issue
Block a user