mirror of
https://github.com/Screenly/Anthias.git
synced 2025-12-23 22:38:05 -05:00
Install python-is-python3 so that python will point to python3 (#2036)
This commit is contained in:
@@ -47,6 +47,6 @@ EOF
|
||||
|
||||
if [ "$START_SERVER" = true ]; then
|
||||
cd /usr/src/app
|
||||
python3 server.py &
|
||||
python server.py &
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
@@ -23,10 +23,10 @@ if [ -n "${MANAGEMENT_USER+x}" ] && [ -n "${MANAGEMENT_PASSWORD+x}" ]; then
|
||||
fi
|
||||
|
||||
echo "Running migration..."
|
||||
python3 ./bin/migrate.py
|
||||
python ./bin/migrate.py
|
||||
|
||||
if [[ "$ENVIRONMENT" == "development" ]]; then
|
||||
flask --app server.py run --debug --reload --host 0.0.0.0 --port 8080
|
||||
else
|
||||
python3 server.py
|
||||
python server.py
|
||||
fi
|
||||
|
||||
@@ -39,7 +39,7 @@ trap '' 16
|
||||
echo 0 > /sys/fs/cgroup/memory/memory.swappiness
|
||||
|
||||
# Start viewer
|
||||
sudo -E -u viewer dbus-run-session python3 viewer.py &
|
||||
sudo -E -u viewer dbus-run-session python viewer.py &
|
||||
|
||||
# Wait for the viewer
|
||||
while true; do
|
||||
|
||||
@@ -31,7 +31,7 @@ while [[ true ]]; do
|
||||
echo "Skipping setting up Wifi-Connect Access Point."
|
||||
|
||||
if [[ "$IS_CONNECTED" = 'false' ]]; then
|
||||
python3 send_zmq_message.py --action='show_splash'
|
||||
python send_zmq_message.py --action='show_splash'
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -41,7 +41,7 @@ while [[ true ]]; do
|
||||
echo "Connect to the Access Point and configure the SSID and Passphrase for the network to connect to."
|
||||
|
||||
if [[ "$IS_CONNECTED" = '' ]]; then
|
||||
python3 send_zmq_message.py --action='setup_wifi'
|
||||
python send_zmq_message.py --action='setup_wifi'
|
||||
fi
|
||||
|
||||
IS_CONNECTED='false'
|
||||
|
||||
@@ -32,6 +32,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
|
||||
python3-pip \
|
||||
python3-setuptools \
|
||||
python3-simplejson \
|
||||
python-is-python3 \
|
||||
sqlite3
|
||||
|
||||
# Works around issue with `curl`
|
||||
|
||||
@@ -103,6 +103,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
|
||||
python3-netifaces \
|
||||
python3-pip \
|
||||
python3-setuptools \
|
||||
python-is-python3 \
|
||||
ttf-wqy-zenhei \
|
||||
vlc \
|
||||
sqlite3
|
||||
|
||||
@@ -12,4 +12,4 @@ ENV GIT_HASH=$GIT_HASH
|
||||
ENV GIT_SHORT_HASH=$GIT_SHORT_HASH
|
||||
ENV GIT_BRANCH=$GIT_BRANCH
|
||||
|
||||
CMD ["python3", "websocket_server_layer.py"]
|
||||
CMD ["python", "websocket_server_layer.py"]
|
||||
|
||||
Reference in New Issue
Block a user