Legoktm has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/381815 )

Change subject: Add slave-scripts docker image for integration/jenkins 
repository
......................................................................

Add slave-scripts docker image for integration/jenkins repository

The `/srv/deployment/integration/slave-scripts` path is hardcoded
in the repository's scripts.

Change-Id: I64515acb6f3e695c6c08e1175f9e6187550d2215
---
A dockerfiles/slave-scripts/Dockerfile
A dockerfiles/slave-scripts/prebuild.sh
2 files changed, 19 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/config 
refs/changes/15/381815/1

diff --git a/dockerfiles/slave-scripts/Dockerfile 
b/dockerfiles/slave-scripts/Dockerfile
new file mode 100644
index 0000000..e498b69
--- /dev/null
+++ b/dockerfiles/slave-scripts/Dockerfile
@@ -0,0 +1,10 @@
+FROM wmfreleng/ci-jessie:latest
+
+USER root
+
+COPY .cache-buster-slave-scripts /.cache-buster-slave-scripts
+
+RUN git clone --depth 1 
https://gerrit.wikimedia.org/r/p/integration/jenkins.git 
/srv/deployment/integration/slave-scripts && \
+    rm -rf /srv/deployment/integration/slave-scripts/.git
+
+USER nobody
diff --git a/dockerfiles/slave-scripts/prebuild.sh 
b/dockerfiles/slave-scripts/prebuild.sh
new file mode 100755
index 0000000..e297fea
--- /dev/null
+++ b/dockerfiles/slave-scripts/prebuild.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -e
+
+# This is copied in Dockerfile to ensure that a build step grabs a fresh
+# copy of the git repo when it is updated rather than using a layer from
+# the local Docker cache.
+
+git ls-remote --exit-code 
https://gerrit.wikimedia.org/r/p/integration/jenkins.git refs/heads/master > 
.cache-buster-slave-scripts

-- 
To view, visit https://gerrit.wikimedia.org/r/381815
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I64515acb6f3e695c6c08e1175f9e6187550d2215
Gerrit-PatchSet: 1
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to