docker安装jenkins

3-13 353 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
    }
}

centos 安装 bento4 处理mp4 为 MPEG-DASH流

Bento4 Bento4是一个C ++类库和工具,旨在读取和写入ISO-MP4文件。此格式在国际规范ISO / IEC 14496-12、14496-14和14496-15中定义。该格式是Apple Quicktime...

阅读全文

centos7 yum安装ffmpeg

centos7 yum安装ffmpeg $ yum install epel-release $ yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7....

阅读全文

apache-kafka 和apache-zookeeper 设置 systemd服务和开机启动

参考:https://gist.github.com/vipmax/9ceeaa02932ba276fa810c923dbcbd4f 启动命令 #启动 $ systemctl daemon-reload $ systemctl enable kafka-zookeeper.s...

阅读全文

欢迎留言