mirror of
https://github.com/thilo-behnke/wasm-pong.git
synced 2026-02-14 14:39:51 +00:00
25 lines
525 B
Bash
Executable File
25 lines
525 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
echo "Environment prepared."
|
|
|
|
echo "Hack for copying the main cargo.lock into the workspace members"
|
|
cp Cargo.toml ./pong/
|
|
cp Cargo.toml ./server/
|
|
|
|
echo "Copy local dependencies into components."
|
|
cp -r ./pong ./client/wasm/
|
|
cp -r ./pong ./server/
|
|
|
|
echo "Start docker containers."
|
|
docker-compose down
|
|
docker-compose up -d --build --force-recreate
|
|
|
|
echo "Remove temporary local dependencies from components."
|
|
rm -rf ./client/wasm/pong
|
|
rm -rf ./server/pong
|
|
|
|
echo "Initialize kafka."
|
|
./init-kafka.sh
|