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

相关文章
|
7月前
|
存储 安全 Java
Springboot云HIS(Cloud-Based Healthcare Information System)系统源码
Springboot云HIS(Cloud-Based Healthcare Information System)系统源码
96 0
|
安全
|
网络协议 关系型数据库 Linux
Cloud platform build management Topic | Cloud computing (FREE)
云平台构建及管理习题(试读)
168 0
|
安全 数据库
New Product Launch: Alibaba Cloud ElasticSearch
Stay ahead of Big Data to discover the expected and uncover the unexpected with Alibaba Cloud ElasticSearch
10107 2
New Product Launch: Alibaba Cloud ElasticSearch
|
分布式计算 关系型数据库 数据库
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.
14605 0
New Product Launch: Alibaba Cloud Data Integration
|
Java Maven Android开发
《Cloud Toolkit User Guide》
Alibaba Cloud Toolkit,面向 IDE(如 Eclipse 或 IntelliJ IDEA )的插件,帮助开发者更高效的开发、测试、诊断并部署适合云端运行的应用
38389 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.
18987 0
Starting Out In Web Hosting: Alibaba Cloud For New Businesses
|
弹性计算 Shell 网络安全
Advanced WordPress Management Using WP-CLI on Alibaba Cloud ECS – Part 3
This three-part tutorial walks you through setting up WordPress advanced management with WP-CLI. Part 3 focuses on managing multiple WordPress sites with WP-CLI on Alibaba Cloud ECS.
1292 0
Advanced WordPress Management Using WP-CLI on Alibaba Cloud ECS – Part 3
|
弹性计算 Linux PHP
Advanced WordPress Management Using WP-CLI on Alibaba Cloud ECS – Part 2
This three-part tutorial walks you through setting up WordPress advanced management with WP-CLI. Part 2 focuses on managing WordPress with WP-CLI on Alibaba Cloud ECS.
2482 0
Advanced WordPress Management Using WP-CLI on Alibaba Cloud ECS – Part 2