https://github.com/xmidt-org/xmidt-agent
The client agent for the Xmidt service.
https://github.com/xmidt-org/xmidt-agent
Last synced: about 2 months ago
JSON representation
The client agent for the Xmidt service.
- Host: GitHub
- URL: https://github.com/xmidt-org/xmidt-agent
- Owner: xmidt-org
- License: apache-2.0
- Created: 2023-09-08T01:55:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T09:53:54.000Z (7 months ago)
- Last Synced: 2024-10-29T11:53:06.628Z (7 months ago)
- Language: Go
- Size: 1.01 MB
- Stars: 2
- Watchers: 12
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# xmidt-agent
The client agent for the Xmidt service.[](https://github.com/xmidt-org/xmidt-agent/actions/workflows/ci.yml)
[](http://codecov.io/github/xmidt-org/xmidt-agent?branch=main)
[](https://goreportcard.com/report/github.com/xmidt-org/xmidt-agent)
[](https://github.com/xmidt-org/xmidt-agent/blob/main/LICENSE)
[](CHANGELOG.md)## Code of Conduct
This project and everyone participating in it are governed by the [XMiDT Code Of Conduct](https://xmidt.io/code_of_conduct/).
By participating, you agree to this Code.## Contributing
Refer to [CONTRIBUTING.md](CONTRIBUTING.md).
## Run xmidt-agent simulator as a docker container
1. build xmidt-agent for alpine
```cd cmd/xmidt-agent```
```env GOOS=linux GOARCH=arm64 go build .```
2. mv cmd/xmidt-agent/xmdidt-agent binary to the root directory
3. from the root directory, build the docker container
```docker build -t xmdit-agent .```
4. run the container
```docker run xmdit-agent --dev```
5. 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.
6. 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```
7. 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.