2021-06-01 12:53:58 +08:00
|
|
|
<p align=center>
|
2021-06-07 19:46:26 +08:00
|
|
|
<img src="https://raw.githubusercontent.com/zhenorzz/goploy/master/banner.png" alt="logo" title="logo" />
|
2021-06-01 12:53:58 +08:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
<a href="#">
|
|
|
|
<img src="https://img.shields.io/badge/readme%20style-standard-brightgreen.svg" alt="README">
|
|
|
|
</a>
|
|
|
|
<a href="#">
|
|
|
|
<img src="https://img.shields.io/badge/give%20me-a%20star-green.svg" alt="STAR">
|
2021-06-01 14:59:54 +08:00
|
|
|
</a>
|
2021-06-01 12:53:58 +08:00
|
|
|
<a href="../LICENSE">
|
|
|
|
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="LICENSE">
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
Name: go + deploy
|
|
|
|
|
|
|
|
A web deployment system tool!
|
|
|
|
|
|
|
|
Support all kinds of code release and rollback, which can be done through the web with one click!
|
|
|
|
|
|
|
|
Complete installation instructions, no difficulty in getting started!
|
|
|
|
|
2021-11-23 10:16:18 +08:00
|
|
|
[Dockerfile](https://github.com/zhenorzz/goploy/blob/master/docker/Dockerfile)
|
|
|
|
|
2021-06-01 12:53:58 +08:00
|
|
|
# How to use?
|
|
|
|
|
2021-11-23 10:16:18 +08:00
|
|
|
Import sql file: [goploy.sql](https://github.com/zhenorzz/goploy/blob/master/model/sql/goploy.sql)
|
|
|
|
|
|
|
|
Run it with all needed parameter:
|
2021-06-01 12:53:58 +08:00
|
|
|
|
|
|
|
```console
|
2021-12-15 16:17:31 +08:00
|
|
|
docker run -it \
|
2021-06-01 14:59:54 +08:00
|
|
|
-p 3000:80 \
|
|
|
|
-v /path/to/.ssh:/root/.ssh \
|
|
|
|
-v /path/to/hosts:/etc/hosts \
|
2021-12-15 16:17:31 +08:00
|
|
|
-v /path/to/repository:/opt/goploy/repository \
|
2021-06-01 14:59:54 +08:00
|
|
|
zhenorzz/goploy
|
2021-06-01 12:53:58 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
That's it.
|
|
|
|
|
2021-06-01 14:59:54 +08:00
|
|
|
## Mount
|
2021-06-01 12:53:58 +08:00
|
|
|
|
2021-06-01 14:59:54 +08:00
|
|
|
The rsync and ssh need id_rsa to conncet server, so you have to mount your ssh path to container using `-v /path/to/.ssh:/root/.ssh`.
|
2021-06-01 12:53:58 +08:00
|
|
|
|
2021-06-01 14:59:54 +08:00
|
|
|
If you want to access your own domain in container, you should mount your hosts file to container using `-v /path/to/hosts:/etc/hosts`.
|
2021-06-01 12:53:58 +08:00
|
|
|
|
2021-06-01 14:59:54 +08:00
|
|
|
If you would like to keep the repositories you can use `-v /path/to/repository:/opt/goploy/repository`.
|
2021-06-01 12:53:58 +08:00
|
|
|
|
2021-12-15 16:17:31 +08:00
|
|
|
*Notice that the filename is case-sensitive. If your readme is called `readme.md` you have to mount the file directly, not the directory*
|
2021-06-01 12:53:58 +08:00
|
|
|
|
|
|
|
|
|
|
|
# Additional Information
|
2021-06-01 14:59:54 +08:00
|
|
|
[Windows id_rsa permission denied, click this for help.](https://stackoverflow.com/questions/9270734/ssh-permissions-are-too-open-error)
|
|
|
|
|
2021-06-01 12:53:58 +08:00
|
|
|
# Updates and updating
|
|
|
|
|
|
|
|
To update your setup simply pull the newest image version from docker hub and run it.
|
|
|
|
|
|
|
|
# License
|
|
|
|
|
2021-06-01 14:59:54 +08:00
|
|
|
View [license information](https://github.com/zhenorzz/goploy/blob/master/LICENSE) for the software contained in this image.
|
2021-06-01 12:53:58 +08:00
|
|
|
|
2021-06-01 14:59:54 +08:00
|
|
|
Everything in [this repository](https://github.com/zhenorzz/goploy) is published under [MIT](https://spdx.org/licenses/MIT).
|
2021-06-01 12:53:58 +08:00
|
|
|
|
|
|
|
# User Feedback
|
|
|
|
|
|
|
|
## Issues
|
|
|
|
|
2021-06-01 14:59:54 +08:00
|
|
|
If you have any problems with or questions about this image, please contact us through a [GitHub issue](https://github.com/zhenorzz/goploy/issues).
|
2021-06-01 12:53:58 +08:00
|
|
|
|
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
|
|
You are invited to contribute new features, fixes, or updates, large or small; I'm always thrilled to receive pull requests.
|