Commit 4a0d5fe2 authored by Noel Alonso's avatar Noel Alonso
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading

.dockerignore

0 → 100644
+13 −0
Original line number Diff line number Diff line
*

!/*-commands/
/*-commands/*
!/*-commands/dist/
/*-commands/dist/*
!/*-commands/dist/*.jar

!/*-view/
/*-view/*
!/*-view/dist/
/*-view/dist/*
!/*-view/dist/*.jar

.gitignore

0 → 100644
+7 −0
Original line number Diff line number Diff line
.*
!.gitignore
!.gitlab-ci.yml
!.dockerignore
!.env
**/target
*/dist

.gitlab-ci.yml

0 → 100644
+44 −0
Original line number Diff line number Diff line
include:
  - project: 'redmic-project/gitlab-ci-templates'
    ref: master
    file: '/maven-building-functional-unit.yml'
  - project: 'redmic-project/gitlab-ci-templates'
    ref: master
    file: '/license-listing.yml'
  - project: 'redmic-project/gitlab-ci-templates'
    ref: master
    file: '/packaging.yml'
  - project: 'redmic-project/gitlab-ci-templates'
    ref: master
    file: '/deployment-functional-unit.yml'

stages:
  - build-lib
  - build-service
  - license-list
  - package
  - test-package
  - deploy

variables:
  DOCKER_BUILD_ARGS: --build-arg PARENT_IMAGE_NAME=${REDMIC_SERVER_IMAGE_NAME} --build-arg PARENT_IMAGE_TAG=${REDMIC_SERVER_IMAGE_TAG}
  STACK: template

.deploy-commands:
  script:
    - >
      deploy.sh IMAGE_NAME=${IMAGE_NAME} IMAGE_TAG=${IMAGE_TAG} COMPOSE_FILE=${COMPOSE_FILE}
      SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE} OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID}
      OAUTH_CLIENT_SECRET=${OAUTH_CLIENT_SECRET} PUBLIC_HOSTNAME=${PUBLIC_HOSTNAME}
  environment:
    url: https://${PUBLIC_HOSTNAME}/api/${CI_PROJECT_NAME}/commands

.deploy-view:
  script:
    - >
      deploy.sh IMAGE_NAME=${IMAGE_NAME} IMAGE_TAG=${IMAGE_TAG} COMPOSE_FILE=${COMPOSE_FILE}
      SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE} OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID}
      OAUTH_CLIENT_SECRET=${OAUTH_CLIENT_SECRET} ELASTIC_CLUSTERNAME=${ELASTIC_CLUSTERNAME}
      ELASTIC_USER=${ELASTIC_USER} ELASTIC_PASSWORD=${ELASTIC_PASSWORD} PUBLIC_HOSTNAME=${PUBLIC_HOSTNAME}
  environment:
    url: https://${PUBLIC_HOSTNAME}/api/${CI_PROJECT_NAME}/view

Dockerfile

0 → 100644
+8 −0
Original line number Diff line number Diff line
ARG PARENT_IMAGE_NAME
ARG PARENT_IMAGE_TAG

FROM ${PARENT_IMAGE_NAME}:${PARENT_IMAGE_TAG}

COPY /*/dist/*.jar ./

EXPOSE ${COMMANDS_PORT} ${VIEW_PORT}

README.md

0 → 100644
+9 −0
Original line number Diff line number Diff line
# Atlas

| Metrics | Master | Develop |
|:-:|:-:|:-:|
| CI status | [![pipeline status](https://gitlab.com/redmic-project/server/atlas/badges/master/pipeline.svg)](https://gitlab.com/redmic-project/server/atlas/commits/master) | [![pipeline status](https://gitlab.com/redmic-project/server/atlas/badges/dev/pipeline.svg)](https://gitlab.com/redmic-project/server/atlas/commits/dev) |
| Total test coverage | [![coverage report](https://gitlab.com/redmic-project/server/atlas/badges/master/coverage.svg)](https://gitlab.com/redmic-project/server/atlas/commits/master) | [![coverage report](https://gitlab.com/redmic-project/server/atlas/badges/dev/coverage.svg)](https://gitlab.com/redmic-project/server/atlas/commits/dev) |
| Library test coverage | [![coverage report](https://gitlab.com/redmic-project/server/atlas/badges/master/coverage.svg?job=maven-build-lib)](https://gitlab.com/redmic-project/server/atlas/commits/master) | [![coverage report](https://gitlab.com/redmic-project/server/atlas/badges/dev/coverage.svg?job=maven-build-lib)](https://gitlab.com/redmic-project/server/atlas/commits/dev) |
| Commands test coverage | [![coverage report](https://gitlab.com/redmic-project/server/atlas/badges/master/coverage.svg?job=maven-build-commands)](https://gitlab.com/redmic-project/server/atlas/commits/master) | [![coverage report](https://gitlab.com/redmic-project/server/atlas/badges/dev/coverage.svg?job=maven-build-commands)](https://gitlab.com/redmic-project/server/atlas/commits/dev) |
| View test coverage | [![coverage report](https://gitlab.com/redmic-project/server/atlas/badges/master/coverage.svg?job=maven-build-view)](https://gitlab.com/redmic-project/server/atlas/commits/master) | [![coverage report](https://gitlab.com/redmic-project/server/atlas/badges/dev/coverage.svg?job=maven-build-view)](https://gitlab.com/redmic-project/server/atlas/commits/dev) |