Dockerfile 970 B

123456789101112131415161718192021222324252627282930313233343536
  1. FROM centos:7
  2. MAINTAINER "S Balyan <shubham.balyan@kit.edu>"
  3. RUN mkdir -p /foo/epics
  4. WORKDIR /foo/epics/
  5. RUN yum update -y && yum install -yq wget apt-transport-https
  6. RUN yum install -y make
  7. RUN yum groupinstall -y 'Development Tools'
  8. RUN yum install -y procserv telnet git gcc
  9. RUN git clone https://github.com/epics-base/epics-base.git .
  10. RUN file="$(ls -1 /foo/epics/)" && echo $file
  11. RUN com="$(gcc -v)" && echo $com
  12. RUN make
  13. ENV EPICS_BASE=/foo/epics
  14. ENV EPICS_HOST_ARCH=linux-x86_64
  15. ENV PATH=${EPICS_BASE}/bin/${EPICS_HOST_ARCH}:${PATH}
  16. EXPOSE 5064-5065 5064-5065/udp
  17. EXPOSE 5075 5076/udp
  18. COPY ./st.cmd /foo/epics/ioc/st.cmd
  19. COPY ./opcuaIoc /foo/epics/ioc/opcuaIoc
  20. COPY ./opcuaIoc.dbd /foo/epics/ioc/opcuaIoc.dbd
  21. COPY ./db.db /foo/epics/ioc/db.db
  22. RUN chmod +x /foo/epics/ioc/st.cmd
  23. RUN chmod +x /foo/epics/ioc/opcuaIoc
  24. RUN chmod +x /foo/epics/ioc/opcuaIoc.dbd
  25. RUN chmod +x /foo/epics/ioc/db.db
  26. WORKDIR /foo/epics/ioc/
  27. RUN work_dir="$(pwd)" && echo $work_dir