feat: add mutli-arch Dockerfile#66
Conversation
|
Hi @manzil-infinity180. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
web/docker-compose.yml
Outdated
| - "8080:80" | ||
| environment: | ||
| # - API_HOST=testgrid-data.k8s.io | ||
| - API_HOST=host.docker.internal |
|
Need to test once for the local fake JSON and then it is good to go for review |
d68c9dc to
47abe3e
Compare
|
Hi @ameukam @michelle192837 |
|
/ok-to-test |
|
/retest |
|
/lgtm |
|
The mechanics of building and pushing to a community-owned Docker repository are not trivial. A follow-up would be to have A Github Action that trigger a build (without push) of the Dockerfile. |
michelle192837
left a comment
There was a problem hiding this comment.
I have a bunch of writing nitpicks but otherwise this looks fine to me!
web/README.md
Outdated
|
|
||
| ## Build & Run with Docker | ||
|
|
||
| - `docker compose up --build` Spins up the frontend container. A local `json-server` which serves the data from `src/fake-api/data.json` file. The frontend (via pnpm local-server) connects to it at `http://localhost:3000/` |
There was a problem hiding this comment.
...: Spins...
and
...container, a local...
web/README.md
Outdated
|
|
||
| - `docker compose up --build` Spins up the frontend container. A local `json-server` which serves the data from `src/fake-api/data.json` file. The frontend (via pnpm local-server) connects to it at `http://localhost:3000/` | ||
|
|
||
| - If you want to external k8s Testgrid API instance - actual data. Uncomment the args from the `Dockerfile`. It is need on the build time, thats why we are passing inside the Dockerfile. You can visit on the `localhost:8080` |
There was a problem hiding this comment.
If you want to use the external k8s TestGrid API instance with actual data:
web/README.md
Outdated
| --build-arg API_PORT=80 | ||
| docker compose up | ||
| ``` | ||
| - Option 2: → uncomment the `args:` block in your compose file |
There was a problem hiding this comment.
Option 2: Uncomment...
web/README.md
Outdated
| - `docker compose up --build` Spins up the frontend container. A local `json-server` which serves the data from `src/fake-api/data.json` file. The frontend (via pnpm local-server) connects to it at `http://localhost:3000/` | ||
|
|
||
| - If you want to external k8s Testgrid API instance - actual data. Uncomment the args from the `Dockerfile`. It is need on the build time, thats why we are passing inside the Dockerfile. You can visit on the `localhost:8080` | ||
| - Option 1: Using CLI --build-arg |
There was a problem hiding this comment.
nit: Indent both Options 1 and 2?
| build: | ||
| context: . | ||
| dockerfile: Dockerfile | ||
| # args: |
There was a problem hiding this comment.
nit: Add a comment here noting when to uncomment (e.g. # Uncomment \args` to use the public TestGrid API.`)
Thanks Arnaud! That sounds fine to me; do we have examples of this from other parts of the project? |
You can check this cloudbuild spec as an example. |
Oh yeah that part makes sense, I'm more confused about whether we're using GHA in other parts as opposed to a Prow job. (As far as I'm aware Prow jobs are still the recommendation but if we're using GHA for some things happy to try that out). |
Apologies! You are right. We should stick to Prow jobs for consistency |
47abe3e to
1cec5c6
Compare
michelle192837
left a comment
There was a problem hiding this comment.
Looks great, thanks! :D
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: manzil-infinity180, michelle192837 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
fixes #5
Added dockerfile and docker-compose.yaml file
.envinto.gitignore