Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
d802ac35
Commit
d802ac35
authored
Jan 04, 2020
by
macro
Browse files
添加sh脚本
parent
c6052eb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
document/sh/mall-admin.sh
0 → 100644
View file @
d802ac35
#!/usr/bin/env bash
app_name
=
'mall-admin'
docker stop
${
app_name
}
echo
'----stop container----'
docker
rm
${
app_name
}
echo
'----rm container----'
docker rmi
`
docker images |
grep
none |
awk
'{print $3}'
`
echo
'----rm none images----'
docker run
-p
8080:8080
--name
${
app_name
}
\
--link
mysql:db
\
-v
/etc/localtime:/etc/localtime
\
-v
/mydata/app/
${
app_name
}
/logs:/var/logs
\
-d
mall/
${
app_name
}
:1.0-SNAPSHOT
echo
'----start container----'
\ No newline at end of file
document/sh/mall-portal.sh
0 → 100644
View file @
d802ac35
#!/usr/bin/env bash
app_name
=
'mall-portal'
docker stop
${
app_name
}
echo
'----stop container----'
docker
rm
${
app_name
}
echo
'----rm container----'
docker rmi
`
docker images |
grep
none |
awk
'{print $3}'
`
echo
'----rm none images----'
docker run
-p
8085:8085
--name
${
app_name
}
\
--link
mysql:db
\
--link
redis:redis
\
--link
mongo:mongo
\
--link
rabbitmq:rabbit
\
-v
/etc/localtime:/etc/localtime
\
-v
/mydata/app/
${
app_name
}
/logs:/var/logs
\
-d
mall/
${
app_name
}
:1.0-SNAPSHOT
echo
'----start container----'
\ No newline at end of file
document/sh/mall-search.sh
0 → 100644
View file @
d802ac35
#!/usr/bin/env bash
app_name
=
'mall-search'
docker stop
${
app_name
}
echo
'----stop container----'
docker
rm
${
app_name
}
echo
'----rm container----'
docker rmi
`
docker images |
grep
none |
awk
'{print $3}'
`
echo
'----rm none images----'
docker run
-p
8081:8081
--name
${
app_name
}
\
--link
mysql:db
\
--link
elasticsearch:es
\
-v
/etc/localtime:/etc/localtime
\
-v
/mydata/app/
${
app_name
}
/logs:/var/logs
\
-d
mall/
${
app_name
}
:1.0-SNAPSHOT
echo
'----start container----'
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment