Skip to content

Commit

Permalink
update make.sphp
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Sep 19, 2024
1 parent 1dee0ad commit b7ecc02
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sapi/src/template/make.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,6 @@
else
echo "<?= Preprocessor::IMAGE_NAME ?>:<?= $this->getImageTag() ?> image does not exist, try to pull"
echo "create container with <?= Preprocessor::IMAGE_NAME ?>:<?= $this->getImageTag() ?> image"
# check container registry image exists
# curl -fsSlL --head https://hub.docker.com/v2/repositories/$1/tags/$2/ > /dev/null && echo "exist" || echo "not exists"
# curl -fsSlL --head https://hub.docker.com/v2/repositories/<?= Preprocessor::IMAGE_NAME ?>/tags/<?= $this->getImageTag() ?>/ > /dev/null && echo "container image exist" || echo "container image not exists"
docker run -d --name <?= Preprocessor::CONTAINER_NAME ?> -v ${__PROJECT_DIR__}:/work <?= Preprocessor::IMAGE_NAME ?>:<?= $this->getImageTag() ?> tini -- tail -f /dev/null
fi
fi
Expand Down

0 comments on commit b7ecc02

Please sign in to comment.