docker-misp
docker-misp copied to clipboard
Putting SQL files inside docker #18
Hello
I would like to run MISP inside docker and push it to Amazon using Kubernetes.
However, this is using a VOLUME and the DB files are at the host.
How can i modify the file to have everything inside docker?
I tried to remove the VOLUME directive and then: RUN /init-db;
WORKDIR /etc/logrotate.d...
But i am failing to run the container.
Any idea what is happening?
Thanks
I have open a similar issues before. My question is how can i get rid of the external volume and map everything inside the docker container. What do i need to do on the initial Docerfile to achieve this?
Best regars and thank you
@BrunoMCBraga You have two options:
Option 1.) Build the container without using external volumes. What will happen is that without the:
-v $docker-root/misp-db
The container will simply keep/store the DB internally. The downside is it will "go away" whenever you kill your container. You could potentially launch a mysql DB AWS RDS/serverless or a container within kubernetes.
Option 2.) Is simply to utilize EBS of EFS (ideally). There are plenty of tutorials/how-tos on doing this. Here's one example: https://containerjournal.com/topics/container-networking/using-ebs-and-efs-as-persistent-volume-in-kubernetes/
Outside of this -- you will have to debug the container as some things will need to change depending on which option you choose.