ska-telescope / lmc-base-classes

LMC Base Classes Software Development Kit Project
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

makefile fails locally with error: network lmc-base-classes_default not found #93

Closed jbmorgado closed 5 years ago

jbmorgado commented 5 years ago
> make interactive
docker build  -t ska-registry.av.it.pt/tango-example/lmcbaseclasses:0.0.0-8cf8d67 . -f Dockerfile --build-arg DOCKER_REGISTRY_HOST=ska-registry.av.it.pt --build-arg DOCKER_REGISTRY_USER=tango-example
Sending build context to Docker daemon  3.843MB
Step 1/5 : FROM nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:latest AS buildenv
# Executing 3 build triggers
 ---> Using cache
 ---> Using cache
 ---> Using cache
 ---> 33fd3ee1c25a
Step 2/5 : FROM nexus.engageska-portugal.pt/ska-docker/ska-python-runtime:latest AS runtime
# Executing 6 build triggers
 ---> Using cache
 ---> Using cache
 ---> Using cache
 ---> Running in 2f445881117c
Removing intermediate container 2f445881117c
 ---> bffe2fa835f2
Step 3/5 : RUN ipython profile create
 ---> Running in 06dc54c318d7
[ProfileCreate] Generating default config file: '/home/tango/.ipython/profile_default/ipython_config.py'
Removing intermediate container 06dc54c318d7
 ---> 800132f40b7d
Step 4/5 : USER tango
 ---> Running in bf38383c3f48
Removing intermediate container bf38383c3f48
 ---> 98794c53ff51
Step 5/5 : CMD ["/venv/bin/python", "/app/skabase/SKABaseDevice/SKABaseDevice.py"]
 ---> Running in 80f1e1f1e547
Removing intermediate container 80f1e1f1e547
 ---> aa1b36b7bca4
[Warning] One or more build-args [DOCKER_REGISTRY_USER DOCKER_REGISTRY_HOST] were not consumed
Successfully built aa1b36b7bca4
Successfully tagged ska-registry.av.it.pt/tango-example/lmcbaseclasses:0.0.0-8cf8d67
docker tag ska-registry.av.it.pt/tango-example/lmcbaseclasses:0.0.0-8cf8d67 ska-registry.av.it.pt/tango-example/lmcbaseclasses:latest
DOCKER_REGISTRY_HOST=ska-registry.av.it.pt DOCKER_REGISTRY_USER=tango-example docker-compose up -d
rsyslog-lmcbaseclasses is up-to-date
lmcbaseclasses_tangodb_1 is up-to-date
lmcbaseclasses_databaseds_1 is up-to-date
Recreating lmcbaseclasses_lmcbaseclasses_1 ... 
Recreating lmcbaseclasses_lmcbaseclasses_1 ... done
docker run --rm -it --name=lmcbaseclasses-dev -e TANGO_HOST=databaseds:10000 --network=lmc-base-classes_default \
          -v /home/morgado/repos/lmc-base-classes:/app --volumes-from=rsyslog-lmcbaseclasses:rw ska-registry.av.it.pt/tango-example/lmcbaseclasses:latest /bin/bash
docker: Error response from daemon: network lmc-base-classes_default not found.
Makefile:93: recipe for target 'interactive' failed
make: *** [interactive] Error 125
jbmorgado commented 5 years ago

Bug is now fixed