docker安装jenkins

3-13 66 views

命令

#开启jenkins,根本地8082端口绑定 -d 后台运行,--restart=always 跟随docker启动,-v 绑定本地目录
$ docker run --name jenkins -d -p 8082:8080 -p 50000:50000 --restart=always  -v /apps/docker/jenkins/:/var/jenkins_home jenkins/jenkins
chmod 1000 /apps/docker/jenkins/

nginx反向代理

server{
    listen 443 ssl;
    server_name jenkins.test.com;

    ssl on;
    ssl_certificate   /etc/nginx/ssl/test.pem;
    ssl_certificate_key  /etc/nginx/ssl/test.key;
    ssl_session_timeout 5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;

    location / {
        index  index.html index.htm;
      sendfile off;
      proxy_pass         http://127.0.0.1:8082;
      proxy_redirect     default;
      proxy_http_version 1.1;

      proxy_set_header   Host              $host;
      proxy_set_header   X-Real-IP         $remote_addr;
      proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;
      proxy_set_header   X-Forwarded-Proto $scheme;
      proxy_max_temp_file_size 0;

      #this is the maximum upload size
      client_max_body_size       10m;
      client_body_buffer_size    128k;

      proxy_connect_timeout      90;
      proxy_send_timeout         90;
      proxy_read_timeout         90;
      proxy_buffering            off;
      proxy_request_buffering    off; # Required for HTTP CLI commands in Jenkins > 2.54
      proxy_set_header Connection ""; # Clear for keepalive
    }
}

ffmpeg下载m3u8为mp4

ffmpeg -i "https://www.test.com/a.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 test.mp4

阅读全文

docker安装 elasticsearch,filebeat,kibana 日志系统

参考文档 参考:https://github.com/maxyermayank/docker-compose-elasticsearch-kibana/blob/master/docker-compose.yml 参考:https://www.elastic.co/guid...

阅读全文

docker 安装 gitlab

命令安装 启动命令 docker run --detach \ --hostname 127.0.0.1 \ --publish 8181:8181 \ --name gitlab \ --restart always \ --volume /apps/do...

阅读全文

欢迎留言