-
Notifications
You must be signed in to change notification settings - Fork 6
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
dfd386f
commit 40adf1b
Showing
1 changed file
with
50 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,50 @@ | ||
# docker build -t z210 -f examples/Dockerfile . | ||
# docker run -p 210:9999 z210 | ||
FROM debian:bookworm-slim | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
make \ | ||
gcc \ | ||
libyaz-dev \ | ||
libexpat1-dev \ | ||
zlib1g-dev \ | ||
pkg-config \ | ||
autoconf \ | ||
automake \ | ||
libtool \ | ||
docbook-xsl \ | ||
xsltproc | ||
|
||
COPY m4 m4/ | ||
COPY bfile bfile/ | ||
COPY data1 data1/ | ||
COPY dfa dfa/ | ||
COPY dict dict/ | ||
COPY doc doc/ | ||
COPY etc etc/ | ||
COPY examples examples/ | ||
COPY include include/ | ||
COPY index index/ | ||
COPY isamb isamb/ | ||
COPY isamc isamc/ | ||
COPY isams isams/ | ||
COPY rset rset/ | ||
COPY tab tab/ | ||
COPY test test/ | ||
COPY util util/ | ||
COPY win win/ | ||
COPY buildconf.sh configure.ac Doxyfile.in IDMETA idzebra-config-2.0.in idzebra.spec Makefile.am zebra.pc.in ./ | ||
|
||
RUN ./buildconf.sh | ||
RUN ./configure --with-yaz=pkg | ||
RUN make -j4 | ||
|
||
RUN cd examples/gils && ../../index/zebraidx -d gils update records | ||
RUN cd examples/gils && ../../index/zebraidx -d marc -t grs.marcxml.marc21 update ../marc21/sample-marc | ||
|
||
EXPOSE 9999/tcp | ||
|
||
ENTRYPOINT [ "/app/index/zebrasrv" ] | ||
CMD [ "-w", "/app/examples/gils", "-c", "zebra.cfg", "-T" ] |