Install python-is-python3 so that python will point to python3 (#2036)

This commit is contained in:
Nico Miguelino
2024-08-27 07:41:04 -07:00
committed by GitHub
parent 3ca8d4e2b0
commit 6d02fbe89b
7 changed files with 9 additions and 7 deletions

View File

@@ -47,6 +47,6 @@ EOF
if [ "$START_SERVER" = true ]; then
cd /usr/src/app
python3 server.py &
python server.py &
sleep 3
fi

View File

@@ -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

View File

@@ -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

View File

@@ -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'

View File

@@ -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`

View File

@@ -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

View File

@@ -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"]