Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
5daf7bcc
Kaydet (Commit)
5daf7bcc
authored
May 23, 2013
tarafından
shin-
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added .gitignore, proper packaging, updated setup.py, cleaned up commented code
üst
76e846d4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
14 deletions
+12
-14
.gitignore
.gitignore
+5
-0
__init__.py
docker/__init__.py
+2
-0
client.py
docker/client.py
+1
-10
setup.py
setup.py
+4
-4
No files found.
.gitignore
0 → 100644
Dosyayı görüntüle @
5daf7bcc
build
dist
*.egg-info
*.pyc
docker/__init__.py
0 → 100644
Dosyayı görüntüle @
5daf7bcc
from
client
import
Client
\ No newline at end of file
client.py
→
docker/
client.py
Dosyayı görüntüle @
5daf7bcc
...
...
@@ -14,12 +14,11 @@ class Client(requests.Session):
return
self
.
base_url
+
path
def
_result
(
self
,
response
,
json
=
False
):
# FIXME
if
response
.
status_code
!=
200
:
response
.
raise_for_status
()
if
json
:
return
response
.
json
()
return
response
return
response
.
text
def
_container_config
(
self
,
image
,
command
,
hostname
=
None
,
user
=
None
,
detach
=
False
,
stdin_open
=
False
,
tty
=
False
,
mem_limit
=
0
,
ports
=
None
,
environment
=
None
,
dns
=
None
,
...
...
@@ -401,14 +400,6 @@ class BuilderClient(object):
self
.
config
[
'Cmd'
]
=
None
self
.
merge_config
(
self
.
config
,
config
)
# res = self.client.post(self.client._url('/images/getCache'), {
# 'Id': self.image,
# 'Config': config
# })
# if res.status_code != 200 and res.status_code != 404:
# res.raise_for_status()
# elif res.status_code != 404:
# self.image = res.json().get('Id', self.image)
container
=
self
.
run
()
self
.
config
[
'Cmd'
]
=
cmd
...
...
setup.py
Dosyayı görüntüle @
5daf7bcc
#/usr/bin/env python
import
os
from
setuptools
import
setup
,
find_packages
from
setuptools
import
setup
ROOT_DIR
=
os
.
path
.
dirname
(
__file__
)
SOURCE_DIR
=
os
.
path
.
join
(
ROOT_DIR
)
...
...
@@ -8,10 +8,10 @@ SOURCE_DIR = os.path.join(ROOT_DIR)
test_requirements
=
[]
setup
(
name
=
"docker-py"
,
version
=
'0.0.
1
'
,
version
=
'0.0.
2
'
,
description
=
"Python client for Docker."
,
packages
=
find_packages
()
,
install_requires
=
[]
+
test_requirements
,
packages
=
[
'docker'
]
,
install_requires
=
[
'requests'
]
+
test_requirements
,
zip_safe
=
False
,
classifiers
=
[
'Development Status :: 3 - Alpha'
,
'Environment :: Other Environment'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment