mirror of
https://github.com/akuker/RASCSI.git
synced 2024-05-28 09:41:33 +00:00
88ff542aeb
- Fixed ignore patterns in .dockerignore - Added healthchecks to backend and web containers - Reduced Docker image sizes - Removed RaSCSI references in various areas (e.g. rascsi -> backend) - Added compilation-only step to easyinstall.sh - Moved apt package lists to variables - Revert to triggering GitHub Actions runs on push - Updated web/frontend_checks workflow to run black and flake8 against all Python sources - Capture log files from backend/web containers - Fix None to float conversion bug when user agent is absent or unrecognised
23 lines
601 B
Bash
23 lines
601 B
Bash
#!/usr/bin/env bash
|
|
|
|
if ! [[ -f "/home/pi/RASCSI/python/common/src/rascsi_interface_pb2.py" ]]; then
|
|
# Build rascsi_interface_pb2.py with the protobuf compiler
|
|
protoc \
|
|
-I=/home/pi/RASCSI/cpp \
|
|
--python_out=/home/pi/RASCSI/python/common/src \
|
|
rascsi_interface.proto
|
|
fi
|
|
|
|
# Start Nginx service
|
|
nginx
|
|
|
|
# Use mock commands
|
|
export PATH="/home/pi/RASCSI/python/web/mock/bin:$PATH"
|
|
|
|
# Pass args to web UI start script
|
|
if [[ $RASCSI_PASSWORD ]]; then
|
|
/home/pi/RASCSI/python/web/start.sh "$@" --password=$RASCSI_PASSWORD
|
|
else
|
|
/home/pi/RASCSI/python/web/start.sh "$@"
|
|
fi
|