I am a new engineer. Since my company is developing using Java, I decided to build a Java development environment as a practice. Java is Owakon, isn't it? ?? You can hear the voice, but it's a standard framework of the company, 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.
| role | Tool name |
|---|---|
| OS | WSL2 |
| Editor | VScode |
| Java | OpenJDK 8 |
| Framework | Spring Boot |
| Build | Maven |
| test | JUnit |
| CI | Jenkins |
| container | Docker |
| Container management tool | Kubernetes |
This time we will build a Jenkins container for CI.
As a caveat, use jenkins / jenkins: lts as the Docker image.
jenkins: latest fails to download the plugin. (As of 09/06/2020)
WSL2
$ sudo docker run -p 8080:8080 -p 5000:5000 -v ~/jenkins:/var/jenkins_home jenkins/jenkins:lts
(Omission)
*************************************************************
*************************************************************
*************************************************************
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 first boot]
This may also be found at: /var/jenkins_home/secrets/initialAdminPassword
*************************************************************
*************************************************************
*************************************************************
Now that the container has started, let's access http: \\ localhost: 8080 with a browser.
--Initial registration screen [Enter console password]

--Installation of Plugin (Install the recommended one for the time being)

--Plugin installation screen

User registration is now complete. The next task is to create a job and link with Git, but please wait until the article is created.