Giter Site home page Giter Site logo

fmls / tat-agent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tencent/tat-agent

0.0 0.0 0.0 258 KB

TAT agent is an agent written in Rust, which run in CVM, Lighthouse or CPM 2.0 instances. Its role is to run commands remotely without ssh login, invoked from TencentCloud Console/API. Commands include but not limited to: Shell, PowerShell, Python. TAT stands for TencentCloud Automation Tools. See more info at https://cloud.tencent.com/product/tat.

License: Other

Shell 8.29% Rust 88.29% PowerShell 0.74% Makefile 0.99% HTML 0.92% Batchfile 0.73% Dockerfile 0.05%

tat-agent's Introduction

简体中文 | English

TAT Agent

TAT agent is an agent written in Rust, which run in CVM, Lighthouse or CPM 2.0 instances. Its role is to run commands remotely without ssh login, invoked from TencentCloud Console/API. Commands include but not limited to: shell, python, php, you can provide any script interpreter at first line, such as: #!/bin/bash, #!/usr/bin/env python3.8. See more info at https://cloud.tencent.com/product/tat .

prerequisites

# some dependencies
yum install -y gcc docker
# install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# reload your PATH environment variable to include Cargo
source $HOME/.cargo/env
# add target
rustup target add x86_64-unknown-linux-musl
rustup target add i686-unknown-linux-musl
# start docker daemon
systemctl start docker
# install tool to cross-compile Rust
cargo install cross

build & install

  • Linux
make run

Build a pure static binary in release mode with the real domain, need docker installed.

  • Windows
.\install\build.bat
.\install\install.bat 

stop

  • Linux
make stop

Stop the daemon via systemctl, or kill by pid which was written in a pidfile.

  • Windows
.\install\stop.bat

other

See more details at Makefile.

supported OS

Binary can run at both Linux & Windows Distributions, including but not limited to:

  • Tencent Linux
  • CentOS
  • Ubuntu
  • Debian
  • openSUSE
  • SUSE
  • CoreOS

tat-agent's People

Contributors

hustclf avatar lixiaofei123 avatar m0renet avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.