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 2020/12/29 08:23:05 UTC
[GitHub] [apisix-dashboard] imjoey opened a new pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
imjoey opened a new pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146
Signed-off-by: imjoey <ma...@gmail.com>
Please answer these questions before submitting a pull request
- Why submit this pull request?
- [x] Bugfix
- [ ] New feature provided
- [ ] Improve performance
- Related issues
Fixes #1145 .
___
### Bugfix
- Description
For now, the `Dockerfile` in master branch fetches the codes from release `v2.0` for building docker images. This would lead to uses could not get the latest code for developing or testing. IMHO, the release tag could be used here only for the Dockerfile defined in tag `v2.0` or `v2.0` branch.
- How to fix?
This PR is going to set the variable `APISIX_DASHBOARD_VERSION ` to `master`, and then we can use the latest code from master branch, as expected.
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] imjoey commented on a change in pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
imjoey commented on a change in pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#discussion_r549642370
##########
File path: Dockerfile
##########
@@ -16,7 +16,7 @@
#
FROM alpine:latest as pre-build
-ARG APISIX_DASHBOARD_VERSION=v2.0
+ARG APISIX_DASHBOARD_VERSION=master
Review comment:
> We could merge this one first :) When that repo is created, let's reupdate this repo's documentation.
@juzhiyuan ok, thank you very much. Shall we need to fix the same issue at https://github.com/apache/apisix-docker/blob/master/all-in-one/apisix-dashboard/Dockerfile#L36 for now?
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] imjoey commented on pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
imjoey commented on pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#issuecomment-752047101
> > I found that this pr did not conflict with master branch, but it still needed to do `merger master`, so are there any settings? @juzhiyuan
>
> emmm Update Branch means we have to sync codes with the latest codes on the master branch, it's used to make sure every PR's action would run successfully after merged.
ok, it's reasonable. Thanks. @juzhiyuan .
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan commented on a change in pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on a change in pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#discussion_r549643564
##########
File path: Dockerfile
##########
@@ -16,7 +16,7 @@
#
FROM alpine:latest as pre-build
-ARG APISIX_DASHBOARD_VERSION=v2.0
+ARG APISIX_DASHBOARD_VERSION=master
Review comment:
Ya!
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] imjoey commented on a change in pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
imjoey commented on a change in pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#discussion_r549618247
##########
File path: Dockerfile
##########
@@ -16,7 +16,7 @@
#
FROM alpine:latest as pre-build
-ARG APISIX_DASHBOARD_VERSION=v2.0
+ARG APISIX_DASHBOARD_VERSION=master
Review comment:
> Good catch! and should we still keep this file? We have an an-in-one Dockerfile here[1]. 🤔
>
> cc @membphis @liuxiran @gxthrj @ShiningRush
>
> [1] https://github.com/apache/apisix-docker/blob/master/all-in-one/apisix-dashboard/Dockerfile
@juzhiyuan that's right. In any case, we'd better not keep two copies for a single file. The `all-in-one` is better for me (of course, we also need this patch for that). While, I would say there's one question that's worth noting: how can we build a docker image for apisix-dashboard continuously once every single commit gets merged, if using a dockerfile stored in another repository? Looking forward to your insights. Thanks.
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan commented on a change in pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on a change in pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#discussion_r549638898
##########
File path: Dockerfile
##########
@@ -16,7 +16,7 @@
#
FROM alpine:latest as pre-build
-ARG APISIX_DASHBOARD_VERSION=v2.0
+ARG APISIX_DASHBOARD_VERSION=master
Review comment:
We could merge this one first :) When that repo is created, let's reupdate this repo's documentation.
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan commented on a change in pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on a change in pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#discussion_r549614154
##########
File path: Dockerfile
##########
@@ -16,7 +16,7 @@
#
FROM alpine:latest as pre-build
-ARG APISIX_DASHBOARD_VERSION=v2.0
+ARG APISIX_DASHBOARD_VERSION=master
Review comment:
Good catch! and should we still keep this file? We have an an-in-one Dockerfile here[1]. 🤔
cc @membphis @liuxiran @gxthrj @ShiningRush
[1] https://github.com/apache/apisix-docker/blob/master/all-in-one/apisix-dashboard/Dockerfile
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] codecov-io commented on pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
codecov-io commented on pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#issuecomment-751993019
# [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1146?src=pr&el=h1) Report
> Merging [#1146](https://codecov.io/gh/apache/apisix-dashboard/pull/1146?src=pr&el=desc) (27e9cc2) into [master](https://codecov.io/gh/apache/apisix-dashboard/commit/8f94c844218913fdf9e36cd7c62bbe94188ffed3?el=desc) (8f94c84) will **decrease** coverage by `0.05%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/apisix-dashboard/pull/1146?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #1146 +/- ##
==========================================
- Coverage 42.30% 42.25% -0.06%
==========================================
Files 31 31
Lines 1924 1924
==========================================
- Hits 814 813 -1
- Misses 1000 1001 +1
Partials 110 110
```
| [Impacted Files](https://codecov.io/gh/apache/apisix-dashboard/pull/1146?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [api/internal/core/store/store.go](https://codecov.io/gh/apache/apisix-dashboard/pull/1146/diff?src=pr&el=tree#diff-YXBpL2ludGVybmFsL2NvcmUvc3RvcmUvc3RvcmUuZ28=) | `79.37% <0.00%> (-0.63%)` | :arrow_down: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1146?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/apisix-dashboard/pull/1146?src=pr&el=footer). Last update [8f94c84...27e9cc2](https://codecov.io/gh/apache/apisix-dashboard/pull/1146?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] imjoey commented on pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
imjoey commented on pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#issuecomment-752026857
> I found that this pr did not conflict with master branch, but it still needed to do `merger master`, so are there any settings?
@juzhiyuan @liuxiran yep. As far as I know, we need to rebase code only when there has conflicts which may completely block merging action. So shall we need keep every PR updated with the latest code base before merging? Much appreciated.
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] liuxiran commented on pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
liuxiran commented on pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#issuecomment-752039540
> > I found that this pr did not conflict with master branch, but it still needed to do `merger master`, so are there any settings? @juzhiyuan
>
> emmm Update Branch means we have to sync codes with the latest codes on the master branch, it's used to make sure every PR's action would run successfully after merged.
got it!
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan merged pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
juzhiyuan merged pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] liuxiran commented on pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
liuxiran commented on pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#issuecomment-752025374
I found that this pr did not conflict with master branch, but it still needed to do `merger master`, so are there any settings? @juzhiyuan
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] imjoey commented on a change in pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
imjoey commented on a change in pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#discussion_r549626008
##########
File path: Dockerfile
##########
@@ -16,7 +16,7 @@
#
FROM alpine:latest as pre-build
-ARG APISIX_DASHBOARD_VERSION=v2.0
+ARG APISIX_DASHBOARD_VERSION=master
Review comment:
> Oh yes, I'm working on Dashboard Image in DockerHub, once it's approved from ASF, we could add CI to auto-publish Docker Image to DockerHub.
@juzhiyuan that's great, and I would choose the `all-in-one`. Let's see others' opinions. Thank you very much.
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan commented on a change in pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on a change in pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#discussion_r549618732
##########
File path: Dockerfile
##########
@@ -16,7 +16,7 @@
#
FROM alpine:latest as pre-build
-ARG APISIX_DASHBOARD_VERSION=v2.0
+ARG APISIX_DASHBOARD_VERSION=master
Review comment:
Oh yes, I'm working on Dashboard Image in DockerHub, once it's approved from ASF, we could add CI to auto-publish Docker Image to DockerHub.
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan commented on pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#issuecomment-752036148
> I found that this pr did not conflict with master branch, but it still needed to do `merger master`, so are there any settings? @juzhiyuan
emmm Update Branch means we have to sync codes with the latest codes on the master branch, it's used to make sure every PR's action would run successfully after merged.
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] imjoey commented on a change in pull request #1146: fix: fetch code from master branch instead of v2.0 in Dockerfile
Posted by GitBox <gi...@apache.org>.
imjoey commented on a change in pull request #1146:
URL: https://github.com/apache/apisix-dashboard/pull/1146#discussion_r549644723
##########
File path: Dockerfile
##########
@@ -16,7 +16,7 @@
#
FROM alpine:latest as pre-build
-ARG APISIX_DASHBOARD_VERSION=v2.0
+ARG APISIX_DASHBOARD_VERSION=master
Review comment:
> Ya!
@juzhiyuan ok, I'll fix that soon.
----------------------------------------------------------------
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