mirror of
https://github.com/pacnpal/simpleguardhome.git
synced 2025-12-20 04:21:13 -05:00
feat(docker): add diagnostic output for package installation and import verification
This commit is contained in:
@@ -31,6 +31,8 @@ COPY . .
|
|||||||
RUN pip uninstall -y simpleguardhome || true && \
|
RUN pip uninstall -y simpleguardhome || true && \
|
||||||
pip install -e . && \
|
pip install -e . && \
|
||||||
pip show simpleguardhome && \
|
pip show simpleguardhome && \
|
||||||
|
pip list && \
|
||||||
|
python3 -c "import sys; print('Python path:', sys.path)" && \
|
||||||
python3 -c "import simpleguardhome; print('Package found at:', simpleguardhome.__file__)"
|
python3 -c "import simpleguardhome; print('Package found at:', simpleguardhome.__file__)"
|
||||||
|
|
||||||
# Copy and set up entrypoint script
|
# Copy and set up entrypoint script
|
||||||
|
|||||||
@@ -12,9 +12,14 @@ handle_term() {
|
|||||||
# Set up signal handlers
|
# Set up signal handlers
|
||||||
trap handle_term SIGTERM SIGINT
|
trap handle_term SIGTERM SIGINT
|
||||||
|
|
||||||
# Verify package can be imported
|
# Print diagnostic information
|
||||||
echo "Verifying package installation..."
|
echo "Verifying package installation..."
|
||||||
python3 -c "import simpleguardhome" || exit 1
|
echo "Python path:"
|
||||||
|
python3 -c "import sys; print('\n'.join(sys.path))"
|
||||||
|
echo "Installed packages:"
|
||||||
|
pip list
|
||||||
|
echo "Attempting to import simpleguardhome..."
|
||||||
|
python3 -c "import simpleguardhome; print('Successfully imported simpleguardhome')" || exit 1
|
||||||
|
|
||||||
# Start the application
|
# Start the application
|
||||||
echo "Starting SimpleGuardHome server..."
|
echo "Starting SimpleGuardHome server..."
|
||||||
|
|||||||
Reference in New Issue
Block a user