Package com.nirima.docker.client.model

Examples of com.nirima.docker.client.model.Identifier


            listener.getLogger().println("Pushing " + tagToUse);
            if( !tagToUse.toLowerCase().equals(tagToUse) ) {
                listener.getLogger().println("ERROR: Docker will refuse to push tag name " + tagToUse + " because it uses upper case.");
            }

            Identifier identifier = Identifier.fromCompoundString(tagToUse);

            String repositoryName = identifier.repository.name;

            PushCommandResponse pushResponse = client.createPushCommand()
                    .name(repositoryName)
View Full Code Here


                    DockerRegistryClient registryClient;

                    try {

                        Identifier identifier = Identifier.fromCompoundString(action.taggedId);

                        registryClient = DockerRegistryClient.builder()
                                .withUrl(identifier.repository.getURL())
                                .build();
View Full Code Here

        List<Image> images = dockerClient.images().finder().allImages(true).filter(ami).list();
        LOGGER.log(Level.INFO, "Images found: " + images);

        if (images.size() == 0) {
            LOGGER.log(Level.INFO, "Pulling image " + ami + " since one was not found.  This may take awhile...");
            Identifier amiId = Identifier.fromCompoundString(ami);
            InputStream imageStream = dockerClient.createPullCommand().image(amiId).execute();
            int streamValue = 0;
            while (streamValue != -1) {
                streamValue = imageStream.read();
            }
View Full Code Here

TOP

Related Classes of com.nirima.docker.client.model.Identifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.