项目作者: pcdshub

项目描述 :
[Docker] ads-ioc / EPICS IOC docker image for communicating with Beckhoff TwinCAT-based PLCs via ADS
高级语言: Dockerfile
项目地址: git://github.com/pcdshub/ads-ioc-docker.git
创建时间: 2019-08-21T22:53:04Z
项目社区:https://github.com/pcdshub/ads-ioc-docker

开源协议:

下载


ads-ioc docker image

Running an IOC:

  1. #
  2. $ eval $(docker-machine env)
  3. $ docker run -im pcdshub/ads-ioc:R0.6.1
  4. epics>

Args to be passed to the adsIoc binary can be specified after the image name
above. For example:

  1. $ docker run -im pcdshub/ads-ioc:R0.6.1 st.cmd

Updating ads-ioc-docker

Prior to updating ads-deploy, first update this docker image.

  1. 1. Tag and release ads-ioc
  2. a. Use the R0.0.0 style in accordance with module/IOC
  3. versioning standards
  4. 2. Update the Dockerfile
  5. a. Update any dependency versions that may have changed in the
  6. latest release
  7. b. If the ADS module itself has been updated, update
  8. `ADS_MODULE_VERSION`.
  9. c. Near the end of the Dockerfile, update `ADS_IOC_VERSION`.
  10. Note that this is separate from the other sections, as putting it
  11. near the top would cause an unnecessary rebuild of all dependencies
  12. upon update of the `ADS_IOC_VERSION`.
  13. 3. Rebuild
  14. ```
  15. $ export ADS_IOC_VERSION={version here}
  16. $ docker build -t pcdshub/ads-ioc:${ADS_IOC_VERSION} .
  17. $ docker build -t pcdshub/ads-ioc:latest .
  18. ```
  19. 4. Push
  20. ```
  21. $ docker push pcdshub/ads-ioc:${ADS_IOC_VERSION}
  22. $ docker push pcdshub/ads-ioc:latest
  23. ```
  24. 5. Commit, tag, and push to GitHub
  25. ```
  26. $ git tag ${ADS_IOC_VERSION}
  27. $ git push
  28. $ git push --tags
  29. ```