Skip to content
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
51 changes: 51 additions & 0 deletions examples/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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 \
inkscape

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" ]
2 changes: 1 addition & 1 deletion examples/gils/zebra.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ recordtype: grs.sgml
isam: b

# Flags for the non-authenticated user. w=write (allows ES Updates)
perm.anonymous: rw
# perm.anonymous: rw

# Record compression (none, bzip2 or zlib)
recordcompression: none
Expand Down