summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.taskcluster.yml2
-rw-r--r--automation/taskcluster/docker-decision/Dockerfile3
-rw-r--r--automation/taskcluster/docker-decision/bin/checkout.sh5
3 files changed, 4 insertions, 6 deletions
diff --git a/.taskcluster.yml b/.taskcluster.yml
index 9d56c9bcd..494d31a7b 100644
--- a/.taskcluster.yml
+++ b/.taskcluster.yml
@@ -57,7 +57,7 @@ tasks:
- "tc-treeherder.v2.{{project}}.{{revision}}.{{pushlog_id}}"
payload:
- image: ttaubert/nss-decision:0.0.2
+ image: nssdev/nss-decision:0.0.2
env:
TC_OWNER: {{owner}}
diff --git a/automation/taskcluster/docker-decision/Dockerfile b/automation/taskcluster/docker-decision/Dockerfile
index 35777c0b7..473ce64ba 100644
--- a/automation/taskcluster/docker-decision/Dockerfile
+++ b/automation/taskcluster/docker-decision/Dockerfile
@@ -12,6 +12,9 @@ RUN chmod +x /home/worker/bin/*
ADD setup.sh /tmp/setup.sh
RUN bash /tmp/setup.sh
+# Change user.
+USER worker
+
# Env variables.
ENV HOME /home/worker
ENV SHELL /bin/bash
diff --git a/automation/taskcluster/docker-decision/bin/checkout.sh b/automation/taskcluster/docker-decision/bin/checkout.sh
index 9167f6bda..0cdd2ac40 100644
--- a/automation/taskcluster/docker-decision/bin/checkout.sh
+++ b/automation/taskcluster/docker-decision/bin/checkout.sh
@@ -2,11 +2,6 @@
set -v -e -x
-if [ $(id -u) = 0 ]; then
- # Drop privileges by re-running this script.
- exec su worker $0
-fi
-
# Default values for testing.
REVISION=${NSS_HEAD_REVISION:-default}
REPOSITORY=${NSS_HEAD_REPOSITORY:-https://hg.mozilla.org/projects/nss}