Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose building apisix image is failing (for e2e backend test) #1581

Closed
bisakhmondal opened this issue Mar 12, 2021 · 5 comments · Fixed by #1625
Closed

docker-compose building apisix image is failing (for e2e backend test) #1581

bisakhmondal opened this issue Mar 12, 2021 · 5 comments · Fixed by #1625
Assignees
Labels
bug Something isn't working

Comments

@bisakhmondal
Copy link
Member

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.

apisix:
hostname: apisix_server1
build:
context: ../../
dockerfile: test/docker/Dockerfile-apisix

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.

@bisakhmondal bisakhmondal added the bug Something isn't working label Mar 12, 2021
@Jaycean
Copy link
Member

Jaycean commented Mar 12, 2021

@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)

@Jaycean Jaycean self-assigned this Mar 12, 2021
@bisakhmondal
Copy link
Member Author

Thank you. Docker-compose is working now.

@bisakhmondal
Copy link
Member Author

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 :)

@nic-chen
Copy link
Member

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.

@bisakhmondal
Copy link
Member Author

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

Sure. Thanks for the assent :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants