From 699c751c38750f5d06a6724f669861d206f7a3e7 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Sun, 14 Nov 2021 14:28:04 +0000 Subject: [PATCH] feat: add clang-tools:11-alpine-3.14 --- 11/alpine-3.14/Dockerfile | 13 +++++++++++++ Makefile | 6 ++++-- README.md | 2 ++ deploy.env | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 11/alpine-3.14/Dockerfile diff --git a/11/alpine-3.14/Dockerfile b/11/alpine-3.14/Dockerfile new file mode 100644 index 0000000..296db7c --- /dev/null +++ b/11/alpine-3.14/Dockerfile @@ -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 [""] diff --git a/Makefile b/Makefile index 7fa5880..32ca0d0 100644 --- a/Makefile +++ b/Makefile @@ -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 \ @@ -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 diff --git a/README.md b/README.md index 2ff7bea..a61ef27 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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) diff --git a/deploy.env b/deploy.env index f41899f..cefc571 100644 --- a/deploy.env +++ b/deploy.env @@ -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