-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
016cfd7
commit 09a451c
Showing
4 changed files
with
93 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
hyperglass/hyperglass/static | ||
node_modules | ||
.DS_Store | ||
hyperglass/ui/.env* | ||
hyperglass.json | ||
custom.*[js, html] | ||
.next | ||
out/ | ||
fonts/ | ||
__pycache__ | ||
.python-version | ||
.venv | ||
.mypy_cache | ||
.pytest_cache | ||
.ruff_cache | ||
*.so | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
*.rdb | ||
*.py[cod] | ||
.ipynb* |
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,6 +1,7 @@ | ||
# Project | ||
hyperglass/hyperglass/static | ||
TODO* | ||
.env | ||
|
||
test.py | ||
.DS_Store | ||
|
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,30 @@ | ||
FROM python:3.12.2-bookworm as base | ||
WORKDIR /opt/hyperglass | ||
ENV HYPERGLASS_APP_PATH=/etc/hyperglass | ||
ENV HYPERGLASS_HOST=0.0.0.0 | ||
ENV HYPERGLASS_PORT=8001 | ||
ENV HYPERGLASS_DEBUG=false | ||
ENV HYPERGLASS_DEV_MODE=false | ||
ENV HYPERGLASS_REDIS_HOST=redis | ||
ENV HYPEGLASS_DISABLE_UI=true | ||
|
||
# RUN curl -sSf https://rye-up.com/get | RYE_INSTALL_OPTION="--yes" bash | ||
# ENV PATH="${PATH}:$HOME/.rye/shims" | ||
COPY . . | ||
# RUN $HOME/.rye/shims/rye sync | ||
# RUN . ./.venv/bin/activate | ||
RUN pip3 install . | ||
|
||
|
||
FROM base as ui | ||
WORKDIR /opt/hyperglass/hyperglass/ui | ||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - | ||
RUN apt-get install -y nodejs | ||
RUN npm install -g pnpm | ||
RUN pnpm install -P | ||
|
||
FROM ui as hyperglass | ||
WORKDIR /opt/hyperglass | ||
|
||
EXPOSE ${HYPERGLASS_PORT} | ||
CMD ["python3", "-m", "hyperglass.console", "start"] |
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,19 @@ | ||
services: | ||
redis: | ||
image: "redis:alpine" | ||
hyperglass: | ||
depends_on: | ||
- redis | ||
environment: | ||
- HYPERGLASS_APP_PATH=/etc/hyperglass | ||
- HYPERGLASS_HOST=${HYPERGLASS_HOST-0.0.0.0} | ||
- HYPERGLASS_PORT=${HYPERGLASS_PORT-8001} | ||
- HYPERGLASS_DEBUG=${HYPERGLASS_DEBUG-false} | ||
- HYPERGLASS_DEV_MODE=${HYPERGLASS_DEV_MODE-false} | ||
- HYPERGLASS_REDIS_HOST=${HYPERGLASS_REDIS_HOST-redis} | ||
- HYPEGLASS_DISABLE_UI=${HYPEGLASS_DISABLE_UI-false} | ||
build: . | ||
ports: | ||
- "${HYPERGLASS_PORT-8001}:${HYPERGLASS_PORT-8001}" | ||
volumes: | ||
- ${HYPERGLASS_APP_PATH-/etc/hyperglass}:/etc/hyperglass |