This is the official hemsaw mtconnect docker image
5.8K
Running a project form the prebuilt dockerhub libarary will speed up the build time.
To get the project running create a dockerfile, docker-entrypoint.sh, and a docker-compose.yml file similar to the ones below.
docker-compose.yml
version: '3.5'
services:
mtc_agent:
container_name: mtc_agent
hostname: mtc_agent
image: hemsaw/mtconnect:latest
user: agent
volumes:
- "/etc/mtconnect/config/:/mtconnect/config/"
- "/etc/mtconnect/data/ruby/:/mtconnect/data/ruby/"
ports:
- 5000:5000/tcp
entrypoint: "/usr/bin/mtcagent run /mtconnect/config/agent.cfg"
working_dir: "/home/agent"
restart: unless-stopped
mosquitto:
container_name: mosquitto
hostname: mosquitto
image: eclipse-mosquitto:latest
volumes:
- "/etc/mosquitto/conf.d/mosquitto.conf:/mosquitto/config/mosquitto.conf"
- "/etc/mosquitto/passwd:/mosquitto/data/passwd"
- "/etc/mosquitto/acl:/mosquitto/data/acl"
ports:
- 1883:1883/tcp
- 9001:9001/tcp
restart: unless-stopped
mtcagent [help|install|debug|run] [configuration_file]
help Prints this message
install Installs the service
remove Remove the service
debug Runs the agent on the command line with verbose logging
run Runs the agent on the command line
config_file The configuration file to load
Default: agent.cfg in current directory
When the agent is started without any arguments it is assumed it will be running as a service and will begin the service initialization sequence. The full path to the configuration file is stored in the registry in the following location:
\\HKEY_LOCAL_MACHINE\SOFTWARE\MTConnect\MTConnect Agent\ConfigurationFile
To push the asset you need to be in the source folder of the asset.
curl -d @ZWEQ063C34HPII.xml 'http://example.com:5000/assets/ZWEQ063C34HPII.1?device=HEMsaw&type=CuttingTool'
Note: depending on the setup of your computer you may have to run the sudo command on a linux machine to get docker-compose to build or destroy a process.
Content type
Image
Digest
sha256:abb6ac295…
Size
40.7 MB
Last updated
18 days ago
docker pull hemsaw/mtconnect