Updating file names
This commit is contained in:
parent
3f865d15bf
commit
f614f9771c
@ -63,7 +63,7 @@ DOCKER_IMAGE_NAME="acg/thesis_defense_latex:1.0"
|
|||||||
echo "Writing script file to run the Docker LaTex code"
|
echo "Writing script file to run the Docker LaTex code"
|
||||||
echo '#If the image does not exist make it' > DOCKER_RUN.sh
|
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 "if [ ! \"\$(docker images -q ${DOCKER_IMAGE_NAME} 2> /dev/null)\" ]; then" >> DOCKER_RUN.sh
|
||||||
echo " docker load -i DOCKER_IMAGE/LATEX_DOCKER.tar" >> DOCKER_RUN.sh
|
echo " docker load -i DOCKER_IMAGE/DEFENSE_DOCKER.tar" >> DOCKER_RUN.sh
|
||||||
echo "fi" >> DOCKER_RUN.sh
|
echo "fi" >> DOCKER_RUN.sh
|
||||||
echo "#If container is stoped remove." >> 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
|
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 cp ./ ${DOCKER_CONTAINER_NAME}:/LaTex" >> DOCKER_RUN.sh
|
||||||
echo "docker exec ${DOCKER_CONTAINER_NAME} bash /LaTex/build.sh" >> DOCKER_RUN.sh
|
echo "docker exec ${DOCKER_CONTAINER_NAME} bash /LaTex/build.sh" >> DOCKER_RUN.sh
|
||||||
echo "docker cp ${DOCKER_CONTAINER_NAME}:/LaTex/Mines_Thesis.pdf ./" >> DOCKER_RUN.sh
|
echo "docker cp ${DOCKER_CONTAINER_NAME}:/LaTex/Defense.pdf ./" >> DOCKER_RUN.sh
|
||||||
echo "mv ../DOCKER_IMAGE/ ./" >> DOCKER_RUN.sh
|
echo "mv ../DOCKER_IMAGE/ ./" >> DOCKER_RUN.sh
|
||||||
|
|
||||||
echo "docker stop ${DOCKER_CONTAINER_NAME}" >> DOCKER_RUN.sh
|
echo "docker stop ${DOCKER_CONTAINER_NAME}" >> DOCKER_RUN.sh
|
||||||
echo "docker remove ${DOCKER_CONTAINER_NAME}" >> DOCKER_RUN.sh
|
echo "docker remove ${DOCKER_CONTAINER_NAME}" >> DOCKER_RUN.sh
|
||||||
|
|
||||||
cd DOCKER_IMAGE
|
cd DOCKER_IMAGE
|
||||||
echo "Creating Docker Image Saved to ${SAVE_DIR_PATH}/DOCKER_IMAGE/LATEX_DOCKER.tar"
|
echo "Creating Docker Image Saved to ${SAVE_DIR_PATH}/DOCKER_IMAGE/DEFENSE_DOCKER.tar"
|
||||||
docker save "${DOCKER_IMAGE_NAME}" > LATEX_DOCKER.tar
|
docker save "${DOCKER_IMAGE_NAME}" > DEFENSE_DOCKER.tar
|
||||||
cd ../../
|
cd ../../
|
||||||
echo "Creating a compressed tar.gz file of all contents of ${SAVE_DIR_PATH}"
|
echo "Creating a compressed tar.gz file of all contents of ${SAVE_DIR_PATH}"
|
||||||
tar -czf "${SAVE_DIR}.tar.gz" "${SAVE_DIR}"
|
tar -czf "${SAVE_DIR}.tar.gz" "${SAVE_DIR}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user