Promotional Video : https://youtu.be/jYQkS1x5KNE
Version 3.0 Submitter: Lawrence Rosen SPDX short identifier: AFL-3.0
- Open CMD and navigate to the project folder named "clidocker" where the
pom.xmlis located. - Compile the program with the command
mvn compile - Build the program's jar with the command
mvn clean install. - Run the program with the command
java -jar clidocker-1.0-SNAPSHOT-shaded.jaron CMD (move to the target folder first). - It is necessary to have Apache Maven and JDK installed on your computer.
- Your SQL driver must be configured for windows authentication and intergrated security
- When you run the command
java -jar clidocker-1.0-SNAPSHOT-shaded.jar, a menu will appear where you have the ability to choose an option. - Prioritize collecting Docker statistics before considering the sixth option as your initial choice.
- For the sixth option, it's necessary to provide the date of a metric you've collected. You can find this metric by running the command
SELECT FROMin SSMS. - If the date is valid, a server will open on port 8080. The server will stay open for 20000 milliseconds.
- By searching on a browser
http://localhost:8080/data, three numbers will be shown to you. The first number represents the serial number of the metric recorded on this date. The second number indicates the count of Docker containers that were running on this date. The third number represents the count of Docker containers that were stopped on this date.
Important: You should have Microsoft SQL Server and SSMS installed.
- After you clone the repository on your computer, open the SSMS and connect to the server.
- On the left, you will see a folder named "Databases". Right-click on it.
- Choose the option "Import Data-tier application".
- On the "Introduction" field, press next (bottom right).
- Select 'Import from local disk' and include the path of the BACPAC file, which is located in
GitRepo\clidocker\src\main\resources. - On "New database name", change it to "demo1", not "demo".
- Once you've done the above, press 'Next' and then 'Finish'. Upon completion, the database should have been created successfully.
- This app uses the external library "docker-java" for connection with the Docker daemon and performing actions about Docker containers.
- Threads have been created for starting or stopping execution, gathering statistics, and managing DB connection.
- We also created a simple REST API for connection with the database and get the serial number of the metric.
- Maven build tool has been used for compilation and creation of the final jar file.
- Checkstyle helped us with our errors, performance, and appearance of our app.
- We created J-Unit tests for testing our methods that they work properly.
- Open CMD and navigate to the project folder named "guidocker", where the
pom.xmlis located. - Compile the program with the command
mvn compile - Bild the program's jar with the command
mvn clean install shade:shade. - Run the program with a double click on the jar file named
guidocker-1.0-SNAPSHOT.jar(inside the target folder) or - Run the program via CMD, with the command
java -jar guidocker-1.0-SNAPSHOT.jar(move to the target folder first). - As before, it's is necessary to have Apache Maven and JDK installed on your computer.
- When the jar file opens, the name of the app and a button will appear. Press start.
- A menu will appear with several options regarding Docker engines and containers.
- Select one, and based on your choice, the app will enable you to start or stop a Docker container or view the running containers.
- In this app has been incorporated a REST API that we created
- This REST API connects with the localhoat on port 2375. The local docker daemon. In that way we have access to all of our containers and images
- Maven build tool has been used for compilation and creation of the final jar file.
- Checkstyle helped us with our errors, performance, and appearance of our app.
- We created J-Unit tests for testing our methods that they work properly.

