Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. Docker version 1.9.1, build a34a1d5
  2.  
  3. FROM ubuntu
  4.  
  5. # File Author / Maintainer
  6. MAINTAINER Parzee info@parzee.com
  7.  
  8. # Install Components.
  9.  
  10. # Update the repository
  11. ENV LANG en_US.UTF-8
  12. ENV DEBIAN_FRONTEND noninteractive
  13.  
  14. RUN apt-get update
  15. RUN locale-gen en_US en_US.UTF-8
  16. # Install necessary tools
  17. RUN apt-get install -y nano vim wget dialog net-tools
  18. RUN apt-get install lighttpd -y
  19. RUN apt-get install php5-common php5-cgi php5 -y
  20. RUN lighty-enable-mod fastcgi-php
  21. RUN update-rc.d -f lighttpd disable
  22. RUN mkdir -p /usr/local/src/imbue/application/imbue/utils/security/des
  23.  
  24. ADD lighttpd.conf /etc/lighttpd/
  25.  
  26. VOLUME ["/var/log/lighttpd"]
  27.  
  28. RUN ls -al /etc/lighttpd/lighttpd.conf
  29.  
  30. RUN /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
  31.  
  32. EXPOSE 8083
  33.  
  34. lighttpd:
  35. image: parzee/lighttpd
  36. ports:
  37. - "8083:8083"
  38. volumes:
  39. - volumes/log:/var/log/lighttpd
  40.  
  41. docker run -h lighttpd -p 8083:8083 -d -v `pwd`/volumes/log:/var/log/lighttpd -t parzee/lighttpd
  42.  
  43. Creating lighttpd_lighttpd_1
  44. ERROR: Conflict. The name "lighttpd_lighttpd_1" is already in use by container e7ec110d68ad. You have to remove (or rename) that container to be able to reuse that name.
  45. # docker images
  46. REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
  47. parzee/lighttpd latest 47cf7b87858d 43 minutes ago 299.7 MB
  48. parzee/loadbalancer latest db1cb8f5f4e2 9 hours ago 295.4 MB
  49. parzee/application latest a2a632be751b 11 hours ago 722.9 MB
  50. parzee/imbue latest 5347302fee40 4 days ago 1.347 GB
  51. parzee/database latest eb2faddc2a5c 4 days ago 374.5 MB
  52. ubuntu 14.04 c4bea91afef3 5 weeks ago 187.9 MB
  53. ubuntu latest c4bea91afef3 5 weeks ago 187.9 MB
  54. # docker ps -al
  55. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  56. 2eb1565da8d5 parzee/lighttpd "/bin/bash" 33 minutes ago Exited (0) 21 minutes ago modest_almeida
  57.  
  58. docker rm lighttpd_lighttpd_1
  59.  
  60. docker-compose up
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement