forked from neo4j/docker-neo4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlookup
executable file
·84 lines (78 loc) · 2.36 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
#! /usr/bin/env python
import os
import sys
data = {
'3.0.0-M05': {
'community': {
'sha': '2b7878f424859de6951e86f9abb71701d8d45ab22e1157410504fe6a6bb17a95'
},
'enterprise': {
'sha': 'a4a539d3bfbc059f44bec01edaa5819b40096a756d73ce74768baed022693df4'
}
},
'3.0.0-M04': {
'community': {
'sha': '4fed0551a321c7cb41ac3ebf232a4a4deea0425ae24d751b6b7307a056735f28'
},
'enterprise': {
'sha': '00437e55ba7e3748244736f45164a4d2a5006592aed591dba17b17ccbfe23e0d'
}
},
'3.0.0-M03': {
'community': {
'sha': '77351117d92f4c8cce0b700ec89aabbe80c4029fdca7ba2a18f28791fbdbcc60'
},
'enterprise': {
'sha': '1a1702f232c55f8af9e86d0c6a7ed68c695fe5c99ba127f795ab21d8bc8bbc8a'
}
},
'2.3.3': {
'community': {
'sha': '01559c55055516a42ee2dd100137b6b55d63f02959a3c6c6db7a152e045828d9'
},
'enterprise': {
'sha': '864b7ebef3a12844c809e75016aa951c60ac90fb0d075a595108824859ce7875'
}
},
'2.2.8': {
'community': {
'sha': 'e6758ed662821a71e15836b94fe3f591d5e27f2ff4c1188be619d73343993a99'
}
},
'2.1.8': {
'community': {
'sha': 'faf209dbeef9851c88717660a4b7ccb5110343a9ed53110f516b675c8230c39a'
}
},
'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]