DEV Community

Discussion on: How to put your Java application into Docker container

 
rasharm_ profile image
Raman Sharma

Awesome. Thanks a lot.

I was just trying to get a containerized Java app running on DigitalOcean App Platform. Here it is:

GitHub logo creativefisher / Nasa-Picture

Single-page application which display NASA's Astronomy Picture of the Day

Deploy to DigitalOcean

This sample demonstrates how to run a Dockerized Java application on DigitalOcean App Platform. Since App Platform doesn't yet support Java, this sample shows how to accomplish this using Dockerfile.

This sample has been adapted from github.com/wkrzywiec/Nasa-Picture

Getting Started

These steps will get this sample application running for you using DigitalOcean.

Note: Following these steps will result in charges for the use of DigitalOcean services

Requirements

Forking the Sample App Source Code

To use all the features of App Platform, you need to be running against your own copy of this application. To make a copy, click the Fork button above and follow the on-screen instructions. In this case, you'll be forking this repo as a starting point for your own app (see Github documentation to learn more about forking repos.

After forking…

Thread Thread
 
rasharm_ profile image
Raman Sharma

And here is the deployed app: nasa-picture-2-bdhmn.ondigitalocea...

Thread Thread
 
wkrzywiec profile image
Wojtek Krzywiec

Great! 🙂 Again thanks for pointing this out in the post.

And also I'm really impressed that you have adapted this project to deploy it on Digital Ocean