I'm really trying to achieve something with Docker, but I'm stuck, there is my problem.
I have my container hosted on EC2 with my web application inside it. My webapp uses the JCR repository as a database, which is basically a file stored wherever you want. Therefore, every time my web application is launched, if the repository does not exist, it creates it, otherwise it uses the existing one.
My current docker file looks like this: https://gist.github.com/agonist/7cab7358379e9dd6e812 ./chameleon.sh start just starting my webapp. In this application, I configured where the repository file is located.
Now I have created an EBS volume, mounted and mounted in my EC2 instance. This volume will focus on repository storage. Therefore, in my application, I configure my repository path to /mnt/repository/ , where the repository is the directory that will contain my repository file created by my web application. But I donβt know how to mount this volume in my container before ./chameleon.sh start in Dockefile. As I see during my research
docker run -v /mnt/repository:/mnt/repository aws_beanstalk/current-app
is not a Dockefile executable.
I also found material about a data-only container that shares volumes with another container, but still the same problem if I need to run
sudo docker run -d --volumes-from dbdata
after starting my container
docker amazon-web-services amazon-ec2 modeshape
agonist_
source share