Unverified Commit e90a4a1f authored by watucker's avatar watucker Committed by GitHub
Browse files

Merge pull request #185 from ESGF/opa-integration

Opa integration
parents 2a27947c f5d55596
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
  become: true
  roles:
    - docker
    - auth
    - { name: data, tags: [data] }
    - { name: index, tags: [index] }
    - proxy
+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
+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
+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