Skip to content

Commit 02c7099

Browse files
committed
Configure default entrypoint to run virtac
Install virtac into a virtual environment, make it run on simulation CA ports and start it in verbose mode. The environment and entrypoint and cmd can be overwritten when running the container
1 parent d0317c0 commit 02c7099

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
88
graphviz \
99
&& rm -rf /var/lib/apt/lists/*
1010

11+
WORKDIR /virtac
12+
COPY . /virtac/
13+
1114
# Set up a virtual environment and put it in PATH
1215
RUN python -m venv /venv
1316
ENV PATH=/venv/bin:$PATH
17+
RUN pip install .
18+
19+
ENV EPICS_CA_SERVER_PORT=8064
20+
ENV EPICS_CA_REPEATER_PORT=8065
21+
22+
ENTRYPOINT [ "virtac" ]
23+
CMD ["-v"]

0 commit comments

Comments
 (0)