Loading .gitlab-ci.yml +7 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,13 @@ build:conda: CONTEXT_DIR: $CI_PROJECT_DIR/images/conda needs: ["build:base"] build:opa: extends: .docker-build stage: build-2 variables: CONTEXT_DIR: $CI_PROJECT_DIR/images/opa needs: ["build:base"] build:search-builder: extends: .docker-build stage: build-3 Loading deploy/ansible/playbook.yml +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ become: true roles: - docker - auth - { name: data, tags: [data] } - { name: index, tags: [index] } - proxy deploy/ansible/roles/auth/defaults/main.yml 0 → 100644 +28 −0 Original line number Diff line number Diff line --- ### # Default values used for all images # Each of these values can be overidden on a per-image basis if required ### # The image prefix to use # If using a private registry, change this, e.g. registry.ceda.ac.uk/esgfdeploy image_prefix: esgfdeploy # The image tag to use image_tag: latest # Indicates whether images should be pulled every time the playbook runs # When using mutable tags, like latest or branch names, this should be true # When using immutable tags, like commit shas or release tags, this can be false image_pull: true ### # Auth configuration ### # Indicates if the auth service should be deployed or not auth_enabled: false # Settings for the auth-service image auth_image_prefix: "{{ image_prefix }}" auth_image_tag: "{{ image_tag }}" auth_image_pull: "{{ image_pull }}" auth_image_repository: auth-service deploy/ansible/roles/auth/tasks/auth_install.yml 0 → 100644 +17 −0 Original line number Diff line number Diff line --- - name: Create Docker network docker_network: name: esgf - name: Start auth container docker_container: name: auth image: "{{ auth_image_prefix }}/{{ auth_image_repository }}:{{ auth_image_tag }}" pull: "{{ auth_image_pull }}" detach: yes restart_policy: unless-stopped exposed_ports: - "8080" networks: - name: esgf deploy/ansible/roles/auth/tasks/auth_uninstall.yml 0 → 100644 +11 −0 Original line number Diff line number Diff line --- - name: Stop auth container docker_container: name: auth state: absent - name: Remove auth config directory file: path: /esg/config/auth state: absent Loading
.gitlab-ci.yml +7 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,13 @@ build:conda: CONTEXT_DIR: $CI_PROJECT_DIR/images/conda needs: ["build:base"] build:opa: extends: .docker-build stage: build-2 variables: CONTEXT_DIR: $CI_PROJECT_DIR/images/opa needs: ["build:base"] build:search-builder: extends: .docker-build stage: build-3 Loading
deploy/ansible/playbook.yml +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ become: true roles: - docker - auth - { name: data, tags: [data] } - { name: index, tags: [index] } - proxy
deploy/ansible/roles/auth/defaults/main.yml 0 → 100644 +28 −0 Original line number Diff line number Diff line --- ### # Default values used for all images # Each of these values can be overidden on a per-image basis if required ### # The image prefix to use # If using a private registry, change this, e.g. registry.ceda.ac.uk/esgfdeploy image_prefix: esgfdeploy # The image tag to use image_tag: latest # Indicates whether images should be pulled every time the playbook runs # When using mutable tags, like latest or branch names, this should be true # When using immutable tags, like commit shas or release tags, this can be false image_pull: true ### # Auth configuration ### # Indicates if the auth service should be deployed or not auth_enabled: false # Settings for the auth-service image auth_image_prefix: "{{ image_prefix }}" auth_image_tag: "{{ image_tag }}" auth_image_pull: "{{ image_pull }}" auth_image_repository: auth-service
deploy/ansible/roles/auth/tasks/auth_install.yml 0 → 100644 +17 −0 Original line number Diff line number Diff line --- - name: Create Docker network docker_network: name: esgf - name: Start auth container docker_container: name: auth image: "{{ auth_image_prefix }}/{{ auth_image_repository }}:{{ auth_image_tag }}" pull: "{{ auth_image_pull }}" detach: yes restart_policy: unless-stopped exposed_ports: - "8080" networks: - name: esgf
deploy/ansible/roles/auth/tasks/auth_uninstall.yml 0 → 100644 +11 −0 Original line number Diff line number Diff line --- - name: Stop auth container docker_container: name: auth state: absent - name: Remove auth config directory file: path: /esg/config/auth state: absent