generated from specklesystems/speckle_automate_python_example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rework docker image to run blender headless
- Loading branch information
1 parent
98860ec
commit a2f5a9c
Showing
3 changed files
with
22 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
FROM linuxserver/blender | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt update && \ | ||
apt install python3-pip && \ | ||
apt install unzip && \ | ||
pip install poetry | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update | ||
RUN apt install -y tar wget blender python3-pip | ||
|
||
RUN pip3 install poetry | ||
|
||
COPY . . | ||
RUN poetry export -f requirements.txt --output requirements.txt && pip install -r requirements.txt | ||
|
||
RUN curl -o blender-connector.zip https://github.com/specklesystems/speckle-blender/archive/refs/tags/2.16.0-rc1.zip && \ | ||
unzip blender-connector.zip -d "$HOME/.config/blender/3.3/" | ||
# RUN mkdir -p $HOME/.config/blender/3.0/scripts/addons | ||
RUN wget -O blender-connector.zip https://releases.speckle.dev/installers/blender/bpy_speckle-2.17.0-alpha2.zip | ||
RUN blender --background --python installation/connector.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import os | ||
|
||
import bpy | ||
|
||
bpy.ops.preferences.addon_install(filepath="/blender-connector.zip") | ||
bpy.ops.preferences.addon_enable(module="bpy_speckle") | ||
bpy.ops.wm.save_userpref() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters