midl-dev / tezos-on-gke

A secure, turn-key public Tezos baking service on Kubernetes
Apache License 2.0
32 stars 15 forks source link

pushd/popd: not found #8

Closed denver-s closed 4 years ago

denver-s commented 4 years ago
null_resource.push_containers: Creating...
null_resource.push_containers: Provisioning with 'local-exec'...
null_resource.push_containers (local-exec): Executing: ["/bin/sh" "-c" "#!/bin/bash\ngcloud auth configure-docker --project \"mainnet0d64d979842ed401\"\n\nfind ./../docker -mindepth 1 -type d  -printf '%f\\n'| while read container; do\n  pushd ./../docker/$container\n  sed -e \"s/((tezos_network))/mainnet/\" Dockerfile.template > Dockerfile\n  tag=\"gcr.io/mainnet0d64d979842ed401/$container:latest\"\n  docker build -t $tag .\n  docker push $tag\n  rm -v Dockerfile\n  popd\ndone\n"]
kubernetes_secret.hot_wallet_private_key: Creating...
kubernetes_secret.website_builder_key: Creating...
kubernetes_secret.hot_wallet_private_key: Creation complete after 0s [id=default/hot-wallet]
kubernetes_secret.website_builder_key: Creation complete after 0s [id=default/website-builder-credentials]
null_resource.push_containers (local-exec): gcloud credential helpers already registered correctly.
null_resource.push_containers (local-exec): /bin/sh: 5: pushd: not found
null_resource.push_containers (local-exec): sed: impossibile leggere Dockerfile.template: File o directory non esistente
null_resource.push_containers (local-exec): time="2019-12-02T20:49:24+01:00" level=error msg="failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied"
null_resource.push_containers (local-exec): error during connect: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&session=izl2j9z7k52lur3lca081ijlk&shmsize=0&t=gcr.io%2Fmainnet0d64d979842ed401%2Ftezos-private-node-connectivity-checker%3Alatest&target=&ulimits=null&version=1: context canceled
null_resource.push_containers (local-exec): Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/gcr.io/mainnet0d64d979842ed401/tezos-private-node-connectivity-checker/push?tag=latest: dial unix /var/run/docker.sock: connect: permission denied
null_resource.push_containers (local-exec): 'Dockerfile' removed
null_resource.push_containers (local-exec): /bin/sh: 11: popd: not found
null_resource.push_containers (local-exec): /bin/sh: 5: pushd: not found
denver-s commented 4 years ago

Adding interpreter = ["/bin/bash", "-c"] inside provisioner "local-exec" of resource "null_resource" "push_containers" seems to have fixed my problem.

hodl-dot-farm commented 4 years ago

Thanks ! That's useful.