This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker setup for running tools/format.sh. (#299)
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM ubuntu:cosmic | ||
|
||
RUN apt update && \ | ||
apt install -y clang-format golang git python-pip && \ | ||
go get -v github.com/bazelbuild/buildtools/buildifier && \ | ||
pip install cmake_format | ||
|
||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Docker container for automatic formatting. | ||
|
||
Usage: | ||
|
||
```shell | ||
cd opencensus-cpp | ||
docker build --tag opencensus-cpp/format tools/docker-format | ||
docker run -v $PWD:/opencensus-cpp -it opencensus-cpp/format /opencensus-cpp/tools/docker-format/run.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
export PATH=/root/go/bin:$PATH | ||
cd /opencensus-cpp | ||
tools/format.sh |