Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Yusei Tahara
slapos.buildout
Commits
912333a3
Commit
912333a3
authored
Jun 22, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make test following reality.
parent
2e1893a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
src/zc/buildout/networkcache.txt
src/zc/buildout/networkcache.txt
+16
-16
No files found.
src/zc/buildout/networkcache.txt
View file @
912333a3
Using buildout with
network-cache
Using buildout with
cache over network
=================================
=================================
=====
NOTE: You need to install the networkcached into your system to run this
Note: We are in process of preparing docs. This is only showcase.
test, otherwise it will not be possible to get proper results.
The buildout itself must be able to cache everything which is downloadble
into an external and universal cache server.
Such feature is not enabled by default, but you can enable defining the
option called ```network-cache```.
>>> write(sample_buildout, 'buildout.cfg',
>>> write(sample_buildout, 'buildout.cfg',
... '''
... '''
... [buildout]
... [buildout]
... network-cache = http://127.0.0.1:5001/
... sha-cache = http://127.0.0.1:1/
... sha-dir = http://127.0.0.1:2/
... find-links = %(link_server)s
... find-links = %(link_server)s
... parts = eggs
... parts = eggs
...
...
...
@@ -25,12 +19,16 @@ option called ```network-cache```.
...
@@ -25,12 +19,16 @@ option called ```network-cache```.
>>> print system(buildout)
>>> print system(buildout)
Installing eggs.
Installing eggs.
Getting distribution for 'demo==0.2'.
Getting distribution for 'demo==0.2'.
The url is not cached yet: http://localhost/demo-0.2-py2.6.egg
Downloading demo-0.2-py2.7.egg from network cache.
Fail to download from network cache demo-0.2-py2.7.egg: [Errno 111] Connection refused
Fail to upload file. [Errno 111] Connection refused
Got demo 0.2.
Got demo 0.2.
Getting distribution for 'demoneeded'.
Getting distribution for 'demoneeded'.
The url is not cached yet: http://localhost/demoneeded-1.2c1.zip
Downloading demoneeded-1.2c1.zip from network cache.
Fail to download from network cache demoneeded-1.2c1.zip: [Errno 111] Connection refused
Fail to upload file. [Errno 111] Connection refused
Got demoneeded 1.2c1.
Got demoneeded 1.2c1.
...
<BLANKLINE>
>>> from glob import glob
>>> from glob import glob
>>> from os.path import join
>>> from os.path import join
...
@@ -40,6 +38,8 @@ option called ```network-cache```.
...
@@ -40,6 +38,8 @@ option called ```network-cache```.
>>> print system(buildout)
>>> print system(buildout)
Updating eggs.
Updating eggs.
Getting distribution for 'demoneeded'.
Getting distribution for 'demoneeded'.
Downloading from network cache http://127.0.0.1:5001/105e4a9ba3f9c7f45b46cc8c47ac2d2ca6440ae564538090c6d390a8959dd03e
Downloading demoneeded-1.2c1.zip from network cache.
Fail to download from network cache demoneeded-1.2c1.zip: [Errno 111] Connection refused
Fail to upload file. [Errno 111] Connection refused
Got demoneeded 1.2c1.
Got demoneeded 1.2c1.
...
<BLANKLINE>
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