Korbs revisou este gist 5 months ago. Ir para a revisão
1 file changed, 58 insertions
README.md(arquivo criado)
| @@ -0,0 +1,58 @@ | |||
| 1 | + | ## Installing Agent on Linux | |
| 2 | + | To install an agent into your Linux machine, [Docker Engine](https://docs.docker.com/engine/install/) is required to be installed. | |
| 3 | + | ||
| 4 | + | Once done, create a new folder somewhere on the server and put the following file, named `docker-compose.yml` into it: | |
| 5 | + | ```yml | |
| 6 | + | services: | |
| 7 | + | drone-runner-docker: | |
| 8 | + | volumes: | |
| 9 | + | - /var/run/docker.sock:/var/run/docker.sock | |
| 10 | + | environment: | |
| 11 | + | - DRONE_RPC_PROTO=https | |
| 12 | + | - DRONE_RPC_HOST=ci.havoc-browser.app | |
| 13 | + | - DRONE_RPC_SECRET=7889adbcb17a56b0db9d1be7d320c82c | |
| 14 | + | - DRONE_RUNNER_CAPACITY=1 | |
| 15 | + | - DRONE_RUNNER_NAME=havoc_linux | |
| 16 | + | - DRONE_LIMIT_REPOS=korbs/*,havoc-browser/www | |
| 17 | + | ports: | |
| 18 | + | - 3200:3000 | |
| 19 | + | restart: always | |
| 20 | + | container_name: runner | |
| 21 | + | image: drone/drone-runner-docker:1 | |
| 22 | + | ``` | |
| 23 | + | ||
| 24 | + | After that, run it: | |
| 25 | + | ```bash | |
| 26 | + | sudo docker compose up -d | |
| 27 | + | ``` | |
| 28 | + | ||
| 29 | + | ## Installing Agent on Windows | |
| 30 | + | To install an agent into your Windows machine, Docker Engine is required to be installed. | |
| 31 | + | ||
| 32 | + | **I recommend attempting installing the Docker Engine only instead of Docker Desktop** | |
| 33 | + | So, enable the __Windows Subsystem for Linux__ on it and install Docker Engine via WSL. | |
| 34 | + | ||
| 35 | + | Once you figure all that, create a new folder somwhere on the server put the following file, named `docker-compose.yml` into it: | |
| 36 | + | ```yml | |
| 37 | + | services: | |
| 38 | + | drone-runner-docker: | |
| 39 | + | volumes: | |
| 40 | + | - /var/run/docker.sock:/var/run/docker.sock | |
| 41 | + | environment: | |
| 42 | + | - DRONE_RPC_PROTO=https | |
| 43 | + | - DRONE_RPC_HOST=ci.havoc-browser.app | |
| 44 | + | - DRONE_RPC_SECRET=7889adbcb17a56b0db9d1be7d320c82c | |
| 45 | + | - DRONE_RUNNER_CAPACITY=1 | |
| 46 | + | - DRONE_RUNNER_NAME=havoc_windows | |
| 47 | + | - DRONE_LIMIT_REPOS=korbs/*,havoc-browser/www | |
| 48 | + | ports: | |
| 49 | + | - 3200:3000 | |
| 50 | + | restart: always | |
| 51 | + | container_name: runner | |
| 52 | + | image: drone/drone-runner-docker:1 | |
| 53 | + | ``` | |
| 54 | + | ||
| 55 | + | After that, open a Linux terminal into it, run it: | |
| 56 | + | ```bash | |
| 57 | + | sudo docker compose up -d | |
| 58 | + | ``` | |
Próximo
Anterior