-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CS-968 Switch client library from docker-client to docker-java (pull …
…request #119) * Migrate getContainerEvents * Migrate startDockerContainer and setSwarmServiceReplicasToOne * Migrate DockerControlApiIntegrationTest to use new client * Adjust docker http client timeouts * Add another getDockerClientNew method with no args, use default server * Massive change to migrate all integration test client operations use new client * Migrate create container and create service * Migrate delete image * Slight tweaks to BUSYBOX constants and versions * Migrate inspect image / get image by id * Standardize docker-java exception handling * Migrate list images * Migrate ping * Reuse RETURN_SELF answer in test mocks * Migrate container/service logs * Migrate getTaskForService * Migrate pull image (with auth) * Add support for generic resources (i.e. gpus) using a fork of docker-java * Migrate TASK_STATE_FAILED to TaskState.FAILED * Move client config into its own method * Migrate AuthConfig and getting registry URL for image * Complete removal of docker-client * Fix hub ping * Clean up some more fully qualified classes left over from transition * Changelog Approved-by: James Ransford Approved-by: Bin Zhang
- Loading branch information
1 parent
973ec78
commit a8f4615
Showing
23 changed files
with
1,098 additions
and
1,349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/java/org/nrg/containers/api/ContainerControlApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,092 changes: 535 additions & 557 deletions
1,092
src/main/java/org/nrg/containers/api/DockerControlApi.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/org/nrg/containers/exceptions/ServiceNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.nrg.containers.exceptions; | ||
|
||
public class ServiceNotFoundException extends Exception { | ||
public ServiceNotFoundException(Throwable e) { | ||
super(e); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/org/nrg/containers/exceptions/TaskNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.nrg.containers.exceptions; | ||
|
||
public class TaskNotFoundException extends Exception { | ||
public TaskNotFoundException(Throwable e) { | ||
super(e); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.