[Java] Create a Java development environment (updating)

1 minute read

Introduction

I am a new engineer. Since my company develops using Java, I decided to build a Java development environment as a practice. Java is Owakon? ? It sounds like I can hear it, but it’s a company’s standard framework, so it can’t be helped.

We will update it steadily, so I hope you will keep an eye on it in the long run.

Environment

Role Tool name
OS WSL2
Editor VScode
Java OpenJDK 8
Framework Spring Boot
Build Maven
Test JUnit
CI Jenkins
Container Docker
Container Management Tools Kubernetes

Make a Jenkins container

This time we will build a Jenkins container for the CI. As a caveat, use jenkins/jenkins:lts as the Docker image. jenkins: latest fails to download the plugin. (As of 2020/09/06)

WSL2


$ sudo docker run -p 8080:8080 -p 5000:5000 -v ~/jenkins:/var/jenkins_home jenkins/jenkins:lts

(Omitted)

************************************************** ***********
************************************************** ***********
************************************************** ***********

Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:

Your_Password [required for initial startup]

This may also be found at: /var/jenkins_home/secrets/initialAdminPassword

************************************************** ***********
************************************************** ***********
************************************************** ***********

Since the container has started, let’s access http:\\localhost:8080 with a browser.

  • Initial registration screen [Enter the console password]

jenkins-1-700x383.png

  • Install Plugin (install recommended version for now)

getting-started-setup.png

  • -Plugin installation screen

jenkins-install-suggested-plugin.png

User registration is now complete. The next work involves creating a job and linking with Git, but please wait until the article is created.