[JAVA] Up to the point of launching a Docker container built using RedHat Quarkus

Red Hat released the framework "Quarkus" that realizes Java applications optimized for container environments such as Kubernetes on March 7, 2019.

Let's go to the point where we can actually start the Docker container using this framework. I'll omit the cluttered explanations and just show the commands.

macos setup

Install what you need, such as Java or Maven, with brew.

brew cask install java
brew install maven

Clone the Quarkus repository


git clone https://github.com/quarkusio/quarkus-quickstarts.git

Launch locally

cd quarkus-quickstarts/getting-started
mvn compile quarkus:dev

Connect with curl and check if the application is running

curl http://localhost:8080/hello

Build docker image


mvn package -Pnative -Dnative-image.docker-build=true
docker build -f src/main/docker/Dockerfile -t quarkus/getting-started .

Launch container from docker image

docker run -i --rm -p 8080:8080 quarkus/getting-started

Connect with curl and check if the application is running

curl http://localhost:8080/hello

Recommended Posts

Up to the point of launching a Docker container built using RedHat Quarkus
[Docker] How to see the contents of Volumes. Start a container with root privileges.
The story of pushing a Docker container to GitHub Package Registry and Docker Hub with GitHub Actions
[Docker] Operation up to container creation # 2
Set up a Wordpress Docker environment without using the Worpdress image
It's almost the end of the year, so it's a story of cleaning up to use Docker comfortably at the beginning of the year
[Java] How to get to the front of a specific string using the String class
Volume of optimizing Hyper-v to eliminate the tightness of disk capacity (engineer using Docker)
Send a notification to slack with the free version of sentry (using lambda)
A quick note on using jshell with the official Docker image of the JDK
A memorandum to clean up the code Ruby
Make a margin to the left of the TextField
How to get a heapdump from a Docker container
Set the time of LocalDateTime to a specific time
Build a Kotlin app using OpenJDK's Docker container
Change the timezone of the https-portal container to JST
I made a Docker container to run Maven
Change the location folder of Docker image & container
Push the image to docker hub using Jib
How to build a Jenkins server with a Docker container on CentOS 7 of VirtualBox and access the Jenkins server from a local PC
Use the --build-arg option of docker-compose to pass environment variables to the container built with Dockerfile
[Docker] How to update using a container on Heroku and how to deal with Migrate Error
I tried to summarize the state transition of docker
I built an environment to execute unit tests using Oracle database (oracle12c) on the Docker in Docker (dind) image of GitLab-CI.
Create a Docker container to convert EPS to PGF source
Run the Android emulator on Docker using Android Emulator Container Scripts
Try to build a Java development environment using Docker
The first step to using Xib instead of StoryBoard
Command to try using Docker for the time being
A survey of the Kubernetes native Java framework Quarkus
The story of migrating a stray batch without an owner from EC2 to a Docker environment
Solution for the error "no basic auth credentials" when pushing a Docker container to Heroku
Wait for the container service to start with docker healthcheck
Nginx container that displays the Hostname of the host running Docker
Get only the ID of the container specified by docker ps
Try launching a webAP server on the micro using Helidon
[Docker] Delete only the volume associated with a specific container
[Ruby] How to retrieve the contents of a double hash
I tried to build the environment little by little using docker
I tried to build the environment of WSL2 + Docker + VSCode
Try Hello World using plain Java on a Docker container
The story of pushing Java to Heroku using the BitBucket pipeline
About the default behavior of decimal point rounding using java.text.NumberFormat
I want to narrow down the display of docker ps
[jsoup] How to get the full amount of a document
[Apache Tomcat] The story of using Apache OpenWebBeans to enable CDI
[Docker] How to access the host from inside the container. http://host.docker.internal:
[Docker] How to back up and restore the DB data of Rails application on docker-compose [MySQL]
Know the convenience of Docker (-compose) now (information list that I referred to when using it)
[Introduction] Setting up GridDB Community Edition in the CentOS container of Docker Desktop for the first time
Let's create a Docker container that can connect to CentOS 8 with the minimum configuration by SSH