Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7226e124
authored
Apr 16, 2021
by
李昂
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
🔨
增加docker构建脚本
1 parent
57864fe2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
build_docker.sh
build_docker.sh
0 → 100644
View file @
7226e12
#!/bin/bash
########################################################
############### LinkWeChat Docker 部署脚本 ##############
########################################################
LOG
=
$1
PROJ_HOME
=
$PWD
echo
"
$PROJ_HOME
"
CLEAN_BUILD
=
"clean"
BUILD_CODE
=
"install"
BUILD_DOCKER
=
"docker:build"
showLog
(){
if
[
"
$1
"
==
'--log'
-o
"
$1
"
==
'-l'
]
;
then
$PROJ_HOME
/mvnw
"
$2
"
else
$PROJ_HOME
/mvnw
"
$2
"
> /dev/null
fi
}
cd
"
$PROJ_HOME
"
echo
'开始从代码构建LinkWeChat'
showLog
"
$LOG
"
"
$CLEAN_BUILD
"
showLog
"
$LOG
"
"
$BUILD_CODE
"
echo
'构建完成'
cd
"
$PROJ_HOME
"
/linkwe-admin
echo
'开始构建Docker镜像'
showLog
"
$LOG
"
"
$BUILD_DOCKER
"
echo
'Docker镜像构建完成'
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment