-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: compose, readme, and dockerfile for qt gui
- Loading branch information
1 parent
7a130b5
commit f686ffe
Showing
4 changed files
with
64 additions
and
2 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
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
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,26 @@ | ||
FROM jozo/pyqt5 | ||
|
||
# Upgrade pip and setuptools | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
python3-pip \ | ||
python3-setuptools \ | ||
python3-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN pip3 install --upgrade pip setuptools | ||
|
||
# Install bluesky-widgets and its dependencies | ||
RUN pip3 install bluesky-queueserver bluesky-queueserver-api | ||
RUN pip3 install 'bluesky-widgets[complete]' | ||
|
||
ENV QSERVER_ZMQ_CONTROL_ADDRESS=tcp://127.0.0.1:60615 | ||
ENV QSERVER_ZMQ_INFO_ADDRESS=tcp://127.0.0.1:60625 | ||
|
||
# Copy entrypoint script | ||
COPY entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|
||
# VNC viewer | ||
EXPOSE 5901 | ||
|
||
ENTRYPOINT [ "/entrypoint.sh" ] |
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,11 @@ | ||
#!/bin/bash | ||
|
||
# echo "Starting VNC server..." | ||
# # Setup VNC server | ||
# Xvfb :1 -screen 0 2560x1440x16 & | ||
# x11vnc -rfbport 5901 -bg -quiet -forever -shared -display :1 | ||
|
||
echo "Starting queue-monitor GUI..." | ||
echo "Control address: $QSERVER_ZMQ_CONTROL_ADDRESS" | ||
echo "Publish address: $QSERVER_ZMQ_INFO_ADDRESS" | ||
queue-monitor |