| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -134,8 +134,6 @@ public InputStream buildDockerFolderTar(File directory) { | |||
| 134 | 134 | dockerFolderTar = CompressArchiveUtil.archiveTARFiles(directory, filesToAdd, | |
| 135 | 135 | archiveNameWithOutExtension); | |
| 136 | 136 | ||
| 137 | - long length = dockerFolderTar.length(); | ||
| 138 | - | ||
| 139 | 137 | final FileInputStream tarInputStream = FileUtils.openInputStream(dockerFolderTar); | |
| 140 | 138 | final File tarFile = dockerFolderTar; | |
| 141 | 139 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,5 @@ | |||
| 1 | 1 | package com.github.dockerjava.core.exec; | |
| 2 | 2 | ||
| 3 | - import org.slf4j.Logger; | ||
| 4 | - import org.slf4j.LoggerFactory; | ||
| 5 | - | ||
| 6 | 3 | import com.github.dockerjava.api.async.ResultCallback; | |
| 7 | 4 | import com.github.dockerjava.api.command.ExecStartCmd; | |
| 8 | 5 | import com.github.dockerjava.api.model.Frame; | |
@@ -12,8 +9,6 @@ | |||
| 12 | 9 | ||
| 13 | 10 | public class ExecStartCmdExec extends AbstrAsyncDockerCmdExec<ExecStartCmd, Frame> implements ExecStartCmd.Exec { | |
| 14 | 11 | ||
| 15 | - private static final Logger LOGGER = LoggerFactory.getLogger(ExecStartCmdExec.class); | ||
| 16 | - | ||
| 17 | 12 | public ExecStartCmdExec(WebTarget baseResource, DockerClientConfig dockerClientConfig) { | |
| 18 | 13 | super(baseResource, dockerClientConfig); | |
| 19 | 14 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -906,7 +906,7 @@ public void createContainerFromPrivateRegistryWithValidAuth() throws Exception { | |||
| 906 | 906 | ||
| 907 | 907 | @Test | |
| 908 | 908 | public void createContainerFromPrivateRegistryWithNoAuth() throws Exception { | |
| 909 | - AuthConfig authConfig = RegistryUtils.runPrivateRegistry(dockerRule.getClient()); | ||
| 909 | + RegistryUtils.runPrivateRegistry(dockerRule.getClient()); | ||
| 910 | 910 | ||
| 911 | 911 | String imgName = RegistryUtils.createPrivateImage(dockerRule, "create-container-with-no-auth"); | |
| 912 | 912 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,14 +1,11 @@ | |||
| 1 | 1 | package com.github.dockerjava.cmd; | |
| 2 | 2 | ||
| 3 | - import com.github.dockerjava.api.async.ResultCallback; | ||
| 4 | 3 | import com.github.dockerjava.api.command.InspectImageResponse; | |
| 5 | - import com.github.dockerjava.api.command.PullImageCmd; | ||
| 6 | 4 | import com.github.dockerjava.api.exception.DockerClientException; | |
| 7 | 5 | import com.github.dockerjava.api.exception.InternalServerErrorException; | |
| 8 | 6 | import com.github.dockerjava.api.exception.NotFoundException; | |
| 9 | 7 | import com.github.dockerjava.api.model.AuthConfig; | |
| 10 | 8 | import com.github.dockerjava.api.model.Info; | |
| 11 | - import com.github.dockerjava.api.model.PullResponseItem; | ||
| 12 | 9 | import com.github.dockerjava.core.RemoteApiVersion; | |
| 13 | 10 | import com.github.dockerjava.core.command.PullImageResultCallback; | |
| 14 | 11 | import com.github.dockerjava.utils.RegistryUtils; | |
@@ -32,12 +29,6 @@ public class PullImageCmdIT extends CmdIT { | |||
| 32 | 29 | @Rule | |
| 33 | 30 | public ExpectedException exception = ExpectedException.none(); | |
| 34 | 31 | ||
| 35 | - private static final PullImageCmd.Exec NOP_EXEC = new PullImageCmd.Exec() { | ||
| 36 | - public Void exec(PullImageCmd command, ResultCallback<PullResponseItem> resultCallback) { | ||
| 37 | - return null; | ||
| 38 | - }; | ||
| 39 | - }; | ||
| 40 | - | ||
| 41 | 32 | @Test | |
| 42 | 33 | public void testPullImage() throws Exception { | |
| 43 | 34 | Info info = dockerRule.getClient().infoCmd().exec(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,7 +46,7 @@ public void updateContainer() throws DockerException, IOException { | |||
| 46 | 46 | LOG.debug("Inspect: {}", inspectBefore); | |
| 47 | 47 | final Long memory = inspectBefore.getHostConfig().getMemory(); | |
| 48 | 48 | ||
| 49 | - final UpdateContainerResponse updateResponse = dockerRule.getClient().updateContainerCmd(containerId) | ||
| 49 | + dockerRule.getClient().updateContainerCmd(containerId) | ||
| 50 | 50 | .withBlkioWeight(300) | |
| 51 | 51 | .withCpuShares(512) | |
| 52 | 52 | .withCpuPeriod(100000) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,8 +34,6 @@ public abstract class SwarmCmdIT extends CmdIT { | |||
| 34 | 34 | private static final int PORT_START = 2378; | |
| 35 | 35 | private static final String DOCKER_IN_DOCKER_CONTAINER_PREFIX = "docker"; | |
| 36 | 36 | private static final String NETWORK_NAME = "dind-network"; | |
| 37 | - private static final int MAX_CONNECT_ATTEMPTS = 5; | ||
| 38 | - private static final int CONNECT_ATTEMPT_INTERVAL = 200; | ||
| 39 | 37 | private static final String DOCKER_IN_DOCKER_IMAGE_REPOSITORY = "docker"; | |
| 40 | 38 | private static final String DOCKER_IN_DOCKER_IMAGE_TAG = "17.12-dind"; | |
| 41 | 39 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,8 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | 3 | import com.google.common.base.Function; | |
| 4 | 4 | import org.junit.Test; | |
| 5 | - import org.slf4j.Logger; | ||
| 6 | - import org.slf4j.LoggerFactory; | ||
| 7 | 5 | ||
| 8 | 6 | import java.io.File; | |
| 9 | 7 | import java.io.IOException; | |
@@ -15,8 +13,6 @@ | |||
| 15 | 13 | ||
| 16 | 14 | public class DockerfileAddMultipleFilesTest { | |
| 17 | 15 | ||
| 18 | - private static final Logger LOG = LoggerFactory.getLogger(DockerfileAddMultipleFilesTest.class); | ||
| 19 | - | ||
| 20 | 16 | private static final Function<File, String> TO_FILE_NAMES = new Function<File, String>() { | |
| 21 | 17 | @Override | |
| 22 | 18 | public String apply(File file) { | |
@@ -34,7 +30,7 @@ public void ignoreAllBut() throws Exception { | |||
| 34 | 30 | assertThat(filesToAdd, | |
| 35 | 31 | containsInAnyOrder("Dockerfile", "foo.jar")); | |
| 36 | 32 | } | |
| 37 | - | ||
| 33 | + | ||
| 38 | 34 | @Test | |
| 39 | 35 | public void nestedDirsPatterns() throws Exception { | |
| 40 | 36 | File baseDir = fileFromBuildTestResource("dockerignore/NestedDirsDockerignore"); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,8 +7,6 @@ | |||
| 7 | 7 | import org.junit.experimental.runners.Enclosed; | |
| 8 | 8 | import org.junit.runner.RunWith; | |
| 9 | 9 | import org.junit.runners.Parameterized; | |
| 10 | - import org.slf4j.Logger; | ||
| 11 | - import org.slf4j.LoggerFactory; | ||
| 12 | 10 | ||
| 13 | 11 | import static org.hamcrest.MatcherAssert.assertThat; | |
| 14 | 12 | import static org.hamcrest.Matchers.contains; | |
@@ -21,8 +19,6 @@ public class DockerfileStatementAddTest { | |||
| 21 | 19 | @RunWith(Parameterized.class) | |
| 22 | 20 | public static final class ParamTests { | |
| 23 | 21 | ||
| 24 | - private static final Logger LOG = LoggerFactory.getLogger(DockerfileStatementAddTest.class); | ||
| 25 | - | ||
| 26 | 22 | @Parameterized.Parameters(name = "{0} {1} {2}") | |
| 27 | 23 | public static Object[][] data() { | |
| 28 | 24 | return new Object[][]{{"ADD src dest", contains("src"), "dest"}, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,8 +34,6 @@ public class DockerRule extends ExternalResource { | |||
| 34 | 34 | private DockerClient jerseyClient; | |
| 35 | 35 | ||
| 36 | 36 | private CmdIT cmdIT; | |
| 37 | - private Object cmdExecFactory; | ||
| 38 | - | ||
| 39 | 37 | ||
| 40 | 38 | public DockerRule(CmdIT cmdIT) { | |
| 41 | 39 | this.cmdIT = cmdIT; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments