You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
654 B
23 lines
654 B
4 months ago
|
$container_name = "gates"
|
||
|
$image_name = "gates"
|
||
|
$build_name = "gates"
|
||
|
$code_location = "C:\Users\devuser\Documents\code\tech-services\gates"
|
||
|
|
||
|
# Остановить и удалить существующий контейнер
|
||
|
docker stop $container_name
|
||
|
docker rm $container_name
|
||
|
|
||
|
# Удалить существующий образ
|
||
|
docker rmi $image_name
|
||
|
|
||
|
# Перейти в каталог с проектом
|
||
|
Set-Location $code_location
|
||
|
|
||
|
# Собрать jar с помощью Maven
|
||
|
mvn clean package
|
||
|
|
||
|
# Запустить контейнер с помощью docker-compose
|
||
|
docker-compose up
|
||
|
|
||
|
# Пауза скрипта
|
||
|
Pause
|