Commit 16c342ca18bd4c0c5fcec04d41d6987dd48dd53e

Authored by Олександр Басенко
1 parent 161f564433
Exists in master

not build repo, pull from dockerhub

Showing 1 changed file with 1 additions and 9 deletions Side-by-side Diff

... ... @@ -40,15 +40,7 @@
40 40  
41 41 create_volume $ODOO_REPO
42 42  
43   -REPO_IMAGE_NAME="2bas/repo"
44   -IS_EXIST_REPO="$(docker images | grep ^\\b${REPO_IMAGE_NAME})"
45   -if [ -z "${IS_EXIST_REPO}" ];then
46   - echo "Build ${REPO_IMAGE_NAME}:"
47   - docker build -t ${REPO_IMAGE_NAME} -f repo/Dockerfile ./repo/.
48   -else
49   - echo "${REPO_IMAGE_NAME} already exist"
50   -fi
51   -docker run -it --rm -v "$ODOO_REPO":/webportal -w /webportal "$REPO_IMAGE_NAME" /bin/bash "-c" "git pull; exit;"
  43 +docker run -it --rm -v "$ODOO_REPO":/webportal -w /webportal 2bas/repo /bin/bash "-c" "git pull; exit;"
52 44  
53 45 create_volume $ODOO_LIB
54 46 create_volume $ODOO_ETC