You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-08-08 04:42:07 +03:00
Add cross-compilation Makefile targets and tar-based releases.
Revamp the build system to be more inline with other Prometheus exporters. Notably add Darwin and Windows build targets, and add support for releases using tar files.
This commit is contained in:
17
tools/vendor/github.com/GoASTScanner/gas/README.md
generated
vendored
17
tools/vendor/github.com/GoASTScanner/gas/README.md
generated
vendored
@@ -112,3 +112,20 @@ file. The output format is controlled by the '-fmt' flag, and the output file is
|
||||
# Write output in json format to results.json
|
||||
$ gas -fmt=json -out=results.json *.go
|
||||
```
|
||||
|
||||
### Docker container
|
||||
|
||||
A Dockerfile is included with the Gas source code to provide a container that
|
||||
allows users to easily run Gas on their code. It builds Gas, then runs it on
|
||||
all Go files in your current directory. Use the following commands to build
|
||||
and run locally:
|
||||
|
||||
To build: (run command in cloned Gas source code directory)
|
||||
docker build --build-arg http_proxy --build-arg https_proxy
|
||||
--build-arg no_proxy -t goastscanner/gas:latest .
|
||||
|
||||
To run: (run command in desired directory with Go files)
|
||||
docker run -v $PWD:$PWD --workdir $PWD goastscanner/gas:latest
|
||||
|
||||
Note: Docker version 17.05 or later is required (to permit multistage build).
|
||||
```
|
||||
|
Reference in New Issue
Block a user