This is an automated email from the ASF dual-hosted git repository.

warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 0807765c0841abea9dd0985ed6d5adeb94812493
Author: cong.wang <[email protected]>
AuthorDate: Tue Jun 7 14:50:09 2022 +0800

    chore: create alpine-dbt-mysql
    
    preinstall python and dbt-mysql in mericodev/alpine-dbt-mysql image.
    to prevent install it every time we release lake
    
    fix #1692
---
 Dockerfile                         | 10 +---------
 devops/alpine-dbt-mysql/Dockerfile | 10 ++++++++++
 devops/alpine-dbt-mysql/README.md  | 11 +++++++++++
 3 files changed, 22 insertions(+), 9 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 36666fb0..6b59f04a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -27,15 +27,7 @@ ENV GOBIN=/app/bin
 
 RUN make clean && make all
 
-FROM --platform=linux/amd64 alpine:3.15
-RUN apk add --no-cache musl-dev libgit2-dev libffi-dev \
-    && apk add --no-cache gcc
-
-ENV PYTHONUNBUFFERED=1
-RUN apk add --update --no-cache python3-dev && ln -sf python3 /usr/bin/python
-RUN python3 -m ensurepip
-RUN pip3 install --no-cache --upgrade pip setuptools
-RUN pip3 install dbt-mysql
+FROM --platform=linux/amd64 mericodev/alpine-dbt-mysql:0.0.1
 
 EXPOSE 8080
 
diff --git a/devops/alpine-dbt-mysql/Dockerfile 
b/devops/alpine-dbt-mysql/Dockerfile
new file mode 100644
index 00000000..f827093c
--- /dev/null
+++ b/devops/alpine-dbt-mysql/Dockerfile
@@ -0,0 +1,10 @@
+FROM --platform=linux/amd64 alpine:3.15
+RUN apk add --no-cache musl-dev libgit2-dev libffi-dev \
+    && apk add --no-cache gcc
+
+ENV PYTHONUNBUFFERED=1
+RUN apk add --update --no-cache python3-dev && ln -sf python3 /usr/bin/python
+RUN python3 -m ensurepip
+RUN pip3 install --no-cache --upgrade pip setuptools
+RUN pip3 install dbt-mysql
+RUN apk add --no-cache tar
diff --git a/devops/alpine-dbt-mysql/README.md 
b/devops/alpine-dbt-mysql/README.md
new file mode 100644
index 00000000..d0f92e5f
--- /dev/null
+++ b/devops/alpine-dbt-mysql/README.md
@@ -0,0 +1,11 @@
+# alpine-dbt-mysql
+alpine linux image with dbt-mysql installed
+
+https://hub.docker.com/r/mericodev/alpine-dbt-mysql
+
+## release
+```shell
+export VERSION=0.0.1
+docker build -t mericodev/alpine-dbt-mysql:$VERSION .
+docker push mericodev/alpine-dbt-mysql:$VERSION
+```

Reply via email to