Dockerfile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ARG version=7
  2. FROM centos:${version}
  3. ARG version
  4. ARG GEARMAN_REPO=https://github.com/gearman/gearmand
  5. LABEL description="Gearman Job Server Image (CentOS ${version}/x86_64)"
  6. LABEL maintainer="Gearmand Developers https://github.com/gearman/gearmand"
  7. LABEL version="https://github.com/gearman/gearmand/tree/master CentOS ${version}/x86_64"
  8. # Install packages
  9. RUN yum install -y \
  10. rpm-build \
  11. make \
  12. boost-devel \
  13. boost-thread \
  14. gcc-c++ \
  15. gperf \
  16. gperftools-devel \
  17. libevent-devel \
  18. libmemcached-devel \
  19. memcached \
  20. libuuid-devel \
  21. openssl-devel \
  22. sqlite-devel \
  23. tokyocabinet-devel \
  24. zlib-devel \
  25. git \
  26. libtool \
  27. python-sphinx
  28. ### Not available:
  29. # libpq-devel \
  30. # hiredis-devel \
  31. # mariadb-connector-c-devel \
  32. # Switch to a non-root user
  33. RUN adduser -M --shell /bin/bash gearman
  34. USER gearman
  35. # Clone the GitHub repository master branch
  36. RUN cd /tmp && git clone --depth 1 --branch master ${GEARMAN_REPO}.git
  37. # Bootstrap, configure, make, and make test
  38. WORKDIR /tmp/gearmand
  39. RUN ./bootstrap.sh -a
  40. RUN ./configure --enable-ssl 2>&1 | tee ./configure.log
  41. RUN make 2>&1 | tee ./build.log
  42. RUN make test 2>&1 | tee ./test.log