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!
|
|
|
|
|
|
|
|
# How to use?
|
|
|
|
|
2021-06-01 14:59:54 +08:00
|
|
|
run it with all needed parameter:
|
2021-06-01 12:53:58 +08:00
|
|
|
|
|
|
|
```console
|
|
|
|
docker run --rm \
|
2021-06-01 14:59:54 +08:00
|
|
|
-p 3000:80 \
|
|
|
|
-v /path/to/.ssh:/root/.ssh \
|
|
|
|
-v /path/to/hosts:/etc/hosts \
|
|
|
|
-e MYSQL_HOST=mysql \
|
|
|
|
-e MYSQL_USER=root \
|
|
|
|
-e MYSQL_PASSWORD=password \
|
|
|
|
zhenorzz/goploy
|
2021-06-01 12:53:58 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
That's it.
|
|
|
|
|
|
|
|
|
|
|
|
## Environment variables
|
|
|
|
|
|
|
|
This image uses environment variables for configuration.
|
|
|
|
|
|
|
|
|Available variables |Default value |Description |
|
|
|
|
|------------------------|---------------------|----------------------------------------------------|
|
2021-06-01 14:59:54 +08:00
|
|
|
|`MYSQL_HOST` |no default |MYSQL HOST|
|
|
|
|
|`MYSQL_PORT` |3306 |MYSQL PORT|
|
|
|
|
|`MYSQL_USER` |no default |MYSQL USER|
|
|
|
|
|`MYSQL_PASSWORD` |no default |MYSQL PASSWORD|
|
2021-06-01 12:53:58 +08:00
|
|
|
|
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
|
|
|
|
|
|
|
*Notice that the filename is case sensitive. If your readme is called `readme.md` you have to mount the file directly, not the directory*
|
|
|
|
|
|
|
|
|
|
|
|
# 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.
|