Skip to content

Commit

Permalink
Merge pull request #43 from nebula-contrib/serverless
Browse files Browse the repository at this point in the history
feat: add nebulagraph-lite prebuild container
  • Loading branch information
wey-gu authored Mar 6, 2024
2 parents 0d624a6 + cbaeda4 commit 61b20bd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
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

0 comments on commit 61b20bd

Please sign in to comment.