[LINUX] [Docker] [drone] Drone Basic comfort

Purpose

這 耙 趓 驗 錄, 當 們 Demand self-erection CICD In the environment, I 們 challenge selection Drone's work The main object

However, due to other reasons, etc., this is a copy of the third-way entry, which is the third-way entry, and one version of the demand boarding environment, which is a Gitlab example.

Deposit preparation environment: Docker

Anjo Drone

  1. Settings Gitlab Application callbackurl Yosho Yutoku drone version book not possible Renewal required New edition version / login, 舊 version book possible required / authorize drone1.png

  2. Anjo Drone

 docker run \
  --volume=/var/lib/drone:/data \
  --env=DRONE_GITLAB_SERVER=http://192.168.10.2:8888 \ 
  --env=DRONE_GITLAB_CLIENT_ID=fdfdfvbfbfgfdgfdgfdbvdfbfdgfdgdfgfdgfd \ 
  --env=DRONE_GITLAB_CLIENT_SECRET=dfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdffd \ 
  --env=DRONE_RPC_SECRET=54E921B198DA2BB4E4F9366F7F4AB \  
  --env=DRONE_SERVER_HOST=192.168.10.2:9999 \ 
  --env=DRONE_SERVER_PROTO=http  \  
  --publish=9999:80 \   
  --publish=9998:443 \  
  --restart=always \
  --detach=true \
  --name=drone \
  drone/drone:1

--DRONE_GITLAB_SERVER The location of the Gitlab-like network, the erection of the network, and the position of the copy-book copy --DRONE_GITLAB_CLIENT_ID Crawling Gitlab UserSettings / Application Nakajio --DRONE_GITLAB_CLIENT_SECRET Crawling Gitlab UserSettings / Application Nakajio --DRONE_SERVER_HOST drone Anxious location url --DRONE_SERVER_PROTO Use Yosho drone http Return https --9999 (external supervision port): 80 (Docker 內 腍 荍 Port) --9998 (external supervision port): 443 (Docker 內 腍 荍 Port)

  1. Entry drone

drone2.png

Completion of crawling, Nogo Ariku re-supplement drone usage method

Recommended Posts

[Docker] [drone] Drone Basic comfort