javaLS is a simple Java application that prints the message "Hello World from Java, Lesly Salas SI08!" to the console. This project is dockerized to make it easy to deploy and run in any environment.
The basic structure of the project is as follows:
javaLS/
│
├── HelloWorld.java # Main Java application code.
├── Dockerfile # Dockerfile to build the container image.
└── README.md # Project documentation.
To run this project locally or inside a Docker container, you need to have the following:
- Java 8 or higher
- Docker (if you want to run in a container)
- Git (to clone the repository)
Clone the repository using Git:
git clone https://github.com/lessalcu/javaLS.git
cd javaLS
2. Compile and Run the Program
Compile and run the Java program:
bash
javac HelloWorld.java
java HelloWorld
You should see the message "Hello World from Java, Lesly Salas SI08!" in the console.docker pull lssalas/javals:latestdocker run lssalas/javals:latestThis will start the container with the Java program, and you should see the message in the console.
Make sure Docker is running. If you have problems running the container, check that Docker is correctly installed and configured on your system.
Project developed by Lesly Salas (https://github.com/lessalcu).