# Packages
No description provided by the author
# README
xmidt-agent
The client agent for the Xmidt service.
Code of Conduct
This project and everyone participating in it are governed by the XMiDT Code Of Conduct. By participating, you agree to this Code.
Contributing
Refer to CONTRIBUTING.md.
Run xmidt-agent simulator as a docker container
- build xmidt-agent for alpine
cd cmd/xmidt-agent
env GOOS=linux GOARCH=arm64 go build .
- mv cmd/xmidt-agent/xmdidt-agent binary to the root directory
- from the root directory, build the docker container
docker build -t xmdit-agent .
- run the container
docker run xmdit-agent --dev
- Note that you will see a connection error unless a websocket server is running at the default url specified by websocket -> back_up_url in cmd/xmidt-agent/default-config.yaml.
- To override the default configuration, update the below config file OR bind a config file to target "/etc/xmidt-agent/xmidt-agent.yaml" at runtime:
.release/docker/config/config.yml
- If using TLS, the Dockerfile expects the certificate and key files to be ".release/docker/certs" at build time. Otherwise bind the directory at runtime.