Apisix-dashboard: docker-compose building apisix image is failing (for e2e backend test)

Created on 12 Mar 2021  ·  5Comments  ·  Source: apache/apisix-dashboard

Bug report

Describe the bug

Currently, the compose file located in /api/test/docker directory needs a Dockerfile-apisix for spinning up two apisix docker containers.
https://github.com/apache/apisix-dashboard/blob/48e66cded1f4f7b67d37a9f1337fca492d6f44f5/api/test/docker/docker-compose.yaml#L128-L132

But in the mentioned directory there is no such file.

.
├── apisix_config2.yaml
├── apisix_config.yaml
├── apisix_logs
├── docker-compose.yaml
├── Dockerfile
├── manager-api-conf.yaml
└── upstream.conf

It should be present in the mentioned path as per the docs, resulting in a failure in starting up the required containers.

How to Reproduce

cd api/test/docker


docker-compose build
#or 
docker-compose up

Screenshots

image

System information

Linux turing 5.8.0-44-generic #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Thank you.

bug

Most helpful comment

After going through the workflow config file, I see why it is not present. I think it would be a better idea if we add a script to help spinning up all the containers including altering the conf.yaml file and add an option to revert back to the previous config for the sake of completeness of this doc. What do you say :)

That's great! Welcome to update the doc from your perspective.

All 5 comments

@bisakhmondal
Hi, The missing dockerfile can be found in this project(https://github.com/apache/apisix-docker). You can download the dockerfile in alpine-dev.

You can also refer to the documentation for running back-end E2E tests(https://github.com/apache/apisix-dashboard/blob/master/docs/en/latest/back-end-e2e.md)

Thank you. Docker-compose is working now.

After going through the workflow config file, I see why it is not present. I think it would be a better idea if we add a script to help spinning up all the containers including altering the conf.yaml file and add an option to revert back to the previous config for the sake of completeness of this doc. What do you say :)

After going through the workflow config file, I see why it is not present. I think it would be a better idea if we add a script to help spinning up all the containers including altering the conf.yaml file and add an option to revert back to the previous config for the sake of completeness of this doc. What do you say :)

That's great! Welcome to update the doc from your perspective.

That's great! Welcome to update the doc from your perspective.

Sure. Thanks for the assent :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nic-chen picture nic-chen  ·  6Comments

stu01509 picture stu01509  ·  3Comments

juzhiyuan picture juzhiyuan  ·  5Comments

juzhiyuan picture juzhiyuan  ·  4Comments

aiyiyi121 picture aiyiyi121  ·  4Comments