Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
659413ea
Commit
659413ea
authored
3 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
[proxy] Use proxy for other channels, i.e., conda-forge, too
parent
7698d1bf
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!224
[proxy] Use proxy for other channels, i.e., conda-forge, too
Pipeline
#52185
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/devtools/bootstrap.py
+8
-4
8 additions, 4 deletions
bob/devtools/bootstrap.py
with
8 additions
and
4 deletions
bob/devtools/bootstrap.py
+
8
−
4
View file @
659413ea
...
@@ -22,6 +22,7 @@ conda_build: #!final
...
@@ -22,6 +22,7 @@ conda_build: #!final
pkg_format:
'
2
'
pkg_format:
'
2
'
default_channels: #!final
default_channels: #!final
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/main
channel_alias: https://conda.anaconda.org #!final
quiet: true #!final
quiet: true #!final
remote_connect_timeout_secs: 120.0 #!final
remote_connect_timeout_secs: 120.0 #!final
remote_max_retries: 50 #!final
remote_max_retries: 50 #!final
...
@@ -461,14 +462,17 @@ if __name__ == "__main__":
...
@@ -461,14 +462,17 @@ if __name__ == "__main__":
condarc
=
os
.
path
.
join
(
args
.
conda_root
,
"
condarc
"
)
condarc
=
os
.
path
.
join
(
args
.
conda_root
,
"
condarc
"
)
logger
.
info
(
"
(create) %s
"
,
condarc
)
logger
.
info
(
"
(create) %s
"
,
condarc
)
with
open
(
condarc
,
"
wt
"
)
as
f
:
with
open
(
condarc
,
"
wt
"
)
as
f
:
# Replaces https://repo.anaconda.com
/pkgs/main by
# Replaces https://repo.anaconda.com
and https://conda.anaconda.org by our
#
https://bobconda.lab.idiap.ch:8443, so it is optimized for
#
mirrors, so it is optimized for a CI build. Notice we consider this
#
a CI build. Notice we consider this script is only executed in this
#
script is only executed in this context. The URL should NOT work
#
context. The URL should NOT work
outside of Idiap's network.
# outside of Idiap's network.
f
.
write
(
f
.
write
(
_BASE_CONDARC
.
replace
(
_BASE_CONDARC
.
replace
(
"
https://repo.anaconda.com
"
,
"
https://repo.anaconda.com
"
,
"
https://bobconda.lab.idiap.ch:8443
"
,
"
https://bobconda.lab.idiap.ch:8443
"
,
).
replace
(
"
https://conda.anaconda.org
"
,
"
https://bobconda.lab.idiap.ch:9443
"
,
)
)
)
)
...
...
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