datawire / forge

Define and run multi-container apps in Kubernetes
http://forge.sh
Apache License 2.0
417 stars 44 forks source link

forge deploy seems to be doing duplicate work #202

Closed hagai-auro closed 6 years ago

hagai-auro commented 6 years ago

Note that each line in this standard out is duplicated.

$ forge --version
forge 0.4.13
$ forge --no-scan-base deploy
║ warning: 'os._Environ object' has no attribute 'ANVIL_SVC_CANARY' (this will become an error soon)
║ warning: 'os._Environ object' has no attribute 'ANVIL_SVC_STABLE' (this will become an error soon)
║ warning: 'os._Environ object' has no attribute 'ANVIL_SVC_CANARY' (this will become an error soon)
║ warning: 'os._Environ object' has no attribute 'ANVIL_SVC_STABLE' (this will become an error soon)
/Users/hagai.livni/.pex/install/urllib3-1.22-py2.py3-none-any.whl.de06b091f54d866b758f51f1190bc1da2d222cc3/urllib3-1.22-py2.py3-none-any.whl/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
/Users/hagai.livni/.pex/install/urllib3-1.22-py2.py3-none-any.whl.de06b091f54d866b758f51f1190bc1da2d222cc3/urllib3-1.22-py2.py3-none-any.whl/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
║ docker build /Users/hagai.livni/code/auro/anvil-refdata-svc/ -f /Users/hagai.livni/code/auro/anvil-refdata-svc/Dockerfile -t dev1-registry-docker-registry.aws.aurotfp.com:5000/testuser/anvil-svc:81bd5b9d1076a7e44af715e592a3178cd7fbf500.git
║ Sending build context to Docker daemon  519.3MB
║ docker build /Users/hagai.livni/code/auro/anvil-refdata-svc/ -f /Users/hagai.livni/code/auro/anvil-refdata-svc/Dockerfile -t dev1-registry-docker-registry.aws.aurotfp.com:5000/testuser/anvil-svc:81bd5b9d1076a7e44af715e592a3178cd7fbf500.git
║ Sending build context to Docker daemon  519.3MB
║ Step 1/4 : FROM openjdk:8-jdk-alpine
║  ---> 224765a6bdbe
║ Step 2/4 : VOLUME /tmp
║  ---> Using cache
║  ---> b54f1c967ca0
║ Step 3/4 : COPY /target/anvil-svc.jar app.jar
║  ---> db4012273732
║ Step 1/4 : FROM openjdk:8-jdk-alpine
║  ---> 224765a6bdbe
║ Step 2/4 : VOLUME /tmp
║  ---> Using cache
║  ---> b54f1c967ca0
║ Step 3/4 : COPY /target/anvil-svc.jar app.jar
║  ---> 0ddf5bfeb04c
║ Step 4/4 : ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app.jar"]
║  ---> Running in 023d8e564f65
║ Removing intermediate container 023d8e564f65
║  ---> b7773b375096
║ Successfully built b7773b375096
║ Successfully tagged dev1-registry-docker-registry.aws.aurotfp.com:5000/testuser/anvil-svc:81bd5b9d1076a7e44af715e592a3178cd7fbf500.git
║ Step 4/4 : ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app.jar"]
║  ---> Running in a76d6447a103
║ Removing intermediate container a76d6447a103
║  ---> 178568d1e444
║ Successfully built 178568d1e444
║ Successfully tagged dev1-registry-docker-registry.aws.aurotfp.com:5000/testuser/anvil-svc:81bd5b9d1076a7e44af715e592a3178cd7fbf500.git
/Users/hagai.livni/.pex/install/urllib3-1.22-py2.py3-none-any.whl.de06b091f54d866b758f51f1190bc1da2d222cc3/urllib3-1.22-py2.py3-none-any.whl/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
^[[C

║ docker push dev1-registry-docker-registry.aws.aurotfp.com:5000/testuser/anvil-svc:81bd5b9d1076a7e44af715e592a3178cd7fbf500.git
║ The push refers to repository [dev1-registry-docker-registry.aws.aurotfp.com:5000/testuser/anvil-svc]
║ 43f8587fe3cd: Preparing
║ 685fdd7e6770: Preparing
║ c9b26f41504c: Preparing
║ cd7100a72410: Preparing
║ c9b26f41504c: Layer already exists
║ cd7100a72410: Layer already exists
║ 685fdd7e6770: Layer already exists
║ 43f8587fe3cd: Pushed
║ docker push dev1-registry-docker-registry.aws.aurotfp.com:5000/testuser/anvil-svc:81bd5b9d1076a7e44af715e592a3178cd7fbf500.git
║ The push refers to repository [dev1-registry-docker-registry.aws.aurotfp.com:5000/testuser/anvil-svc]
║ 43f8587fe3cd: Preparing
║ 685fdd7e6770: Preparing
║ c9b26f41504c: Preparing
║ cd7100a72410: Preparing
║ 685fdd7e6770: Layer already exists
║ c9b26f41504c: Layer already exists
║ cd7100a72410: Layer already exists
║ 43f8587fe3cd: Pushed
║ 81bd5b9d1076a7e44af715e592a3178cd7fbf500.git: digest: sha256:af6148e0be10ad534860e74c8b463353f16ce2fbd90aca02c0e234a93afd2afa size: 1159
║ warning: 'os._Environ object' has no attribute 'RENDERCONSUL' (this will become an error soon)
║ 81bd5b9d1076a7e44af715e592a3178cd7fbf500.git: digest: sha256:af6148e0be10ad534860e74c8b463353f16ce2fbd90aca02c0e234a93afd2afa size: 1159
║ warning: 'os._Environ object' has no attribute 'RENDERCONSUL' (this will become an error soon)
║ 97 tasks run, 0 errors
║ 
║    built: Dockerfile, Dockerfile
║   pushed: anvil-svc:81bd5b9d1076a7e44af715e592a3178cd7fbf500.git, anvil-svc:81bd5b9d1076a7e44af715e592a3178cd7fbf500.git
║ rendered: service/anvil-svc-vault-refactor, deployment.extensions/anvil-svc-vault-refactor, service/anvil-svc-vault-refactor, deployment.extensions/anvil-svc-vault-refactor
║ deployed: anvil-svc, anvil-svc
hagai-auro commented 6 years ago

Looks like there were several Dockerfiles in the repo