Last active
March 25, 2022 10:27
-
-
Save b2m/d29c9e5dba9658bb3e5aad6d6d93c3bb to your computer and use it in GitHub Desktop.
Put browse-ocrd into a docker container
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
docker build --tag browse-ocrd . |
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
FROM python:3.7 | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends libcairo2-dev libgtk-3-bin libgtk-3-dev libglib2.0-dev libgtksourceview-3.0-dev libgirepository1.0-dev gir1.2-webkit2-4.0 pkg-config cmake \ | |
&& pip3 install -U setuptools --use-feature=2020-resolver \ | |
&& pip3 install browse-ocrd --use-feature=2020-resolver | |
ENV GDK_BACKEND broadway | |
ENV BROADWAY_DISPLAY :5 | |
EXPOSE 8085 | |
COPY init.sh /init.sh | |
RUN chmod +x /init.sh | |
CMD ["/init.sh"] |
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
#!/usr/bin/env bash | |
set -x | |
nohup broadwayd :5 & | |
browse-ocrd /data/mets.xml |
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
docker run -it --rm -v ${WORKSPACE}:/data -w /data -p 8085:8085 browse-ocrd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and the wiki, too, you did already. Many thanks!