Closed lgartrell closed 4 years ago
An epic change needs epic description. Describe in detail please. You can augment with links that describe the functionality.
Talked with Joel, learned that we deploy a single .jar file to AWS. No longer need to build to run all of our dependencies, should be just to build to run our .jar file. More learning needs to be done on what that entails, but I found an article here that looks like exactly what we need. Will be following it and sending a new comment with the result
got the image I think is sufficient, but ran into my first roadblock which is managing two different "local hosts". My container is crashing because it cannot connect to the mysql instance on my computer, running on localhost. My actual localhost is different from my container's localhost, but I think I found a work around which is changing the IP table and mapping docker to something, but I need more digging into it.
This would not be a problem when we are actually deployed, but for local testing it is! More updates coming
Requirements
Brief Overview
This task relates to the first part of our deployment strategy, which is containerizing our application. For this to work,
essentially all the work that needs to be done is to set up the back-end environment in a dockerfile, very similar to what we have already been working on (which was just getting set up on our workspaces).With new learning, comes new understanding. After understanding our deployment, we bundle the backend into a .jar file. So, the work is to figure out how to run the .jar in a container, rather than to build it.
Possible Plan
Create dependency list regarding to the back-end environmentResearch docker images relating to the tools we useDocker base image for open jdk 8Further Learning
General docker documentation: https://docs.docker.com/ Dockerfile documentation: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/