Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
- create docker client and docker client factory
- create container builder
- create containers manager
  • Loading branch information
pselge-daparto committed Nov 11, 2020
0 parents commit 4f02056
Show file tree
Hide file tree
Showing 11 changed files with 2,072 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
/.idea/
.DS
/vendor/
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 DockerPhpClient

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
5 changes: 5 additions & 0 deletions Makefile
@@ -0,0 +1,5 @@
.Phony: update

update:
@docker run -it -w /data -v ${PWD}:/data:delegated -v ~/.composer:/root/.composer:delegated --entrypoint composer --rm registry.gitlab.com/grahamcampbell/php:7.4-base update

19 changes: 19 additions & 0 deletions README.md
@@ -0,0 +1,19 @@
# Docker PHP Client

<a href="https://github.com/DockerPhpClient/Client/releases"><img src="https://img.shields.io/github/v/release/DockerPhpClient/Client?sort=semver&style=flat" alt="Latest Version"></img></a>
<img src="https://img.shields.io/packagist/php-v/docker-client/client?style=flat" alt="Supported Php Version"></img>

## Supported Actions
### Containers
- create
- start
- delete
- wait
- logs

## Examples
See the examples folder for example code

## Notes
This package is in an early stage and only supports a minimum of actions
It is still missing tests, code style checks, a ci pipeline, proper documentation
25 changes: 25 additions & 0 deletions composer.json
@@ -0,0 +1,25 @@
{
"name": "docker-client/client",
"license": "MIT",
"type": "library",
"description": "A Docker PHP client",
"autoload": {
"psr-4": {
"Docker\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Docker\\Tests\\": "tests/"
}
},
"require": {
"php": "^7.4",
"php-http/socket-client": "^2.0",
"php-http/client-common": "^2.3",
"guzzlehttp/psr7": "^1.7",
"docker-client/open-api": "6.1.40.*"
},
"prefer-stable": true,
"minimum-stability": "dev"
}

0 comments on commit 4f02056

Please sign in to comment.