浏览代码

no message

OBT-SYSADM\tomishinets 6 年之前
父节点
当前提交
5950ac9bf5
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 2 0
      Dockerfile
  2. 8 0
      operation.sh

+ 2 - 0
Dockerfile

@@ -2,6 +2,8 @@ FROM centos:7.4.1708
 COPY nginx.repo /etc/yum.repos.d/nginx.repo
 RUN yum install -y epel-release \
     && yum install yum-utils python2-certbot-nginx openssl ca-certificates nginx -y \
+    && yum install -y https://centos7.iuscommunity.org/ius-release.rpm \
+    && yum install -y git2u \
     && mkdir -p /var/www/html/.well-known \
     && ln -sf /dev/stdout /var/log/nginx/access.log \
     && ln -sf /dev/stderr /var/log/nginx/error.log

+ 8 - 0
operation.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+JENKINS_MAIL="jenkins@sdsys.ru"
+git-dir="pki"
+branch="100883"
+
+cd /
+GIT_SSH_COMMAND='ssh -i /run/secrets/provision-ssh-key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git clone ${git_url}
+cd ${git-dir} && git checkout ${branch}