Skip to content

Commit

Permalink
requirements and docker with readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gdagil committed Nov 8, 2022
1 parent 96fdd9f commit 37ed0ca
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 38 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,28 @@
| `-- st_utils.py
`-- docker-compose.yaml
```

### Запуск
Перед запуском убедитесь, что в системе установлен `docker` и `docker-compose` коомандами:

```bash
sudo docker --version
sudo docker-compose --version
```

Далее проверьте, запущен ли демон `docker`
```bash
sudo docker ps
```

Тогда можно поднимать сервис

```bash
docker run -p 8080:8080 danil2286/cg-streamlit
```

---

## Лабораторная работа № 1
Тема: Построение изображений 2D- кривых.

Expand Down
2 changes: 1 addition & 1 deletion app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ RUN pip install -r requirements.txt
COPY . .
EXPOSE 8080

ENTRYPOINT ["streamlit", "run", "main.py", "--server.port=8080", "--server.address=0.0.0.0"]
ENTRYPOINT ["streamlit", "run", "main.py", "--server.port=8080", "--server.address=0.0.0.0", "--browser.gatherUsageStats=False"]
42 changes: 23 additions & 19 deletions app/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,52 +1,56 @@
altair==4.2.0
attrs==22.1.0
blinker==1.5
bokeh==2.4.3
cachetools==5.2.0
certifi==2022.9.24
charset-normalizer==2.1.1
click==8.1.3
colorama==0.4.5
colorama==0.4.6
commonmark==0.9.1
contourpy==1.0.6
decorator==5.1.1
entrypoints==0.4
gitdb==4.0.9
GitPython==3.1.27
GitPython==3.1.29
idna==3.4
importlib-metadata==4.12.0
importlib-metadata==5.0.0
Jinja2==3.1.2
jsonschema==4.16.0
jsonschema==4.17.0
MarkupSafe==2.1.1
numpy==1.23.3
numpy==1.23.4
packaging==21.3
pandas==1.5.0
Pillow==9.2.0
plotly==5.10.0
protobuf==3.20.1
pyarrow==9.0.0
pandas==1.5.1
Pillow==9.3.0
plotly==5.11.0
protobuf==3.20.3
pyarrow==10.0.0
pydantic==1.10.2
pydeck==0.8.0b3
pydeck==0.8.0
Pygments==2.13.0
Pympler==1.0.1
pyparsing==3.0.9
pyrsistent==0.18.1
pyrsistent==0.19.2
python-dateutil==2.8.2
pytz==2022.2.1
pytz==2022.6
pytz-deprecation-shim==0.1.0.post0
PyYAML==6.0
requests==2.28.1
rich==12.5.1
rich==12.6.0
scipy==1.9.3
semver==2.13.0
six==1.16.0
smmap==5.0.0
streamlit==1.13.0
streamlit==1.14.0
tenacity==8.1.0
toml==0.10.2
toolz==0.12.0
tornado==6.2
typing_extensions==4.3.0
tzdata==2022.4
typing_extensions==4.4.0
tzdata==2022.6
tzlocal==4.2
urllib3==1.26.12
validators==0.20.0
watchdog==2.1.9
zipp==3.8.1
bokeh==2.4.3
xyzservices==2022.9.0
zipp==3.10.0
24 changes: 6 additions & 18 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
version: '3.9'


networks:
traefik-proxy:
external: true


services:
statistics:
container_name: gdagil-labs
build:
context: ./app
dockerfile: Dockerfile
image: danil2286/cg-streamlit:latest
# build:
# context: ./app
# dockerfile: Dockerfile
restart: always
networks:
- traefik-proxy
labels:
- traefik.enable=true
- traefik.http.routers.backend-statistics.entrypoints=web-secure
- traefik.http.routers.backend-statistics.rule=(Host(`some_host`)
- traefik.http.routers.backend-statistics.tls.certresolver=letsencrypt
- traefik.http.services.backend-statistics.loadbalancer.server.port=8501
- traefik.docker.network=traefik-proxy
ports:
- 8080:8080

0 comments on commit 37ed0ca

Please sign in to comment.