Skip to content

Issues with the script on AWS cluster #1

@hitesh1907nayyar

Description

@hitesh1907nayyar

Hi David,

I was trying to implement your script in aws eks cluster using kaniko. Can you please let me know what changes needs to be done for below lines of code for aws eks if I want to use Docker Hub


 stage ('Docker') {

        container ('kaniko') {

            def registryIp = sh(script: 'getent hosts registry.kube-system | awk \'{ print $1 ; exit }\'', returnStdout: true).trim()

            repository = "${registryIp}:80/hello"

            sh "executor -f `pwd`/Dockerfile -c `pwd` -d ${repository}:${commitId} --skip-tls-verify --insecure"

        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions