diff options
author | Kelley Spoon <kelley.spoon@linaro.org> | 2021-10-15 07:19:36 -0500 |
---|---|---|
committer | Kelley Spoon <kelley.spoon@linaro.org> | 2021-11-10 08:24:06 -0600 |
commit | 70cbbdd6bcf760c8e10f61768c0b7940c1852cf2 (patch) | |
tree | 3556089d0cc4374d24326096508999f9c66bcb37 | |
parent | c3283fc8d9574209c451ff6c45474256ec80745c (diff) |
patchwork-tools: add in support a docker dev environment
In order to ease development for migrating to python3,
let's create a docker dev environment.
Change-Id: Ic2e485ea945875bb1cc115207c3bdda79517e784
-rw-r--r-- | Dockerfile.dev | 17 | ||||
-rwxr-xr-x | run-dev.sh | 7 |
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 |