All you need for build and run this application to have is Podman or Docker installed on your computer. All necessary libraries, tools will be installed in your OCI containers on their own way.
- Clone
git
repository or download thejava-container
repository.
git clone [email protected]:reftch/java-container.git
- Change current directory:
cd java-container
- Init project environment and build container image for development.
make init
This step might take some seconds, because it creates an OCI container image and installs all necessary Maven dependencies.
- Start application in development container (located in the app/ dir):
make dev spring-boot:run
You can freely change the application's code, it will rebuilt immediately, because container has project's directories like mounted volume. This lets the container read & write to the current directory on our computer.
- Stop development container:
make stop
or just push Ctrl-C