-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: cndoit18 <cndoit18@outlook.com>
- Loading branch information
Showing
38 changed files
with
724 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Installation | ||
|
||
There are two installation methods, it is recommended to use docker-compose to install as a whole, or install separately according to modules. | ||
|
||
Table of contents: | ||
|
||
* [Docker Compose](docker-compose.md) | ||
* [Standalone](standalone) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# WIP Docker-Compose Support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Installing Dragonfly CDN Server | ||
|
||
This topic explains how to install the Dragonfly CDN server. | ||
|
||
## Prerequisites | ||
|
||
When deploying with Docker, the following conditions must be met. | ||
|
||
Required Software | Version Limit | ||
---|--- | ||
Git|1.9.1+ | ||
Docker|1.12.0+ | ||
|
||
## Procedure - When Deploying with Docker | ||
|
||
### Get cdn image | ||
|
||
You can get it from [DockerHub](https://hub.docker.com/) directly. | ||
|
||
1. Obtain the latest Docker image of the cdn. | ||
|
||
```sh | ||
docker pull dragonflyoss/cdn | ||
``` | ||
|
||
Or you can build your own cdn image. | ||
|
||
1. Obtain the source code of Dragonfly. | ||
|
||
```sh | ||
git clone https://github.com/dragonflyoss/Dragonfly2.git | ||
``` | ||
|
||
2. Enter the project directory. | ||
|
||
```sh | ||
cd Dragonfly2 | ||
``` | ||
|
||
3. Build the Docker image. | ||
|
||
```sh | ||
TAG="2.0.0" | ||
make docker-build-cdn D7Y_VERSION=$TAG | ||
``` | ||
|
||
4. Obtain the latest Docker image ID of the cdn. | ||
|
||
```sh | ||
docker image ls | grep 'cdn' | awk '{print $3}' | head -n1 | ||
``` | ||
|
||
### Start cdn | ||
|
||
**NOTE:** Replace ${cdnDockerImageId} with the ID obtained at the previous step. | ||
|
||
```sh | ||
docker run -d --name cdn --restart=always -p 8001:8001 -p 8003:8003 -v /home/admin/ftp:/home/admin/ftp ${cdnDockerImageId} | ||
--download-port=8001 | ||
``` | ||
|
||
After cdn is installed, run the following commands to verify if Nginx and **cdn** are started, and if Port `8001` and `8003` are available. | ||
|
||
```sh | ||
telnet 127.0.0.1 8001 | ||
telnet 127.0.0.1 8003 | ||
``` |
Oops, something went wrong.