|
6 | 6 | import logging |
7 | 7 | import sys |
8 | 8 |
|
9 | | -from Crypto.PublicKey import RSA |
10 | | - |
11 | 9 | logging.basicConfig( |
12 | 10 | format='%(asctime)s,%(msecs)d %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s', |
13 | 11 | datefmt='%d-%m-%Y:%H:%M:%S', |
|
23 | 21 | {'name': 'github-trigger', 'depends_on': ['images-base']}, |
24 | 22 | {'name': 'github-review', 'depends_on': ['images-base']}, |
25 | 23 | {'name': 'collector-api'}, |
26 | | - {'name': 'collector-fluentd'}, |
27 | 24 | {'name': 'job'}, |
28 | 25 | {'name': 'opa'}, |
29 | 26 | {'name': 'gc', 'depends_on': ['images-base']}, |
30 | | - {'name': 'scheduler-kubernetes'}, |
| 27 | + {'name': 'scheduler-kubernetes', 'depends_on': ['images-base']}, |
31 | 28 | {'name': 'api', 'depends_on': ['images-base']}, |
32 | 29 | {'name': 'build-dashboard-client'}, |
33 | 30 | {'name': 'static', 'depends_on': ['build-dashboard-client']}, |
@@ -126,32 +123,6 @@ def images_push(args): |
126 | 123 | print('invalid type') |
127 | 124 | sys.exit(1) |
128 | 125 |
|
129 | | -def _setup_rsa_keys(): |
130 | | - private_key_path = '/tmp/ib/run/rsa/id_rsa' |
131 | | - public_key_path = '/tmp/ib/run/rsa/id_rsa.pub' |
132 | | - |
133 | | - key = RSA.generate(2048) |
134 | | - |
135 | | - if not os.path.exists(private_key_path): |
136 | | - logger.warn('Private key does not exist: %s', private_key_path) |
137 | | - logger.warn('Recreating it') |
138 | | - |
139 | | - if not os.path.exists(os.path.dirname(private_key_path)): |
140 | | - os.makedirs(os.path.dirname(private_key_path)) |
141 | | - |
142 | | - with open(private_key_path, 'w+') as s: |
143 | | - s.write(str(key.exportKey())) |
144 | | - |
145 | | - if not os.path.exists(public_key_path): |
146 | | - logger.warn('Public key does not exist: %s', public_key_path) |
147 | | - logger.warn('Recreating it') |
148 | | - |
149 | | - if not os.path.exists(os.path.dirname(public_key_path)): |
150 | | - os.makedirs(os.path.dirname(public_key_path)) |
151 | | - |
152 | | - with open(public_key_path, 'w+') as s: |
153 | | - s.write(str(key.publickey().exportKey())) |
154 | | - |
155 | 126 | def services_start(args): |
156 | 127 | if args.service_name == 'storage': |
157 | 128 | execute(['docker-compose', 'up'], |
@@ -222,15 +193,15 @@ def main(): |
222 | 193 |
|
223 | 194 | images_build_parser = sub_images.add_parser('build') |
224 | 195 | images_build_parser.set_defaults(func=images_build) |
225 | | - images_build_parser.add_argument("--registry", default='localhost:5000') |
| 196 | + images_build_parser.add_argument("--registry", default='quay.io') |
226 | 197 | images_build_parser.add_argument("--tag", default='latest') |
227 | 198 | images_build_parser.add_argument("--filter", default='.*') |
228 | 199 | images_build_parser.add_argument("--push", action='store_true', default=False) |
229 | 200 | images_build_parser.add_argument("--type", default='registry') |
230 | 201 |
|
231 | 202 | images_push_parser = sub_images.add_parser('push') |
232 | 203 | images_push_parser.set_defaults(func=images_push) |
233 | | - images_push_parser.add_argument("--registry", default='localhost:5000') |
| 204 | + images_push_parser.add_argument("--registry", default='quay.io') |
234 | 205 | images_push_parser.add_argument("--tag", default='latest') |
235 | 206 | images_push_parser.add_argument("--filter", default='.*') |
236 | 207 | images_push_parser.add_argument("--type", default='registry') |
|
0 commit comments