Skip to content
Snippets Groups Projects
Commit 04a034be authored by Charalampos Tsakiridis's avatar Charalampos Tsakiridis
Browse files

Changes on docker-compose and mysql-docker-compose yml files, health endpoint...

Changes on docker-compose and mysql-docker-compose yml files, health endpoint added, fixes at Read The Doc tool, metadata searchWithFilters endpoint fixed and other bug fixes
parent 40fc7944
No related branches found
No related tags found
No related merge requests found
Pipeline #69703 passed
Showing
with 74 additions and 46 deletions
variables: # This file is a template, and might need editing before it works on your project.
KUBERNETES_PRIVILEGED: "true" # This is a sample GitLab CI/CD configuration file that should run without any modifications.
DOCKER_BUILDKIT: 1 # It demonstrates a basic 3 stage CI/CD pipeline. Instead of real tests or scripts,
BUILDKIT_PROGRESS: plain # it uses echo commands to simulate the pipeline execution.
DOCKER_CLI: '1' #
CI_PROJECT_DIR: "." # A pipeline is composed of independent jobs that run scripts, grouped into stages.
# Stages run in sequential order, but jobs within stages run in parallel.
#
stages: # For more information, see: https://docs.gitlab.com/ee/ci/yaml/index.html#stages
#
# You can copy and paste this template into a new `.gitlab-ci.yml` file.
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword.
#
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
stages: # List of stages for jobs, and their order of execution
- build - build
- test - test
- deploy - deploy
- notify
include:
- project: 'eclipsefdn/it/releng/gitlab-runner-service/gitlab-ci-templates'
file: '/jobs/buildkit.gitlab-ci.yml'
buildkit:
extends: .buildkit
variables:
CI_REGISTRY_IMAGE: datamite/logging
rules:
# Trigger for merge requests
- if: $CI_COMMIT_BRANCH == "main"
when: always
# Default rule to block other triggers
- when: never
notify_update:
stage: notify
trigger:
project: eclipse-research-labs/datamite-project/data-support-tools/data_ingestion_and_storage/infrastructure
rules:
# Trigger for merge requests
- if: $CI_COMMIT_BRANCH == "main"
when: always
# Default rule to block other triggers
- when: never
build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- echo "Compiling the code..."
- echo "Compile complete."
unit-test-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
script:
- echo "Running unit tests... This will take about 60 seconds."
- sleep 60
- echo "Code coverage is 90%"
lint-test-job: # This job also runs in the test stage.
stage: test # It can run at the same time as unit-test-job (in parallel).
script:
- echo "Linting code... This will take about 10 seconds."
- sleep 10
- echo "No lint issues found."
deploy-job: # This job runs in the deploy stage.
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
environment: production
script:
- echo "Deploying application..."
- echo "Application successfully deployed."
FROM node:16.13
# Create the required folders
RUN mkdir /opt/nodejs-server
RUN mkdir /opt/nodejs-server/dist
RUN mkdir /opt/nodejs-server/log
FROM node:16.13 # Copy all required files
COPY ./dist /opt/nodejs-server/dist
COPY ./src /opt/nodejs-server/src
COPY ./package*.json /opt/nodejs-server/
COPY ./nodemon.json /opt/nodejs-server/
COPY ./ormconfig.json /opt/nodejs-server/
COPY ./swagger_output.json /opt/nodejs-server/
COPY ./tsconfig.json /opt/nodejs-server/
COPY ./tslint.json /opt/nodejs-server/
RUN apt-get update;
RUN apt-get install nano;
# Change working directory
WORKDIR /opt/nodejs-server
RUN npm install
RUN npm run build
COPY ./src/swagger_output.json /opt/nodejs-server/dist/
EXPOSE 29788
CMD ["npm", "start"]
\ No newline at end of file
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment