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

Change subject: docker-pkg: use `run` to update docker image
......................................................................

docker-pkg: use `run` to update docker image

Since the configuration file is only readable by contint-admins, use the
run command in the fab file to update docker-pkg images.

Change-Id: Ib2da6b34003033b95c8d9de8dcafdbc03afe932b
---
M fabfile.py
1 file changed, 3 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/config 
refs/changes/86/398086/1

diff --git a/fabfile.py b/fabfile.py
index 2307854..361a6d1 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -50,19 +50,17 @@
         return
 
     with cd('/tmp'):
-        env.sudo_user = 'jenkins-slave'
-
         docker_pkg = '/srv/deployment/docker-pkg/venv/bin/docker-pkg'
         docker_pkg_config = '/etc/docker-pkg/integration.yaml'
         dockerfiles = '/etc/zuul/wikimedia/dockerfiles'
         cmd = '{} -c {} {}'.format(docker_pkg, docker_pkg_config, dockerfiles)
 
-        sudo(cmd)
+        run(cmd)
 
-        sudo('cat /tmp/docker-pkg-build.log')
+        run('cat /tmp/docker-pkg-build.log')
 
         if confirm('delete build log?'):
-            sudo('rm /tmp/docker-pkg-build.log')
+            run('rm /tmp/docker-pkg-build.log')
 
 
 @task

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

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

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

Reply via email to