Skip to content

Commit

Permalink
add initial plugin example (#998)
Browse files Browse the repository at this point in the history
* add initial plugin example

* revert back testing changes

* clean up changes

* fix Dockerfile
  • Loading branch information
ricopinazo authored Jun 1, 2023
1 parent e0289d0 commit 37c4036
Show file tree
Hide file tree
Showing 15 changed files with 2,854 additions and 318 deletions.
136 changes: 4 additions & 132 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ members = [
"python",
"py-raphtory",
"js-raphtory",
"raphtory-graphql"
"raphtory-graphql",
]
default-members = ["raphtory"]

Expand Down
13 changes: 4 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,13 @@ FROM rust:1.67.1 AS builder
WORKDIR /app

COPY Cargo.toml Cargo.lock ./
RUN sed -i '/raphtory-benchmark/d' Cargo.toml
RUN sed -i '/examples\/rust/d' Cargo.toml
RUN sed -i '/python/d' Cargo.toml
RUN sed -i '/py-raphtory/d' Cargo.toml
RUN sed -i '/default-members/d' Cargo.toml
RUN sed -i '/members = \[/,/\]/c\members = ["raphtory", "raphtory-graphql"]' Cargo.toml

WORKDIR /app/raphtory
COPY raphtory/Cargo.toml ./
RUN mkdir src && echo "fn main() {}" > src/main.rs

WORKDIR /app/raphtory-io
COPY raphtory-io/Cargo.toml ./
RUN mkdir src && echo "fn main() {}" > src/main.rs

WORKDIR /app/raphtory-graphql
COPY raphtory-graphql/Cargo.toml ./
RUN mkdir src && echo "fn main() {}" > src/main.rs
Expand All @@ -24,7 +18,6 @@ WORKDIR /app
RUN cargo build --release --workspace

COPY raphtory ./raphtory
COPY raphtory-io ./raphtory-io
COPY raphtory-graphql ./raphtory-graphql

WORKDIR /app/raphtory-graphql
Expand All @@ -42,4 +35,6 @@ COPY --from=builder /app/target/release/raphtory-graphql /app

EXPOSE 1736

ENV GRAPH_DIRECTORY=graphs

CMD ["./raphtory-graphql"]
Loading

0 comments on commit 37c4036

Please sign in to comment.