-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update docker naming and offline mode
- Loading branch information
1 parent
e97a202
commit 9538455
Showing
5 changed files
with
17 additions
and
22 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,22 +1,15 @@ | ||
# docker build -t kmeans_service:latest . | ||
FROM fedora | ||
# Lock in a python version because of some backward compatability issues | ||
RUN dnf update -y \ | ||
&& dnf install -y \ | ||
python3.9 \ | ||
g++ \ | ||
gcc \ | ||
git \ | ||
&& dnf clean all | ||
FROM python:3.10 | ||
|
||
RUN python3.9 -m ensurepip --upgrade | ||
RUN pip3 install 'bluesky-adaptive[all]' | ||
RUN pip3 install bluesky-adaptive | ||
RUN pip3 install uvicorn fastapi caproto nslsii | ||
RUN pip3 install git+https://github.com/NSLS-II-PDF/pdf-agents.git@main | ||
RUN pip3 install git+https://github.com/NSLS-II-PDF/pdf-agents.git@enh-container-service | ||
RUN pip3 install git+https://github.com/bluesky/[email protected]#egg=databroker | ||
RUN pip3 install scikit-learn | ||
|
||
COPY kmeans_service.py /src/kmeans_service.py | ||
|
||
ENV BS_AGENT_STARTUP_SCRIPT_PATH=/src/kmeans_service.py | ||
ENV OFFLINE_MODE="TRUE" | ||
|
||
CMD uvicorn bluesky_adaptive.server:app --host 127.0.0.1 --port 60610 | ||
CMD uvicorn bluesky_adaptive.server:app --host 127.0.0.1 --port 60610 |
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,2 +1,2 @@ | ||
docker build -t kmeans_service:latest . | ||
docker-compose up | ||
docker build -t kmeans-service:pdf . | ||
docker-compose up |
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,8 +1,8 @@ | ||
version: '3' | ||
services: | ||
your-service: | ||
image: kmeans_service:latest | ||
kmeans-service: | ||
image: kmeans-service:pdf | ||
ports: | ||
- 60281:60610 | ||
volumes: | ||
- /etc/bluesky:/etc/bluesky | ||
- /etc/bluesky:/etc/bluesky |
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