picatz / goldengirl

✨ All that shimmers is gold!
MIT License
3 stars 0 forks source link

investigate docker #3

Closed picatz closed 6 years ago

picatz commented 6 years ago

docker is a possible option to run all of our services.

picatz commented 6 years ago

Example of Docker

This is a nice example of how to use docker:

FROM centos:7
MAINTAINER The CentOS Project <cloud-ops@centos.org>
LABEL Vendor="CentOS" \
      License=GPLv2 \
      Version=2.4.6-40

RUN yum -y --setopt=tsflags=nodocs update && \
    yum -y --setopt=tsflags=nodocs install httpd && \
    yum clean all

EXPOSE 80

# Simple startup script to avoid some issues observed with container restart
ADD run-httpd.sh /run-httpd.sh
RUN chmod -v +x /run-httpd.sh

CMD ["/run-httpd.sh"]
picatz commented 6 years ago

You can find plenty of other Docker examples all over the internet: https://github.com/CentOS/CentOS-Dockerfiles

picatz commented 6 years ago

Will be using docker.