summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile.dev17
-rwxr-xr-xrun-dev.sh7
2 files changed, 24 insertions, 0 deletions
diff --git a/Dockerfile.dev b/Dockerfile.dev
new file mode 100644
index 0000000..a2735b1
--- /dev/null
+++ b/Dockerfile.dev
@@ -0,0 +1,17 @@
+FROM ansible/baseimage:20.04
+
+RUN apt update \
+ && DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
+ python3-apt \
+ python3-dev \
+ python3-virtualenv \
+ virtualenv \
+ python3-flake8 \
+ flake8 \
+ libldap2-dev \
+ libsasl2-dev \
+ libssl-dev
+RUN mkdir -p /srv/patchwork-tools
+
+
+CMD ["/usr/sbin/sshd", "-D"]
diff --git a/run-dev.sh b/run-dev.sh
new file mode 100755
index 0000000..f967328
--- /dev/null
+++ b/run-dev.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+docker run -d --name patches.linaro.org \
+ -e ANSIBLE_GROUP=patchwork \
+ -e ANSIBLE_HOST=patches.linaro.org \
+ -v $(pwd):/srv/workspace \
+ ansible/baseimage:20.04