Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add nebulagraph-lite prebuild container #43

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- main
paths-ignore:
- 'README.md'
- 'examples/**'
- 'Dockerfile'
- 'tools/**'
- 'design/**'
workflow_call:

jobs:
Expand Down
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM python:3.8-slim

# Set work directory
WORKDIR /app

# Install curl and nebulagraph-lite
RUN apt-get update && apt-get install -y curl which && \
pip install nebulagraph-lite && \
nebulagraph --container start && \
nebulagraph --container stop

# Expose port 9559, 9669, 9779 for NebulaGraph
EXPOSE 9559 9669 9779

# Start NebulaGraph
CMD ["nebulagraph", "--container", "start"]

# How to run it
# docker build -t nebulagraph-lite .
# docker run -p 9669:9669 nebulagraph-lite
Loading