mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-25 20:33:35 +00:00
673da6312b
Add --token parameter to easyinstall.sh Add --skip-token parameter to easyinstall.sh Install required apt packages explicitly (--no-install-recommends) Allow standalone RaSCSI and web UI installations to specify an auth token Add development mode to web UI (web/start.sh --dev-mode) Initial Docker-based development environment for Python and web UI Bump protobuf version Workaround for Flask development server and asyncio incompatibility Build Python protobuf interface on container launch, if it doesn’t exist Allow containers to be configured with environment variables, add support for token authentication Move web UI live editing setup out of main Docker Compose config Update dockerignore to exclude by default Update README Add OS_DISTRO, OS_VERSION and OS_ARCH build args Allow extracted files to be moved to target when crossing a filesystem boundary Reduce noise from watchmedo auto-restarts Update Docker tag structure to rascsi:{build}-{platform}-{variant} Prevent Docker Compose from attempting to pull images from Docker registry Add workaround for issue #821 Allow container processes to be stopped with Ctrl+C Update README, bind to ports 8080/8443 on the Docker host by default Update README to clarify audience and no board connectivity Add AIBOM and GAMERNIUM to --connect_type validation Update cfilesystem.patch following rebase
20 lines
536 B
Bash
20 lines
536 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/src/raspberrypi \
|
|
--python_out=/home/pi/RASCSI/python/common/src \
|
|
rascsi_interface.proto
|
|
fi
|
|
|
|
# Start Nginx service
|
|
nginx
|
|
|
|
# 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
|