Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-socket-proxy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Tecnativa
docker-socket-proxy
Commits
dc0b60e6
Commit
dc0b60e6
authored
4 years ago
by
João Marques
Browse files
Options
Downloads
Patches
Plain Diff
Remove build fixture from tests to see if image is built in CI
parent
47f8f464
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/conftest.py
+0
-10
0 additions, 10 deletions
tests/conftest.py
with
0 additions
and
10 deletions
tests/conftest.py
+
0
−
10
View file @
dc0b60e6
...
...
@@ -2,9 +2,7 @@ import json
import
os
from
contextlib
import
contextmanager
from
logging
import
info
from
pathlib
import
Path
import
pytest
from
plumbum
import
local
from
plumbum.cmd
import
docker
...
...
@@ -12,14 +10,6 @@ DOCKER_REPO = os.environ.get("DOCKER_REPO", "docker-socket-proxy")
IMAGE_NAME
=
f
"
{
DOCKER_REPO
}
:local
"
@pytest.fixture
(
autouse
=
True
,
scope
=
"
session
"
)
def
docker_image
():
"""
Build local docker image once before starting test suite.
"""
info
(
f
"
Building
{
IMAGE_NAME
}
...
"
)
docker
(
"
build
"
,
"
-t
"
,
IMAGE_NAME
,
Path
(
__file__
).
parent
.
parent
)
return
IMAGE_NAME
@contextmanager
def
proxy
(
**
env_vars
):
"""
A context manager that starts the proxy with the specified env.
...
...
This diff is collapsed.
Click to expand it.
Sheogorath
@sheogorath
mentioned in commit
e84babd1
·
4 years ago
mentioned in commit
e84babd1
mentioned in commit e84babd1c4a459cc39a8f20cc4e117353581f869
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment