How to Install CDS on Fedora Server Latest

CDS, or Continuous Delivery Service, is an open-source solution for automating continuous delivery pipelines. In this tutorial, we will show you how to install CDS on a Fedora server.

Prerequisites

Before we begin with the installation process, check that your system meets the following prerequisites:

Step 1: Clone the CDS Repository

The first step is to clone the CDS repository onto your local machine. You can do this by running the following command in the terminal:

git clone https://github.com/ovh/cds.git && cd cds

This will download the latest version of the CDS codebase onto your local machine.

Step 2: Configure the CDS Environment

Once you have cloned the repository, navigate to the deployments/docker-compose directory and open the docker-compose.yml file in your favorite text editor. Modify the following parameters according to your requirements:

version: '2'

services:
  cds-db:
    image: postgres:13.1
    restart: unless-stopped
    env_file:
      - .env
    volumes:
      - cds-db:/var/lib/postgresql/data

  cds-server:
    image: cds:{{CDS_VERSION}}
    restart: unless-stopped
    env_file:
      - .env
    volumes:
      - cds-data:/data
    ports:
      - "{{CDS_EXTERNAL_URL}}:8080:8080"

  cds-elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:{{ELASTICSEARCH_VERSION}}
    restart: unless-stopped
    environment:
      - "discovery.type=single-node"
      - "cluster.routing.allocation.disk.threshold_enabled=false"
      - "http.max_initial_line_length=2kb"
    volumes:
      - cds-elasticsearch:/usr/share/elasticsearch/data
    healthcheck:
      test: curl --write-out %{http_code} --silent --output /dev/null http://localhost:9200
      interval: 30s
      timeout: 10s
      retries: 5

  cds-redis:
    image: redis:5.0-alpine
    restart: unless-stopped

  cds-api:
    image: cds:{{CDS_VERSION}}
    restart: unless-stopped
    env_file:
      - .env
    command: api
    depends_on:
      - cds-server
      - cds-db

  cds-ui:
    image: cds:{{CDS_VERSION}}
    restart: unless-stopped
    env_file:
      - .env
    ports:
      - "{{CDS_EXTERNAL_URL}}:8000:8000"
    command: ui
  
volumes:
  cds-db:
  cds-data:
  cds-elasticsearch:

Once you have made the necessary changes save and close the file.

Step 3: Start CDS Services

Now you are ready to start the CDS services. Run the following command in the terminal:

sudo docker-compose up -d

This will start the CDS services in the background.

Step 4: Access the CDS Dashboard

Once the services are started, access the CDS dashboard by visiting the URL specified in the CDS_EXTERNAL_URL parameter in a web browser.

http://your_ip_address:port/

You will be prompt to log in, use the email admin@ovh.com and the password that you have set in the CDS_ADMIN_PASSWORD parameter.

Conclusion

In this tutorial, we have shown you how to install CDS on a Fedora server. If you have any problems or find any inaccuracies, please feel free to report it in Github Issues of the CDS repository.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!