You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/02/25 00:55:33 UTC

[GitHub] [apisix-docker] tokers commented on a change in pull request #137: feat: support build apisix image from local code

tokers commented on a change in pull request #137:
URL: https://github.com/apache/apisix-docker/pull/137#discussion_r582412617



##########
File path: Makefile
##########
@@ -28,6 +28,10 @@ build-on-centos:
 build-on-alpine:
 	docker build -t $(IMAGE_NAME):$(APISIX_VERSION)-alpine -f ./alpine/Dockerfile .
 
+### build-on-alpine:      Build apaceh/apisix:xx-alpine image
+build-on-alpine-local:
+	docker build -t $(IMAGE_NAME):alpine-local --build-arg APISIX_VERSION=${APISIX_PATH} -f ./alpine-local/Dockerfile .

Review comment:
       It's strange to use the `APISIX_PATH` as the version, what about use the gitsha value.

##########
File path: .github/workflows/apisix-alpine-local-docker-test.yaml
##########
@@ -0,0 +1,43 @@
+name: APISIX Alpine local docker Test
+
+on:
+  push:
+    branches:
+      - master
+  pull_request:
+    branches:
+      - master
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: Build and run
+        run: |
+          git clone http://github.com/apache/apisix

Review comment:
       Why should we here clone APISIX?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org