“This is the fifth day of my participation in the Gwen Challenge in November. Check out the details: The Last Gwen Challenge in 2021.”

docker

Ali cloud one-click installation script: curl – fsSL get.docker.com | docker bash – s – mirror Aliyun

sudo systemctl restart docker

gitea

Address: gitea. IO/useful – cn /

  • Binary installation

Docs. Gitea. IO/useful – cn/insta…

All downloads include SUPPORT for SQLite, MySQL, and PostgreSQL, while all resources are embedded in the executable, which differs from older versions. Binary-based installation is as simple as selecting the platform from the download page, copying the download URL, and executing the following command (Linux as an example) :

Wget -o gitea https://dl.gitea.io/gitea/1.15.6/gitea-1.15.6-linux-amd64 gitea chmod + xCopy the code

test

After performing the above steps, you will have a Gitea binary that you can test before copying to the deployed machine. After executing on the command line, you can close the program by Ctrl + C.

./gitea web
Copy the code
  • Docker installation

Documents: the docs. Gitea. IO/useful – cn/insta… Documents: soulteary.com/2020/02/04/…

traefik

  • Docker installation
version: '3'Services: traefik: container_name: traefik image: traefik:v2.3.4 restart: always ports:# The HTTP port
      - "80:80"
      # The Web UI (enabled by --api.insecure=true)
      - "8080:8080"
    networks:
      - traefik

    # Enables the web UI and tells Traefik to listen to docker
    command: 
      - "--api.insecure=true"
      - "--providers.docker"
    volumes:
      # Standard Linux environment only
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - ./config/:/etc/traefik/config/:ro
      - ./ssl/:/data/ssl/:ro
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=traefik"
    healthcheck:
      test: ["CMD-SHELL"."wget -q --spider --proxy off localhost:8080/ping || exit 1"]
      interval: 3s
      retries: 12
    logging:
      driver: "json-file"
      options:
        max-size: "1m"

networks:
  traefik:
    external: true

Copy the code

Docker-compose up -d for docker-compose up

drone

  • Docker installation
version: '3' services: drone-server: restart: always image: drone/drone:1 ports: - "9996:80" volumes: - ./data/drone/:/var/lib/drone/ - ./data/data/:/data/ environment: - DRONE_GITEA_SERVER=http://gitea.*******.top:3000 - DRONE_GITEA_CLIENT_ID=**************************** - DRONE_GITEA_CLIENT_SECRET=**************************** - DRONE_SERVER_HOST=drone.**********.top - DRONE_SERVER_PROTO=https - DRONE_RPC_SECRET=**************************** drone-runner-docker: restart: always image: drone/drone-runner-docker:1 volumes: - /var/run/docker.sock:/var/run/docker.sock environment: - - DRONE_RPC_HOST = drone - DRONE_RPC_PROTO = HTTP server - DRONE_RPC_SECRET = c9652c890a5affc3ba02c9ca591011bc # # client id * * * * * * * * * * * * * * * * * * * * * * * * * * * * # # client key * * * * * * * * * * * * * * * * * * * * * * * * * * * *Copy the code

Install the video: www.bilibili.com/video/BV1cy…

Lidong.xin /devops/ s3-d…

rancher

Address: docs. The rancher. Cn /

  • docker

Download the Rancher image

docker pull rancher/rancher
Copy the code

Create a mount directory

mkdir -p /docker_volume/rancher_home/rancher
mkdir -p /docker_volume/rancher_home/auditlog
Copy the code

docker run

docker run -d --restart=unless-stopped -p 880:80 -p 843:443 \
-v /docker_volume/rancher_home/rancher:/var/lib/rancher \
-v /docker_volume/rancher_home/auditlog:/var/log/auditlog \
--name rancher rancher/rancher  
Copy the code

Viewing startup Results

docker ps
Copy the code

Access to the rancher https://ip:843/