Skip to content

Commit e632e45

Browse files
committed
Re-add image-builder. Change order for Docker startups purposes. Tag
image-builder twice Had a problem with starting up Docker and having it use the config with the keys vs it not using it, so change the order for this in order for the first part to use insecure docker for pulling images and then switch to docker with certs + keys.
1 parent d2b5e7b commit e632e45

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

ansible/dock.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
name={{ dock }}
1212
groups=dock
1313

14-
- include: charon.yml git_branch="v5.0.1"
15-
- include: dock-init.yml git_branch="v10.1.2"
16-
- include: krain.yml git_branch="v0.3.1"
14+
- include: image-builder.yml git_branch="v4.3.0"
1715

1816
- hosts: "{{ dock }}"
1917
tasks:
@@ -28,3 +26,7 @@
2826
roles:
2927
- { role: install-ssm }
3028
- { role: dock-images }
29+
30+
- include: charon.yml git_branch="v5.0.1"
31+
- include: dock-init.yml git_branch="v10.1.2"
32+
- include: krain.yml git_branch="v0.3.1"

ansible/roles/image-builder/tasks/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@
77

88
- name: build the image-builder
99
tags: deploy
10-
command: sudo docker build --no-cache --tag="{{ image_builder_docker_namespace }}:{{ git_branch }}" /opt/runnable/image-builder
10+
become: true
11+
command: docker build --no-cache --tag="{{ image_builder_docker_namespace }}:{{ git_branch }}" /opt/runnable/image-builder
12+
13+
- name: tag the image-builder with registry.runnable.com
14+
tags: deploy
15+
become: true
16+
command: docker tag {{ image_builder_docker_namespace }}:{{ git_branch }} registry.runnable.com/{{ image_builder_docker_namespace }}:{{ git_branch }}

0 commit comments

Comments
 (0)