Compare commits
No commits in common. "5401389ae08f2ba48e31a9586b0ec9a50b3ba8df" and "3f865d15bf1d73ff36531b6d09ff659740140114" have entirely different histories.
5401389ae0
...
3f865d15bf
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,4 @@
|
||||
# ---> LaTex
|
||||
Saved_Images/
|
||||
Saved_Images/*
|
||||
*.bcf
|
||||
*.nav
|
||||
*.run.xml
|
||||
|
||||
@ -63,7 +63,7 @@ DOCKER_IMAGE_NAME="acg/thesis_defense_latex:1.0"
|
||||
echo "Writing script file to run the Docker LaTex code"
|
||||
echo '#If the image does not exist make it' > DOCKER_RUN.sh
|
||||
echo "if [ ! \"\$(docker images -q ${DOCKER_IMAGE_NAME} 2> /dev/null)\" ]; then" >> DOCKER_RUN.sh
|
||||
echo " docker load -i DOCKER_IMAGE/DEFENSE_DOCKER.tar" >> DOCKER_RUN.sh
|
||||
echo " docker load -i DOCKER_IMAGE/LATEX_DOCKER.tar" >> DOCKER_RUN.sh
|
||||
echo "fi" >> DOCKER_RUN.sh
|
||||
echo "#If container is stoped remove." >> DOCKER_RUN.sh
|
||||
echo "if [ \"\$(docker ps -aq -f status=exited -f name=${DOCKER_CONTAINER_NAME})\" ]; then" >> DOCKER_RUN.sh
|
||||
@ -79,15 +79,15 @@ echo "mv DOCKER_IMAGE/ ../" >> DOCKER_RUN.sh
|
||||
|
||||
echo "docker cp ./ ${DOCKER_CONTAINER_NAME}:/LaTex" >> DOCKER_RUN.sh
|
||||
echo "docker exec ${DOCKER_CONTAINER_NAME} bash /LaTex/build.sh" >> DOCKER_RUN.sh
|
||||
echo "docker cp ${DOCKER_CONTAINER_NAME}:/LaTex/Defense.pdf ./" >> DOCKER_RUN.sh
|
||||
echo "docker cp ${DOCKER_CONTAINER_NAME}:/LaTex/Mines_Thesis.pdf ./" >> DOCKER_RUN.sh
|
||||
echo "mv ../DOCKER_IMAGE/ ./" >> DOCKER_RUN.sh
|
||||
|
||||
echo "docker stop ${DOCKER_CONTAINER_NAME}" >> DOCKER_RUN.sh
|
||||
echo "docker remove ${DOCKER_CONTAINER_NAME}" >> DOCKER_RUN.sh
|
||||
|
||||
cd DOCKER_IMAGE
|
||||
echo "Creating Docker Image Saved to ${SAVE_DIR_PATH}/DOCKER_IMAGE/DEFENSE_DOCKER.tar"
|
||||
docker save "${DOCKER_IMAGE_NAME}" > DEFENSE_DOCKER.tar
|
||||
echo "Creating Docker Image Saved to ${SAVE_DIR_PATH}/DOCKER_IMAGE/LATEX_DOCKER.tar"
|
||||
docker save "${DOCKER_IMAGE_NAME}" > LATEX_DOCKER.tar
|
||||
cd ../../
|
||||
echo "Creating a compressed tar.gz file of all contents of ${SAVE_DIR_PATH}"
|
||||
tar -czf "${SAVE_DIR}.tar.gz" "${SAVE_DIR}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user