Tencent Cloud Code Analysis介绍及安装部署

简介: Tencent Cloud Code Analysis介绍及安装部署

1. TCA简介

2022年1月4号腾讯云开源了旗下代码审计平台TCA,全称Tencent Cloud Code Analysis,支持对Java、C++、Objective-C、C#、JavaScript、Python、Go、PHP 等数十种语言进行代码检查、代码度量、DevOps集成。这篇文章就介绍下使用开源工具搭建一个代码审计平台。

2.搭建TCA代码审计平台

TCA github地址:https://github.com/Tencent/CodeAnalysis

项目提供组件安装和docker部署2种方式,我比较建议docker部署,会省很多事情。文档有中英2版,也比较清晰。我只说几个要注意的点:

2.1 环境版本选择:

系统:CentOS Linux release 7.6.1810

Docker-ce:20.10.14,

docker-compose : 2.2.0 (这里需要注意,docker-compose默认现在下载最新的是2.3.3版本,这个版本在运行初始化脚本时会报错)

Git :1.8.3.1

2.2 安装过程

a.使用git下周源代码:

git clone https://github.com/Tencent/CodeAnalysis.git

b.给代码目录授权:

chmod  -R 777 CodeAnalysis

c.在代码根目录下执行初始化脚本:

./compose_init.sh

d. 在脚本刚执行时,需要按照提示输入默认密码:

image.png

e, 如果在过程中出现Error response from daemon: dockerfile parse error line 1: unknown instruction: .DOCKERIGNORE错误,如下图

image.png

证明docker-compose版本有错,需要更换到v2.2.0版本

f.运行成功,如下图

image.png

g. 访问在浏览器访问系统IP即可,web占用的是80端口,默认用户名CodeDog,默认密码admin

image.png

相关文章
|
5月前
|
JavaScript 前端开发 API
【Azure Developer】use @azure/arm-monitor sdk 遇见 ManagedIdentityCredential authentication failed.(status code 500)
【Azure Developer】use @azure/arm-monitor sdk 遇见 ManagedIdentityCredential authentication failed.(status code 500)
|
网络协议 关系型数据库 Linux
Cloud platform build management Topic | Cloud computing (FREE)
云平台构建及管理习题(试读)
168 0
|
安全
《Data Outsourcing in Cloud Computing:Reliability, Security and Privacy》电子版地址
Data Outsourcing in Cloud Computing:Reliability, Security and Privacy
92 0
《Data Outsourcing in Cloud Computing:Reliability, Security and Privacy》电子版地址
|
分布式计算 关系型数据库 数据库
New Product Launch: Alibaba Cloud Data Integration
Support online real-time & offline data exchange between all data sources, networks and locations with Alibaba Cloud Data Integration.
14607 0
New Product Launch: Alibaba Cloud Data Integration
|
Java Maven Android开发
《Cloud Toolkit User Guide》
Alibaba Cloud Toolkit,面向 IDE(如 Eclipse 或 IntelliJ IDEA )的插件,帮助开发者更高效的开发、测试、诊断并部署适合云端运行的应用
38409 1
Starting Out In Web Hosting: Alibaba Cloud For New Businesses
The web is where the majority of purchases begin, as today's tech-savvy consumers search online for the products they want or need.
18992 0
Starting Out In Web Hosting: Alibaba Cloud For New Businesses
|
弹性计算 Apache iOS开发
A Quick Guide to Analyzing Apache Logs on Alibaba Cloud Log Service
This article describes how you can deploy Logstash and Kibana on Alibaba Cloud Log Service to monitor, analyze, and visualize Apache logs.
2321 0
A Quick Guide to Analyzing Apache Logs on Alibaba Cloud Log Service
|
安全 物联网 API
Security Authentication Framework in AliOS Things uMesh
Discover how AliOS Things safeguards the integrity of IoT networks with uMesh and Internet Device ID authentication.
4214 0
Security Authentication Framework in AliOS Things uMesh

热门文章

最新文章