m-web-server.dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. FROM yottadb/yottadb-base:latest
  2. ARG DEBIAN_FRONTEND=noninteractive
  3. RUN apt update && \
  4. apt upgrade -y && \
  5. apt install -y \
  6. libcurl4-openssl-dev \
  7. git
  8. # Install cURL plugin
  9. RUN git clone https://github.com/shabiel/fis-gtm-plugins.git
  10. ENV LD_LIBRARY_PATH /opt/yottadb/current
  11. RUN cd fis-gtm-plugins/libcurl && \
  12. . /opt/yottadb/current/ydb_env_set && \
  13. export gtm_dist=$ydb_dist && \
  14. make install
  15. # Install M-Unit
  16. RUN git clone https://github.com/ChristopherEdwards/M-Unit.git munit
  17. RUN cd munit && \
  18. mkdir r && \
  19. cd Routines && \
  20. for file in _*.m; do mv $file /data/munit/r/; done
  21. RUN git clone https://github.com/sumeetchhetri/M-Web-Server
  22. RUN mkdir -p /mwebserver/r && cp -rf M-Web-Server/src/* /mwebserver/r
  23. # Install M-Web-Server
  24. COPY _techempbenchmark.m /mwebserver/r/
  25. ENV GTMXC_libcurl "/opt/yottadb/current/plugin/libcurl_ydb_wrapper.xc"
  26. RUN . /opt/yottadb/current/ydb_env_set && \
  27. export ydb_routines="/mwebserver/r /data/munit/r $ydb_routines" && \
  28. mumps -r ^%webtest
  29. COPY run.sh ./
  30. RUN chmod +x run.sh
  31. CMD ./run.sh