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
9d48b4f6
Kaydet (Commit)
9d48b4f6
authored
Agu 03, 2016
tarafından
Joffrey F
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Test fixes and updated Makefile for 1.12 testing
Signed-off-by:
Joffrey F
<
joffrey@docker.com
>
üst
67098f38
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
13 deletions
+25
-13
Makefile
Makefile
+17
-6
__init__.py
docker/utils/__init__.py
+7
-6
container_test.py
tests/integration/container_test.py
+1
-1
No files found.
Makefile
Dosyayı görüntüle @
9d48b4f6
...
...
@@ -32,16 +32,27 @@ integration-test-py3: build-py3
integration-dind
:
build build-py3
docker
rm
-vf
dpy-dind
||
:
docker run
-d
--name
dpy-dind
--privileged
dockerswarm/dind:1.10.3 docker daemon
-H
tcp://0.0.0.0:2375
docker run
--env
=
"DOCKER_HOST=tcp://docker:2375"
--link
=
dpy-dind:docker docker-py py.test tests/integration
docker run
--env
=
"DOCKER_HOST=tcp://docker:2375"
--link
=
dpy-dind:docker docker-py3 py.test tests/integration
docker run
-d
--name
dpy-dind
--privileged
dockerswarm/dind:1.12.0 docker daemon
\
-H
tcp://0.0.0.0:2375
docker run
--env
=
"DOCKER_HOST=tcp://docker:2375"
--link
=
dpy-dind:docker docker-py
\
py.test tests/integration
docker run
--env
=
"DOCKER_HOST=tcp://docker:2375"
--link
=
dpy-dind:docker docker-py3
\
py.test tests/integration
docker
rm
-vf
dpy-dind
integration-dind-ssl
:
build-dind-certs build build-py3
docker run
-d
--name
dpy-dind-certs dpy-dind-certs
docker run
-d
--env
=
"DOCKER_HOST=tcp://localhost:2375"
--env
=
"DOCKER_TLS_VERIFY=1"
--env
=
"DOCKER_CERT_PATH=/certs"
--volumes-from
dpy-dind-certs
--name
dpy-dind-ssl
-v
/tmp
--privileged
dockerswarm/dind:1.10.3 docker daemon
--tlsverify
--tlscacert
=
/certs/ca.pem
--tlscert
=
/certs/server-cert.pem
--tlskey
=
/certs/server-key.pem
-H
tcp://0.0.0.0:2375
docker run
--volumes-from
dpy-dind-ssl
--env
=
"DOCKER_HOST=tcp://docker:2375"
--env
=
"DOCKER_TLS_VERIFY=1"
--env
=
"DOCKER_CERT_PATH=/certs"
--link
=
dpy-dind-ssl:docker docker-py py.test tests/integration
docker run
--volumes-from
dpy-dind-ssl
--env
=
"DOCKER_HOST=tcp://docker:2375"
--env
=
"DOCKER_TLS_VERIFY=1"
--env
=
"DOCKER_CERT_PATH=/certs"
--link
=
dpy-dind-ssl:docker docker-py3 py.test tests/integration
docker run
-d
--env
=
"DOCKER_HOST=tcp://localhost:2375"
--env
=
"DOCKER_TLS_VERIFY=1"
\
--env
=
"DOCKER_CERT_PATH=/certs"
--volumes-from
dpy-dind-certs
--name
dpy-dind-ssl
\
-v
/tmp
--privileged
dockerswarm/dind:1.12.0 docker daemon
--tlsverify
\
--tlscacert
=
/certs/ca.pem
--tlscert
=
/certs/server-cert.pem
\
--tlskey
=
/certs/server-key.pem
-H
tcp://0.0.0.0:2375
docker run
--volumes-from
dpy-dind-ssl
--env
=
"DOCKER_HOST=tcp://docker:2375"
\
--env
=
"DOCKER_TLS_VERIFY=1"
--env
=
"DOCKER_CERT_PATH=/certs"
\
--link
=
dpy-dind-ssl:docker docker-py py.test tests/integration
docker run
--volumes-from
dpy-dind-ssl
--env
=
"DOCKER_HOST=tcp://docker:2375"
\
--env
=
"DOCKER_TLS_VERIFY=1"
--env
=
"DOCKER_CERT_PATH=/certs"
\
--link
=
dpy-dind-ssl:docker docker-py3 py.test tests/integration
docker
rm
-vf
dpy-dind-ssl dpy-dind-certs
flake8
:
build
...
...
docker/utils/__init__.py
Dosyayı görüntüle @
9d48b4f6
# flake8: noqa
from
.utils
import
(
compare_version
,
convert_port_bindings
,
convert_volume_binds
,
mkbuildcontext
,
tar
,
exclude_paths
,
parse_repository_tag
,
parse_host
,
kwargs_from_env
,
convert_filters
,
datetime_to_timestamp
,
create_host_config
,
create_
container_config
,
parse_bytes
,
ping_registry
,
parse_env_file
,
version_lt
,
version_gte
,
decode_json_header
,
split_command
,
kwargs_from_env
,
convert_filters
,
datetime_to_timestamp
,
create_
host_config
,
create_container_config
,
parse_bytes
,
ping_registry
,
parse_env_file
,
version_lt
,
version_gte
,
decode_json_header
,
split_command
,
create_ipam_config
,
create_ipam_pool
,
parse_devices
,
normalize_links
,
)
# flake8: noqa
)
from
.types
import
Ulimit
,
LogConfig
# flake8: noqa
from
.decorators
import
check_resource
,
minimum_version
,
update_headers
#flake8: noqa
from
.types
import
Ulimit
,
LogConfig
from
.decorators
import
check_resource
,
minimum_version
,
update_headers
tests/integration/container_test.py
Dosyayı görüntüle @
9d48b4f6
...
...
@@ -292,7 +292,7 @@ class CreateContainerTest(helpers.BaseTestCase):
)
self
.
client
.
start
(
container
)
assert
expected_msg
in
str
(
excinfo
.
value
)
assert
six
.
b
(
expected_msg
)
in
excinfo
.
value
.
explanation
def
test_valid_no_log_driver_specified
(
self
):
log_config
=
docker
.
utils
.
LogConfig
(
...
...
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