You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by fo...@apache.org on 2018/08/19 18:25:30 UTC
[incubator-airflow-ci] 29/34: Use `airflow` as default user
This is an automated email from the ASF dual-hosted git repository.
fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-airflow-ci.git
commit 617b3631ba826034120590e31a0523d316be081a
Author: Gerardo Curiel <ge...@rea-group.com>
AuthorDate: Tue May 29 15:05:04 2018 +1000
Use `airflow` as default user
---
.gitignore | 1 +
Dockerfile.base | 8 ++++++++
2 files changed, 9 insertions(+)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2c257d4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.tags
diff --git a/Dockerfile.base b/Dockerfile.base
index e930823..311f42e 100644
--- a/Dockerfile.base
+++ b/Dockerfile.base
@@ -20,6 +20,8 @@
FROM ubuntu:xenial
+USER root
+
ENV DEBIAN_FRONTEND noninteractive
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
@@ -93,3 +95,9 @@ RUN cd /tmp && \
RUN pip install --upgrade pip && \
hash -r pip && \
pip install tox codecov
+
+RUN adduser airflow && \
+ echo "airflow ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/airflow && \
+ chmod 0440 /etc/sudoers.d/airflow
+
+USER airflow