Use `airflow` as default user
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 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