Skip to content

feat: add clang-tools:11-alpine-3.14 #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions 11/alpine-3.14/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM alpine:3.14

RUN apk update \
&& apk add --no-cache clang-extra-tools

RUN echo "--- Clang-format version ---" \
&& clang-format --version \
&& echo "--- Clang-tidy version ---" \
&& clang-tidy --version

WORKDIR /src

CMD [""]
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ help: ## This help.

# DOCKER TASKS
build: ## Build a docker image
docker build -t $(APP_NAME) -f $(FILE) .
docker build -t $(APP_NAME):$(TAG) -f $(FILE) .

build-nc: ## Build a docker image without caching
docker build --no-cache -t $(APP_NAME) -f $(FILE) .
# for example: make build-nc FILE=11/alpine-3.14/Dockerfile TAG=11-alpine-3.14
docker build --no-cache -t $(APP_NAME):$(TAG) -f $(FILE) .

build-all-nc: ## Build all docker images without caching
for TAG in $(APP_TAGS) ; do \
Expand All @@ -32,6 +33,7 @@ release: build-nc publish ## Release and publish a docker image to registry
release-all: build-all-nc docker-login docker-tag-all docker-push-all ## Release and publish all images to registry

publish: docker-login docker-tag docker-push ## Publish a docker image to registry
# for example: make publish FILE=11/alpine-3.14/Dockerfile TAG=11-alpine-3.14

publish-all: docker-login docker-tag-all docker-push-all ## Publish all docker images to registry

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/xianpengshen/clang-tools/all)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/xianpengshen/clang-tools/12)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/xianpengshen/clang-tools/11)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/xianpengshen/clang-tools/11-alpine-3.14)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/xianpengshen/clang-tools/10)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/xianpengshen/clang-tools/9)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/xianpengshen/clang-tools/8)
Expand All @@ -20,6 +21,7 @@
* [clang-tools:all](https://github.com/shenxianpeng/clang-tools/blob/master/all/Dockerfile) (supports all versions of the below tags)
* [clang-tools:12](https://github.com/shenxianpeng/clang-tools/blob/master/12/Dockerfile)
* [clang-tools:11](https://github.com/shenxianpeng/clang-tools/blob/master/11/Dockerfile)
* [clang-tools:11-alpine-3.14](https://github.com/shenxianpeng/clang-tools/blob/master/11/alpine-3.14/Dockerfile)
* [clang-tools:10](https://github.com/shenxianpeng/clang-tools/blob/master/10/Dockerfile)
* [clang-tools:9](https://github.com/shenxianpeng/clang-tools/blob/master/9/Dockerfile)
* [clang-tools:8](https://github.com/shenxianpeng/clang-tools/blob/master/8/Dockerfile)
Expand Down
2 changes: 1 addition & 1 deletion deploy.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# You have to define the values in {}
APP_NAME=clang-tools
APP_TAGS=all 12 11 10 9 8 7 6
APP_TAGS=all 12 11 11-alpine-3.14 10 9 8 7 6
DOCKER_HUB=xianpengshen
DOCKER_PKG=ghcr.io/shenxianpeng