Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE: Add index to docker file #101048

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ ARG BUILD_FROM
FROM ${BUILD_FROM}

# Synchronize with homeassistant/core.py:async_stop
# Add Home Assistant wheels index for newer versions

ENV \
S6_SERVICES_GRACETIME=220000
S6_SERVICES_GRACETIME=220000 \
EXTRA_INDEX_URL=https://wheels.home-assistant.io/musllinux-index/
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for testing only, remove this in favor of home-assistant/docker#297


ARG QEMU_CPU

Expand All @@ -17,7 +20,7 @@ RUN \
--no-cache-dir \
--no-index \
--only-binary=:all: \
--find-links "${WHEELS_LINKS}" \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For these we can probably use --index-url

--extra-index-url "${EXTRA_INDEX_URL}" \
-r homeassistant/requirements.txt

COPY requirements_all.txt home_assistant_frontend-* home_assistant_intents-* homeassistant/
Expand All @@ -41,7 +44,7 @@ RUN \
--no-cache-dir \
--no-index \
--only-binary=:all: \
--find-links "${WHEELS_LINKS}" \
--extra-index-url "${EXTRA_INDEX_URL}" \
-r homeassistant/requirements_all.txt

## Setup Home Assistant Core
Expand All @@ -51,7 +54,7 @@ RUN \
--no-cache-dir \
--no-index \
--only-binary=:all: \
--find-links "${WHEELS_LINKS}" \
--extra-index-url "${EXTRA_INDEX_URL}" \
-e ./homeassistant \
&& python3 -m compileall \
homeassistant/homeassistant
Expand Down