You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Add the dependencies and code you'd like to test
8
+
- If you're testing a simple project, you can edit the `DockerTest.java` file directly. Everything's set up to pull in the lastest version of the `ibm-watson` package and run that file when building the image.
9
+
- If you'd like to use your own files, feel free to add them. Just be sure to edit the execution line in the Dockerfile to run your main class:
10
+
11
+
```
12
+
RUN mvn -e exec:java -Dexec.mainClass="com.ibm.<MAIN_CLASS>"
13
+
```
14
+
If you import a project with a different group ID, you'll need to change that in the provided `pom.xml` as well.
15
+
16
+
- For more information on dockerfile construction please visit <https://docs.docker.com/engine/reference/builder/>
17
+
3. Build the Docker image
18
+
- From the directory with the Dockerfile, run `docker build --tag=<your-tag> .`
19
+
- You should be able to verify that everything worked properly based on the output!
0 commit comments