Docker Build issue

214 views
Skip to first unread message

Gilles Depatie

unread,
Aug 28, 2018, 4:52:52 PM8/28/18
to VOLTHA Discuss
As I transitioned from using Docker-compose to using Kubernetes, following the instructions in https://guide.opencord.org I uninstalled Docker Engine and Docker.io as explained under Ubuntu section of Docker-ce installation guide and then installed Docker-ce, then MiniKube and then Helm
These are the version that are working for me:

(venv-linux) gilles@gilles-VirtualBox:~/cord/incubator/voltha$ docker version
Client:
 Version:      17.03.2-ce
 API version:  1.27
 Go version:   go1.7.5
 Git commit:   f5ec1e2
 Built:        Tue Jun 27 03:35:14 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.03.2-ce
 API version:  1.27 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   f5ec1e2
 Built:        Tue Jun 27 03:35:14 2017
 OS/Arch:      linux/amd64
 Experimental: false

(venv-linux) gilles@gilles-VirtualBox:~/cord/incubator/voltha$ minikube version
minikube version: v0.28.2

(venv-linux) gilles@gilles-VirtualBox:~/cord/incubator/voltha$ helm version
Client: &version.Version{SemVer:"v2.10.0", GitCommit:"9ad53aac42165a5fadc6c87be0dea6b115f93090", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.10.0", GitCommit:"9ad53aac42165a5fadc6c87be0dea6b115f93090", GitTreeState:"clean"}

However if I try to do a "make build" now, the the build errors at the following:

docker build --build-arg TAG=latest --build-arg REGISTRY= --build-arg REPOSITORY=   --rm --force-rm  -t voltha-voltha:latest -f docker/Dockerfile.voltha .
Sending build context to Docker daemon 49.94 MB
Step 1/11 : ARG TAG=latest
Please provide a source image with `from` prior to commit
Makefile:243: recipe for target 'voltha' failed
make: *** [voltha] Error 1

It looks like the following step is failing on all of the docker targets

docker build --build-arg TAG=latest --build-arg REGISTRY= --build-arg REPOSITORY=   --rm --force-rm  -t voltha-voltha:latest -f docker/Dockerfile.voltha .

It looks like this section of the Makefile is in question

ARG TAG=latest
ARG REGISTRY=
ARG REPOSITORY=

FROM ${REGISTRY}${REPOSITORY}voltha-base:${TAG}

It looks like maybe the "ARG" symbol is not handled correctly

Is there an difference between Docker-Engine/.io and Docker-ce in terms of the build command?

Have I not installed the correct packages?

I can deploy k8s charts over my Minikube/Helm/Tiller environment

What is wrong?



mohd jahangir

unread,
Aug 29, 2018, 4:08:12 AM8/29/18
to gdep...@northforgeinc.com, VOLTHA Discuss
Hi Gilles

Yesterday only I built the voltha and deployed using compose and on kubernetes single master node. It was working fine for me. I followed the steps mentioned on below mentioned links. There are couple of options you can try

1. enable debug flag of make -d or explore other comprehensive options at https://www.gnu.org/software/make/manual/html_node/Options-Summary.html

2. Try the steps mentioned on following page of votlha

I haven't uninstalled any docker engine etc. Also, I am using master as a tainted node as opposed to spinning up separate node using minikube etc. T

Try using step 2, if it works else reach out to community with detailed debugging information.

-Thanks
Jahangir

--
You received this message because you are subscribed to the Google Groups "VOLTHA Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to voltha-discus...@opencord.org.
To post to this group, send email to voltha-...@opencord.org.
Visit this group at https://groups.google.com/a/opencord.org/group/voltha-discuss/.
To view this discussion on the web visit https://groups.google.com/a/opencord.org/d/msgid/voltha-discuss/198db261-a168-467e-bb8a-d10aff50307a%40opencord.org.
For more options, visit https://groups.google.com/a/opencord.org/d/optout.


--
Regards
Mohd Jahangir

Gilles Depatie

unread,
Aug 29, 2018, 1:37:32 PM8/29/18
to VOLTHA Discuss, gdep...@northforgeinc.com
Hi Mohd

I reverted to using the Docker-Engine package and this is no longer an issue

The question is, does Docker-ce build command support the same command line options/parameters as did Docker-Engine

I guess we'll see once more people move to Docker-ce

Gilles

Gilles Depatie

unread,
Aug 30, 2018, 5:24:31 PM8/30/18
to VOLTHA Discuss
Just to let everyone know, there is an issue with correctly parsing build args with the "docker build" command in Docker-ce version 17.03
Here's the link:


This happened to be the version that I was using and explains why I was seeing this issue

I had originally backed down from using latest i.e. 17.05 because I seemed to have issues with minikube

I will upgrade again to confirm whether that was a legitimate problem and/or is there another somution.

Gilles
Reply all
Reply to author
Forward
0 new messages