Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alice
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
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
trinitas
alice
Commits
ebf8d748
Commit
ebf8d748
authored
Apr 25, 2022
by
gyulaid
Browse files
Options
Downloads
Patches
Plain Diff
Fix #33
parent
9bf90060
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
alice-ci/setup.cfg
+1
-1
1 addition, 1 deletion
alice-ci/setup.cfg
alice-ci/src/alice/runners/pypirepo.py
+5
-1
5 additions, 1 deletion
alice-ci/src/alice/runners/pypirepo.py
with
6 additions
and
2 deletions
alice-ci/setup.cfg
+
1
−
1
View file @
ebf8d748
[metadata]
name
=
alice-ci
version
=
0.0.1
2
version
=
0.0.1
3
author
=
Daniel Gyulai
description
=
Alice CI framework
long_description
=
file: README.md
...
...
This diff is collapsed.
Click to expand it.
alice-ci/src/alice/runners/pypirepo.py
+
5
−
1
View file @
ebf8d748
import
logging
from
weakref
import
KeyedRef
import
docker
from
os.path
import
join
,
isdir
from
os
import
getcwd
,
mkdir
...
...
@@ -64,7 +65,10 @@ class PypiRepoRunner:
docker_host_ip
=
None
for
network
in
self
.
client
.
networks
.
list
():
if
network
.
name
==
"
bridge
"
:
try
:
docker_host_ip
=
network
.
attrs
[
"
IPAM
"
][
"
Config
"
][
0
][
"
Gateway
"
]
except
KeyError
:
docker_host_ip
=
network
.
attrs
[
"
IPAM
"
][
"
Config
"
][
0
][
"
Subnet
"
].
replace
(
"
.0/16
"
,
"
.1
"
)
if
docker_host_ip
is
None
:
raise
RunnerError
(
"
Unable to determine Docker host IP
"
)
...
...
This diff is collapsed.
Click to expand it.
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