https://pulumi.com logo
#general
Title
# general
t

thankful-optician-22583

08/13/2019, 3:21 PM
Hi, I have registered a gitlab kubernetes runner through their gui (no helm chart so vanilla). My index.ts looks like this:
Copy code
const repository = new awsx.ecr.Repository(config.require("ecr-server"));
const image = repository.buildAndPushImage("../../");

const provider = env == "dev" ?
    new k8s.Provider("myk8s", {context: kubernetesConfig.get("context")}) :
    new k8s.Provider("myk8s", {
        kubeconfig: new terraform.state.RemoteStateReference("eks", {
            backendType: "s3",
            bucket: "XXXXXXXt",
            key: "XXXXXXX",
            workspace: "XXXXX",
            region: "us-east-1"
        }).getOutput("kubectl_config")});
My Pulumi preview stage looks like this:
Copy code
image:
    name: pulumi/pulumi:v0.17.10
    entrypoint:
      - '/usr/bin/env'
      - 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
  services:
    - docker:stable-dind
  variables:
    DOCKER_HOST: <tcp://localhost:2375/>
    DOCKER_DRIVER: overlay2
    DOCKER_TLS_CERTDIR: "/certs"
  before_script:
    - printenv
    - docker info
  script:
    - cd $working_dir
    - echo $DOCKER_HOST
    - npm install
    - pulumi stack select staging
    - pulumi preview
  only:
    refs:
      - branches
      - tags
When I run CI pipeline it fails here:
Copy code
Diagnostics:
  awsx:ecr:Repository (<http://XXXXXXXXX.dkr.ecr.us-east-1.amazonaws.com/python-building-block|XXXXXXXXX.dkr.ecr.us-east-1.amazonaws.com/python-building-block>):
    error: read tcp 127.0.0.1:33706->127.0.0.1:2376: use of closed network connection
    2019/08/13 15:12:14 http2: server: error reading preface from client 127.0.0.1:2376: bogus greeting "Client sent an HTTP requ"
 
    error: Error: 'docker build ../../ -t 7cb86392-container' failed with exit code 1
    
        at /builds/karauctionservices/traderev/python-building-block/python_building_block/pulumi/node_modules/@pulumi/docker.ts:536:15
        at Generator.next (<anonymous>)
        at fulfilled (/builds/karauctionservices/traderev/python-building-block/python_building_block/pulumi/node_modules/@pulumi/docker/docker.js:17:58)
 
Permalink: <https://app.pulumi.com/calvin.raveenthran/python-building-block/staging/previews/f7fb9ae7-4f1a-4361-b831-56dd49b0c51e>
Did anyone encounter this error?
Copy code
Client sent a http request to a https server
2 Views