-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0cbca41
commit f218ea8
Showing
6 changed files
with
38 additions
and
4 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
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
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
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 @@ | ||
FROM manu343726/tinyrefl:clang-format | ||
MAINTAINER Manu Sanchez <Manu343726@gmail.com> | ||
|
||
ENTRYPOINT /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,22 @@ | ||
# Image based on https://hub.docker.com/r/unibeautify/clang-format | ||
# but adds git so we can diff the clang-format result on CI | ||
|
||
FROM debian:sid-slim | ||
MAINTAINER Manu Sanchez <Manu343726@gmail.com> | ||
|
||
ARG CLANG_FORMAT_VERSION_ARG=6.0 | ||
ENV CLANG_FORMAT_VERSION=$CLANG_FORMAT_VERSION_ARG | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y clang-format-${CLANG_FORMAT_VERSION} git && \ | ||
apt-get clean | ||
|
||
RUN update-alternatives \ | ||
--install /usr/bin/clang-format clang-format /usr/bin/clang-format-${CLANG_FORMAT_VERSION} 50 | ||
|
||
# switch to uid/gid identical to host uid/gid (forks/users), if not doing this, files that | ||
# clang-format written will change user and group all to root. | ||
USER 1000:100 | ||
|
||
ENTRYPOINT ["clang-format"] | ||
CMD ["--help"] |
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