diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-03-02 08:35:23 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-03-02 08:35:23 +0200 |
commit | 18f75c61e8a40892f44f4d156340603a39f9da88 (patch) | |
tree | 86be4470ed003fa4a454a1723f120da85e1cf607 /centos7-aarch64 | |
parent | 974b0796b236572a2c24d9868bf55ea2e948761f (diff) |
centos7: buildslave doesn't require tty
fix error: sudo: sorry, you must have a tty to run sudo
when centos7 docker image is run with jenkins docker plugin.
Change-Id: I481d0988c14f779205835c7b89a49b902ebcdcd8
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'centos7-aarch64')
-rw-r--r-- | centos7-aarch64/Dockerfile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/centos7-aarch64/Dockerfile b/centos7-aarch64/Dockerfile index ae2b08df..e52b2349 100644 --- a/centos7-aarch64/Dockerfile +++ b/centos7-aarch64/Dockerfile @@ -14,6 +14,7 @@ RUN rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7 \ RUN useradd -p '$6$7tSX2YU5Q$ydZwAuWtNPPBb1Fv/tzy3eFeEP/ThDBUjV/4vHVx6bVyfYMX6Q9PYhdV/CyJg7uthSIqIyzlNF65NVB1xwGtt0/' buildslave \ && echo 'buildslave ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/jenkins \ + && echo 'Defaults:buildslave !requiretty' >> /etc/sudoers.d/jenkins \ && chmod 0440 /etc/sudoers.d/jenkins \ && mkdir -p /var/run/sshd \ && /usr/sbin/sshd-keygen |