Updated
This commit is contained in:
29
Makefile
Normal file
29
Makefile
Normal file
@@ -0,0 +1,29 @@
|
||||
clean:
|
||||
@docker stop QM1
|
||||
@docker rm QM1
|
||||
|
||||
build: clean
|
||||
@docker image rm mqtest:latest
|
||||
@docker image prune --force
|
||||
@docker buildx build -t mqtest:latest .
|
||||
|
||||
run: build
|
||||
@docker run \
|
||||
--name QM1 \
|
||||
--env LICENSE=accept \
|
||||
--env MQ_QMGR_NAME=QM1 \
|
||||
--env MQ_DEV=TRUE \
|
||||
--env MQ_APP_USER=app \
|
||||
--env MQ_APP_PASSWORD=passw0rd \
|
||||
--env MQ_ADMIN_USER=admin \
|
||||
--env MQ_ADMIN_PASSWORD=passw0rd \
|
||||
--env MQ_ENABLE_METRICS=true \
|
||||
--publish 1414:1414 \
|
||||
--publish 9443:9443 \
|
||||
--publish 9157:9157 \
|
||||
--detach \
|
||||
mqtest:latest
|
||||
@sleep 5
|
||||
@docker ps
|
||||
@sleep 10
|
||||
@docker logs QM1
|
||||
Reference in New Issue
Block a user