forked from neo4j/docker-neo4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlookup
executable file
·96 lines (90 loc) · 2.66 KB
/
lookup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#! /usr/bin/env python
import os
import sys
data = {
'2.3.0': {
'community': {
'sha': '88fee93884700dae6a1f870dd84b3da9d094db33d57db1c88904954ef2cb4830'
},
'enterprise': {
'sha': '0d3f370f8141d8bc37065f843af190c405cba098d1bb82065ffc0cb5b99950b7'
}
},
'2.3.0-RC1': {
'community': {
'sha': 'fed10ec7d7c0a0c39041a8079672812962f3ceff053f050617b42b5d0bd22ae9'
},
'enterprise': {
'sha': 'fdd77a1c0802241a4a712d0ae957abd5f3fe0fdb1124b0e3ca24d0621f01b986'
}
},
'2.3.0-M03': {
'community': {
'sha': 'cd47ae541a0c5da0d82212c30c1c2fb19ea91ddb1b174346c120e596e04b5dfc'
},
'enterprise': {
'sha': 'eaabc51cfbfb78f02a0d404a38e79a5dff903e9fed18b7fa0fbfbfc4a9a138bb'
}
},
'2.3.0-M02': {
'community': {
'sha': '54047565659e1230c7a196ff696765e042da5679cf287966efad9e36a8f07046'
}
},
'2.2.6': {
'community': {
'sha': '77f8371318c843bdd8fbd5f95be95e9a1467bb84030d4a3ff9dcec805b4003b9'
}
},
'2.2.5': {
'community': {
'sha': '7fadc119f465a3d6adceb610401363fb158a5ed25081f9893d4f56ac4989a998'
}
},
'2.2.4': {
'community': {
'sha': 'b3fa5d547e50c3f619e39290266979e72f7222be7644fbb3bad2fc31d074aab9'
}
},
'2.2.3': {
'community': {
'sha': 'b170e54a8af540a30b915a85bdc6e3670c0790466fb90cf7fd9555097165c67c'
}
},
'2.2.2': {
'community': {
'sha': '18d6d88c61d9077340adf774359bd1d8f458f68ec51bcf96deb3f00894db1ded'
}
},
'dev': {
'dev': {
'version': os.environ['DEV_VERSION'],
'edition': os.environ['DEV_EDITION'],
'sha': os.environ['DEV_SHA'],
'root': 'file:///docker-test/',
'inject': 'COPY ./neo4j-package.tar.gz /docker-test/$NEO4J_TARBALL',
}
}
}
for version, editions in data.iteritems():
for edition, details in editions.iteritems():
if not 'version' in details:
details['version'] = version
if not 'edition' in details:
details['edition'] = edition
if not 'root' in details:
details['root'] = 'http://dist.neo4j.org'
if not 'inject' in details:
details['inject'] = ''
tag = os.environ['TAG']
detail = sys.argv[1]
if tag == 'dev':
version = 'dev'
edition = 'dev'
elif tag.endswith('-enterprise'):
version = tag.replace('-enterprise', '')
edition = 'enterprise'
else:
version = tag
edition = 'community'
print data[version][edition][detail]