Jpom/script/docker.sh

34 lines
1.6 KiB
Bash
Raw Normal View History

2021-12-30 15:45:26 +08:00
#!/bin/bash
2022-03-09 22:19:22 +08:00
#
# Copyright (c) 2019 Of Him Code Technology Studio
2024-02-29 14:10:24 +08:00
# Jpom is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
# http://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
2022-03-09 22:19:22 +08:00
#
2021-12-30 15:45:26 +08:00
#-----------------------------------------------------------
# 此脚本用于每次发布 docker 镜像
#-----------------------------------------------------------
# https://hub.docker.com/r/jpomdocker/jpom
2022-07-26 16:27:04 +08:00
# docker buildx create --use
2021-12-30 15:45:26 +08:00
# 服务端
2024-04-23 14:32:38 +08:00
docker buildx build --platform linux/amd64,linux/arm64 -t jpomdocker/jpom:2.11.5.1 -t jpomdocker/jpom:latest -f ./modules/server/DockerfileRelease --push .
2021-12-30 15:45:26 +08:00
#
2022-08-10 22:51:00 +08:00
#docker buildx build --platform linux/amd64,linux/arm64 -t jpomdocker/jpom:latest -f ./modules/server/DockerfileRelease --push .
2021-12-30 15:45:26 +08:00
2021-12-30 21:46:42 +08:00
# docker logs --tail="100" jpom-server
2024-04-23 14:32:38 +08:00
# docker run -d -p 2122:2122 --name jpom-server -v /etc/localtime:/etc/localtime:ro -v jpom-server-vol:/usr/local/jpom-server jpomdocker/jpom:mac-arm-2.11.5.1
2023-01-05 13:12:00 +08:00
# docker run -d -p 2122:2122 --name jpom-server -v D:/home/jpom-server/logs:/usr/local/jpom-server/logs -v D:/home/jpom-server/data:/usr/local/jpom-server/data -v D:/home/jpom-server/conf:/usr/local/jpom-server/conf jpomdocker/jpom
2021-12-30 21:46:42 +08:00
# docker stop jpom-server
# docker rm jpom-server
# docker exec -it jpom-server /bin/bash
# docker-compose up -d --build
2021-12-31 10:05:50 +08:00
# docker buildx imagetools inspect jpomdocker/jpom