Skip to content

Commit b2fd321

Browse files
chriswmackeyChris Mackey
authored andcommitted
fix(docker): Include VTK dependencies in dockerfile
1 parent 5b8fa71 commit b2fd321

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENV LIBRARYDIR="${HOMEDIR}/lib"
88
ENV RUNDIR="${HOMEDIR}/run"
99

1010
RUN apt-get update \
11-
&& apt-get -y install --no-install-recommends git \
11+
&& apt-get -y install ffmpeg libsm6 libxext6 xvfb --no-install-recommends git \
1212
&& apt-get clean \
1313
&& rm -rf /var/lib/apt/lists/*
1414

@@ -28,7 +28,7 @@ COPY README.md ${LIBRARYDIR}
2828
COPY LICENSE ${LIBRARYDIR}
2929

3030
USER root
31-
RUN pip3 install --no-cache-dir setuptools wheel\
31+
RUN pip3 install --no-cache-dir setuptools wheel xvfbwrapper \
3232
&& pip3 install --no-cache-dir ${LIBRARYDIR}[full] \
3333
&& apt-get -y --purge remove git \
3434
&& apt-get -y clean \

honeybee_display/cli/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ def display():
8787
type=str, default='Surface', show_default=True)
8888
@click.option(
8989
'--output-format', '-of', help='Text for the output format of the resulting '
90-
'VisualizationSet File (.vsf). Choose from: json, pkl, vtkjs. Note that '
91-
'ladybug-vtk must be installed in order for the vtkjs option to be usable. Also '
92-
'note that the vtkjs option requires an explicit --output-file to be specified.',
93-
type=str, default='json', show_default=True)
90+
'VisualizationSet File (.vsf). Choose from: vsf, pkl, vtkjs. Note that vsf .'
91+
'refers to the JSON version of the VisualizationSet file. Also not that '
92+
'ladybug-vtk must be installed in order for the vtkjs option to be usable. '
93+
'The vtkjs option also requires an explicit --output-file to be specified.',
94+
type=str, default='vsf', show_default=True)
9495
@click.option(
9596
'--output-file', help='Optional file to output the JSON string of '
9697
'the config object. By default, it will be printed out to stdout',
@@ -110,7 +111,7 @@ def model_to_vis_set(
110111
room_text_labels=text_labels, face_text_labels=text_labels,
111112
grid_data_path=grid_data, grid_display_mode=grid_display_mode)
112113
output_format = output_format.lower()
113-
if output_format == 'json':
114+
if output_format in ('vsf', 'json'):
114115
output_file.write(json.dumps(vis_set.to_dict()))
115116
elif output_format == 'pkl':
116117
if output_file.name != '<stdout>':

0 commit comments

Comments
 (0)