Category: Q & A

Q & A

how to write jenkins pipline to deploy spring boot service on docker 0

how to write jenkins pipline to deploy spring boot service on docker

pipeline{ agent any environment { SERVICE = ‘asset-personnel-service’ } stages{ stage(“Clone”){ steps{ echo “Cloning $SERVICE …” git branch: ‘${BRANCH_NAME}’, credentialsId: ‘1’, url: “https://git-codecommit.us-east-2.amazonaws.com/v1/repos/$SERVICE” } } stage(“Build”){ steps{ dir(‘asset-personnel-service/’) { echo “Building $SERVICE …” sh...

Setting Up Swagger 2 with a Spring REST API Using Springfox 0

Setting Up Swagger 2 with a Spring REST API

Setting Up Swagger 2 with a Spring REST API Spring Boot – Creating Docker Image     In this tutorial, we’ll look at Swagger 2 for a Spring REST web service, using the Springfox implementation...

how to install node js using tar file 0

Steps to download and install node in ubuntu

Steps to download and install node in ubuntu Step 1: Download latest or recommended node .tar.xz file from https://nodejs.org/en/ Steps to download and install node in ubuntu Step 1: Download latest or recommended node .tar.xz file from https://nodejs.org/en/ or you...

Dockerizing a Spring Boot Application 0

Dockerizing a Spring Boot Application

Dockerizing a Spring Boot Application make Dockerfile in the root folder and add the following line FROM openjdk:8-jdk-alpine ADD /build/libs/asset-management-service.jar asset-management-service.jar ENTRYPOINT [“java”,”-jar”,”/asset-management-service.jar”] EXPOSE 9195 save file with the name of Dockerfile. Type the...

Gradle building rest spring app can't find main class 0

Gradle building rest spring app can’t find main class

I kept getting the follow error message. how to fix it. FAILURE: Build failed with an exception. What went wrong: Execution failed for task ‘:findMainClass‘. > org.gradle.api.tasks.SourceSetOutput.getClassesDir()Ljava/io/File; plugins { id ‘java’ id ‘idea’ id...

jenkins installation on linux 0

jenkins installation on linux

Installing Jenkins The version of Jenkins included with the default Ubuntu packages is often behind the latest available version from the project itself.   Debian/Ubuntu curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee \   /usr/share/keyrings/jenkins-keyring.asc >...

Remove term: Feign makes writing java http clients easier Feign makes writing java http clients 0

Declarative REST Client: Feign

In this tutorial, we’ll introduce Feign — a declarative HTTP client developed by Netflix. Feign aims at simplifying HTTP API clients. Simply put, the developer needs only to declare and annotate an interface while the actual...