File tree Expand file tree Collapse file tree 3 files changed +93
-2
lines changed Expand file tree Collapse file tree 3 files changed +93
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,16 @@ local PipelineTesting = {
1010 name: "pypiserver" ,
1111 image: "pypiserver/pypiserver" ,
1212 pull: "always" ,
13+ entrypoint: [
14+ "pypi-server" ,
15+ "-P" ,
16+ "." ,
17+ "-a" ,
18+ "." ,
19+ "-p" ,
20+ "8080" ,
21+ "/data/packages"
22+ ],
1323 },
1424 ],
1525 steps: [
@@ -26,7 +36,7 @@ local PipelineTesting = {
2636 },
2737 {
2838 name: "test" ,
29- image: "golang:1.11" ,
39+ image: "golang:1.11-alpine " ,
3040 pull: "always" ,
3141 environment: {
3242 GO111MODULE: "on" ,
@@ -36,6 +46,8 @@ local PipelineTesting = {
3646 PLUGIN_PASSWORD: "demo" ,
3747 },
3848 commands: [
49+ "apk --no-cache add -U python3 git" ,
50+ "pip3 install --no-cache-dir --upgrade pip setuptools wheel six twine" ,
3951 "go test -cover ./..." ,
4052 ],
4153 },
Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ steps:
1717
1818- name : test
1919 pull : always
20- image : golang:1.11
20+ image : golang:1.11-alpine
2121 commands :
22+ - apk --no-cache add -U python3 git
23+ - pip3 install --no-cache-dir --upgrade pip setuptools wheel six twine
2224 - go test -cover ./...
2325 environment :
2426 GO111MODULE : on
@@ -31,6 +33,15 @@ services:
3133- name : pypiserver
3234 pull : always
3335 image : pypiserver/pypiserver
36+ entrypoint :
37+ - pypi-server
38+ - -P
39+ - .
40+ - -a
41+ - .
42+ - -p
43+ - 8080
44+ - /data/packages
3445
3546trigger :
3647 branch :
Original file line number Diff line number Diff line change 1+ [app:main]
2+ use = egg:pypicloud
3+
4+ pyramid.reload_templates = false
5+ pyramid.debug_authorization = false
6+ pyramid.debug_notfound = false
7+ pyramid.debug_routematch = false
8+ pyramid.default_locale_name = en
9+
10+ pypi.storage = file
11+ storage.dir = /var/lib/pypicloud/packages
12+
13+ # user: stevearc, pass: gunface
14+ user.stevearc = $5$rounds =80000$yiWi67QBJLDTvbI/$d6qIG/bIoM3hp0lxH8v/vzxg8Qc4CJbxbxiUH4MlnE7
15+
16+ # For beaker
17+ session.encrypt_key = replaceme
18+ session.validate_key = replaceme
19+ session.secure = false
20+
21+ # ##
22+ # wsgi server configuration
23+ # ##
24+
25+ [uwsgi]
26+ paste = config:%p
27+ paste-logger = %p
28+ master = true
29+ uid = pypicloud
30+ gid = pypicloud
31+ processes = 20
32+ reload-mercy = 15
33+ worker-reload-mercy = 15
34+ max-requests = 1000
35+ enable-threads = true
36+ http = 0.0.0.0:8080
37+
38+ # ##
39+ # logging configuration
40+ # http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
41+ # ##
42+
43+ [loggers]
44+ keys = root, boto
45+
46+ [handlers]
47+ keys = console
48+
49+ [formatters]
50+ keys = generic
51+
52+ [logger_root]
53+ level = INFO
54+ handlers = console
55+
56+ [logger_boto]
57+ level = WARN
58+ qualname = boto
59+ handlers =
60+
61+ [handler_console]
62+ class = StreamHandler
63+ args = (sys.stderr,)
64+ level = NOTSET
65+ formatter = generic
66+
67+ [formatter_generic]
68+ format = %(levelname)s %(asctime)s [%(name)s] %(message)s
You can’t perform that action at this time.
0 commit comments