Sunday, September 13, 2020

Error in Starting Jenkins Service - DevOps

While undergoing Training course on "DevOps Foundations: Continuous Delivery/Continuous Integration" through "Linkedin Learning", i got the below doubt.

I am having issue in starting Jenkins service and test fixture. 

Please help me to solve this problem (Message me on Linkedin if you have solution):

Error screenshot is mentioned below:



Steps to replicate the Error:

1. Desktop Path:
/a/DevOps/Ex_Files_DevOps_Continuous_Delivery_Integration/Exercise Files/Course Environments

2. Docker Command:
$ docker-compose up -d --build

3. Press Enter
Building jenkins
Step 1/8 : FROM jenkins:latest
 ---> cd14cecfdb3a
Step 2/8 : MAINTAINER Ernest Mueller <ernestmueller@theagileadmin.com>
 ---> Using cache
 ---> 1317d7c8dfbf
Step 3/8 : USER root
 ---> Using cache
 ---> 1da2689d4cf2
Step 4/8 : RUN     apt-get update &&     apt-get install -y build-essential &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> c3cf65c20337
Step 5/8 : COPY docker /usr/bin/docker
 ---> Using cache
 ---> 14227a0ef002
Step 6/8 : RUN gpasswd -a jenkins staff
 ---> Using cache
 ---> b4dd3651f510
Step 7/8 : USER jenkins
 ---> Using cache
 ---> 0670a9760139
Step 8/8 : ENTRYPOINT ["/bin/tini", "--", "/usr/local/bin/jenkins.sh"]
 ---> Using cache
 ---> 2fc81a7e74bf
Successfully built 2fc81a7e74bf
Successfully tagged cd_jenkins:latest
Building test_fixture
Step 1/16 : FROM ubuntu:16.04
 ---> 4b22027ede29
Step 2/16 : MAINTAINER Ernest Mueller <ernestmueller@theagileadmin.com>
 ---> Using cache
 ---> f05ea0b1ea99
Step 3/16 : RUN apt-get update && apt-get install -y openssh-server curl jq vim
 ---> Using cache
 ---> 84c5190c3619
Step 4/16 : RUN mkdir /var/run/sshd
 ---> Using cache
 ---> 2c8ce2c83375
Step 5/16 : RUN echo 'root:theagileadmin' | chpasswd
 ---> Using cache
 ---> 5ec95fda248e
Step 6/16 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
 ---> Using cache
 ---> 4d43f68faf23
Step 7/16 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
 ---> Using cache
 ---> a300714bcfa5
Step 8/16 : ENV NOTVISIBLE "in users profile"
 ---> Using cache
 ---> e2994b48d1d1
Step 9/16 : RUN echo "export VISIBLE=now" >> /etc/profile
 ---> Using cache
 ---> 1533725c83db
Step 10/16 : RUN curl -L https://www.opscode.com/chef/install.sh | bash
 ---> Using cache
 ---> d91d92814adc
Step 11/16 : RUN wget https://packages.chef.io/files/stable/chefdk/1.5.0/ubuntu/16.04/chefdk_1.5.0-1_amd64.deb
 ---> Using cache
 ---> aa5b98e2f3c1
Step 12/16 : RUN dpkg -i chefdk_1.5.0-1_amd64.deb
 ---> Using cache
 ---> a3bf53026e4e
Step 13/16 : VOLUME        ["/chef-repo"]
 ---> Using cache
 ---> e478b6a56198
Step 14/16 : EXPOSE 22
 ---> Using cache
 ---> 2f917a84db9e
Step 15/16 : EXPOSE 8888
 ---> Using cache
 ---> 31b84a8588c6
Step 16/16 : CMD ["/usr/sbin/sshd", "-D"]
 ---> Using cache
 ---> ad7c951c921c
Successfully built ad7c951c921c
Successfully tagged test_fixture:latest
Building abao
Step 1/10 : FROM node:alpine
 ---> 0e0d8a11f565
Step 2/10 : MAINTAINER Ernest Mueller <ernestmueller@theagileadmin.com>
 ---> Using cache
 ---> 571cd3b0a5d5
Step 3/10 : RUN apk update && apk add yaml
 ---> Using cache
 ---> 38928796345a
Step 4/10 : RUN npm install -g abao
 ---> Using cache
 ---> 2e86f66f46f7
Step 5/10 : RUN npm install --save-dev chai
 ---> Using cache
 ---> 60eabe55be06
Step 6/10 : RUN mkdir -p /raml
 ---> Using cache
 ---> 9c708212cf63
Step 7/10 : VOLUME /raml
 ---> Using cache
 ---> b9df144ad4a0
Step 8/10 : WORKDIR /raml
 ---> Using cache
 ---> 63bfbc1f2424
Step 9/10 : ENTRYPOINT ["abao"]
 ---> Using cache
 ---> 69442b7e2f4d
Step 10/10 : CMD ["--help"]
 ---> Using cache
 ---> 932d2a96e3ef
Successfully built 932d2a96e3ef
Successfully tagged abao:latest
Starting courseenvironments_nexus_1 ...
Starting courseenvironments_test_fixture_1 ... error
Starting courseenvironments_abao_1         ...

Starting courseenvironments_nexus_1        ... done
ectivity on endpoint courseenvironments_test_fixture_1 (9232233db62902a65f3b25bf66d861f28aa8ba1d8c751fd33ee650a2a1e0b6efStarting courseenvironments_abao_1         ... done
Starting courseenvironments_jenkins_1      ... error

ERROR: for courseenvironments_jenkins_1  Cannot start service jenkins: error while mounting volume '/mnt/sda1/var/lib/docker/volumes/courseenvironments_ramlfiles/_data': failed to mount local volume: mount A:/DevOps/Ex_Files_DevOps_Continuous_Delivery_Integration/Exercise Files/Course Environments/raml-files:/mnt/sda1/var/lib/docker/volumes/courseenvironments_ramlfiles/_data, flags: 0x1000: no such file or directory

ERROR: for test_fixture  Cannot start service test_fixture: driver failed programming external connectivity on endpoint courseenvironments_test_fixture_1 (9232233db62902a65f3b25bf66d861f28aa8ba1d8c751fd33ee650a2a1e0b6ef): Error starting userland proxy: listen tcp 0.0.0.0:22: bind: address already in use

ERROR: for jenkins  Cannot start service jenkins: error while mounting volume '/mnt/sda1/var/lib/docker/volumes/courseenvironments_ramlfiles/_data': failed to mount local volume: mount A:/DevOps/Ex_Files_DevOps_Continuous_Delivery_Integration/Exercise Files/Course Environments/raml-files:/mnt/sda1/var/lib/docker/volumes/courseenvironments_ramlfiles/_data, flags: 0x1000: no such file or directory
ERROR: Encountered errors while bringing up the project.

Friday, August 28, 2020

Azure DevOps

 What is Azure DevOps Server?

Azure DevOps Server is a Microsoft product that provides version control, reporting, requirements management, project management, automated builds, testing and release management capabilities. It covers the entire application life-cycle, and enables DevOps capabilities.

Developers can work in the cloud using Azure DevOps Services or on-premises using Azure DevOps Server. Azure DevOps Server was formerly named Visual Studio Team Foundation Server (TFS).

Azure DevOps is a Software as a service (SaaS) platform from Microsoft that provides an end-to-end DevOps tool-chain for developing and deploying software.  It also integrates with most leading tools on the market and is a great option for orchestrating a DevOps toolchain.


Benefits of Azure DevOps:

Azure DevOps provides DevOps teams with powerful tools.

  • Flexibility: If your DevOps team doesn’t want or need the full suite of services, they can customize them independently.
  • Timely Access to New Features: Every three weeks, DevOps users receive access to new features. No need to scramble around and wonder what’s new. These are not to be confused with upgrades
  • No Upgrades to Worry About: Users need not worry about upgrading or patching up the tool-chain because the Azure DevOps is a SaaS product. Companies that run on a CI/CD model no longer need to slow things down for the sake of upgrading.
  • Reliability: Azure DevOps is backed by 24 x7 support and a 99.9% SLA.
  • It’s Platform-agnostic: DevOps is designed to run on any platform (Linux, macOS, and Windows) or language (e.g., Android, C/C++, Node.js, Python, Java, PHP, Ruby, .Net, and iOS apps).
  • It’s Cloud-agnostic: Azure DevOps works with AWS and GCP.


What Are the Features of Azure DevOps?

  • Improved Source Control: Azure DevOps systems support two popular types of source control: Git (distributed) or Team Foundation Version Control (TFVC), which is a centralized, client-server system. You can add and manage Azure Git tags, review, download, and edit files to see change history.
  • Continuous Integration and Deployment (CI/CD): Many developers employ the practice of CI/CD, and Azure DevOps supports them. By using Azure pipelines, developers can automate many of the design processes, including defining builds and their steps, creating test instructions, and manage simultaneous releases.
  • Support for Manual and Exploratory Testing: Azure DevOps’ test features facilitate manual, exploratory, and continuous testing, including workflow customization, end-to-end traceability, criteria-based selection, and real-time charts that track test activity.
  • Azure Cloud-hosted Services: Azure provides DevOps teams with cloud-hosted services that support application development and deployment. These services can be used by themselves or in combination with Azure DevOps.
  • Plan and Track Your Work: Azure DevOps systems provide you with a couple of types of work items used to monitor features, requirements, user stories, tasks, bugs, and more. For planning purposes, you can access several kinds of backlogs and boards to support the main agile methods: Scrum, Scrumban, or Kanban. You can add and update relevant work items, manage product backlog, use sprint backlogs to plan sprints, and use Kanban boards to visualize the workflow and update statuses.
  • Dashboard Control: Using the DevOps dashboard feature, you can quickly navigate to different areas of the project, add and manage dashboards, and configure dashboard widgets. 
  • Azure Artifacts: Azure Artifacts allows teams to share Maven, npm, and NuGet packages from public and private sources and integrate package sharing into your CI/CD pipelines.

Featured Posts