openfaas / faas-cli

Official CLI for OpenFaaS
https://www.openfaas.com/
Other
798 stars 224 forks source link

Using faas-cli build stuck and never completed #766

Closed mabuaisha closed 4 years ago

mabuaisha commented 4 years ago

I'm trying to build hello world app using faas-cli and it seems the build stuck at some point without doing anything

[centos@openfaas-env-nomad-server0 functions]$ faas-cli build -f ./hello-python.yml
[0] > Building hello-python.
Clearing temporary build folder: ./build/hello-python/
Preparing: ./hello-python/ build/hello-python/function
Building: hello-python:latest with python template. Please wait..
Sending build context to Docker daemon  8.192kB
Step 1/29 : FROM openfaas/classic-watchdog:0.18.1 as watchdog
 ---> 94b5e0bef891
Step 2/29 : FROM python:2.7-alpine
2.7-alpine: Pulling from library/python
c9b1b535fdd9: Already exists
fea5c17ab132: Pulling fs layer
5dbe995357bf: Pulling fs layer
b6d238951af6: Pulling fs layer
b6d238951af6: Verifying Checksum
b6d238951af6: Download complete
fea5c17ab132: Verifying Checksum
fea5c17ab132: Download complete
5dbe995357bf: Verifying Checksum
5dbe995357bf: Download complete
fea5c17ab132: Pull complete
5dbe995357bf: Pull complete
b6d238951af6: Pull complete
Digest: sha256:5217b150a5f7eecea55f6224440f3b5c5f975edc32de7c0bfdf98280ed11d76c
Status: Downloaded newer image for python:2.7-alpine
 ---> 7ec8514e7bc5
Step 3/29 : ARG ADDITIONAL_PACKAGE
 ---> Running in fcaaaef0d4e4
Removing intermediate container fcaaaef0d4e4
 ---> 1c0916e7b77a
Step 4/29 : COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
 ---> f2dbc21afe1e
Step 5/29 : RUN chmod +x /usr/bin/fwatchdog
 ---> Running in 7b2c809b5b3b
Removing intermediate container 7b2c809b5b3b
 ---> 276e1d121884
Step 6/29 : RUN apk --no-cache add ca-certificates ${ADDITIONAL_PACKAGE}
 ---> Running in 8480d0b030cf
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz

It stuck on fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz

Any clue how to solve this issue ?

mabuaisha commented 4 years ago

@alexellis

burtonr commented 4 years ago

This is not an issue with the faas-cli as there appears to be an issue with the alpine linux CDN based on your output

These types of questions are better handled in the OpenFaaS Slack channel.

burtonr commented 4 years ago

/msg: slack

derek[bot] commented 4 years ago

-- Join Slack to connect with the community https://docs.openfaas.com/community

alexellis commented 4 years ago

Hi sounds like an issue with the alpine packages mirror or your networking. I can't reproduce it here. I'm going to close but let us know how you get on.

Alex

alexellis commented 4 years ago

/close can't reproduce the issue