1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-04 17:18:40 +00:00
pdf2htmlEX/buildScripts/createDockerImage

40 lines
733 B
Plaintext
Raw Normal View History

2019-11-23 10:25:09 +00:00
#!/bin/bash
# This bash script creates a docker image from an existing pdf2htmlEX
2019-11-23 10:25:09 +00:00
if [ -x "$(which docker)" ]; then
2019-11-23 10:25:09 +00:00
2019-11-28 12:04:22 +00:00
source buildScripts/reSourceVersionEnvs
2019-11-23 10:25:09 +00:00
source buildScripts/dockerFunctions
mkdir -p imageBuild/dockerDir
cd pdf2htmlEX/build
sudo rm -rf install_manifest.txt
make install DESTDIR=../../imageBuild/dockerDir
cd ../../imageBuild/dockerDir
copy_deps
delete_blacklisted
cat >> Dockerfile <<DOCKERFILE_HERE_DOC
FROM $DOCKER_FROM
COPY ./ /
RUN ldconfig
2019-11-27 12:53:22 +00:00
ENTRYPOINT ["/usr/local/bin/pdf2htmlEX"]
DOCKERFILE_HERE_DOC
cd ..
2019-11-28 09:07:49 +00:00
docker build -t $DOCKER_USERNAME/pdf2htmlex:-`date +%Y_%m_%d-%H_%M_%S` dockerDir
2019-11-23 10:25:09 +00:00
else
echo "Docker is not installed... skipping creation of a docker image."
fi
2019-11-23 10:25:09 +00:00