Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Putting SQL files inside docker #18 #57

Open
BrunoMCBraga opened this issue Jul 3, 2020 · 2 comments
Open

Putting SQL files inside docker #18 #57

BrunoMCBraga opened this issue Jul 3, 2020 · 2 comments

Comments

@BrunoMCBraga
Copy link

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

@BrunoMCBraga
Copy link
Author

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

@ventz
Copy link
Collaborator

ventz commented Jul 10, 2020

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants