Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from oSoMoN/dockerfile-compose
Containerize PaSe into a pair of Docker containers
- Loading branch information
Showing
7 changed files
with
15,132 additions
and
11,880 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,5 @@ | ||
# Path to the directory containing the sources to index on the host | ||
SRCDIR=/usr/src | ||
|
||
# Path to the index directory on the host | ||
INDEXDIR=/var/cache/pase |
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
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,14 @@ | ||
FROM registry.suse.com/bci/openjdk-devel:11 AS builder | ||
WORKDIR /src | ||
COPY . . | ||
RUN zypper -n refresh | ||
RUN zypper -n install npm | ||
RUN npm install ./frontend | ||
RUN ./build.sh | ||
|
||
FROM registry.suse.com/bci/openjdk:11 | ||
LABEL description="Pa(tch)Se(arch) is an experimental search engine for code allowing search by patch." | ||
LABEL version="0.1" | ||
WORKDIR /opt/pase | ||
COPY --from=builder /src/target/pase-*.jar pase.jar | ||
ENTRYPOINT ["java", "-jar", "pase.jar"] |
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
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,14 @@ | ||
services: | ||
indexer: | ||
build: . | ||
volumes: | ||
- ${SRCDIR}:/src | ||
- ${INDEXDIR}:/index | ||
command: ["index", "/src", "/index"] | ||
server: | ||
build: . | ||
volumes: | ||
- ${INDEXDIR}:/index | ||
command: ["serve", "/index"] | ||
ports: | ||
- "4567:4567" |
Oops, something went wrong.