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

lavabit/magma with docker #148

Open
Kalishadowops opened this issue May 20, 2021 · 8 comments
Open

lavabit/magma with docker #148

Kalishadowops opened this issue May 20, 2021 · 8 comments

Comments

@Kalishadowops
Copy link

I was able to get magma to run on centos 7 ... I still had some fixing to do with the mail client has not all functions are working properly, but my final goal was to get docker to run with magma, as I believe docker to be more efficient with resources ... but with docker, I couldn't get the lavabit/magma to run properly, I got Mysql. memcached and PHPMyAdmin to run smoothly but with magma, I couldn't get it to expand properly. I even try in interactive mode but I got error with make ...

If someone who succeed can show me or share with me dockerfile or docker-compose or even show me steps to follow, it be great ... few docker images on d.hub but very few if any guide. on lavabit/magma it show ;
docker run -d --name magma --privileged --link mysql:mysql --link memcache:memcache -e MYSQL_HOST=mysql -e MYSQL_USER=root -e MYSQL_PASSWORD=root -e MYSQL_SCHEMA=magma magma.

But no matter what dockerfile conf I tried, I always got an exit;139 or exit 0 error

Cheers,

Alan

@vinkvii
Copy link

vinkvii commented May 22, 2021

you can try https://github.com/ba0f3/docker-magma.
just don't build the image in docker-compose , use lavabit/magma as the the image and try.
let me know the results

@Kalishadowops
Copy link
Author

Thank you Vinkal,

I give it a try a let you know. I'll put a copy of my dockerfile when done. Cheer's.

@Kalishadowops
Copy link
Author

Kalishadowops commented May 28, 2021

hi Vinkal,
It took a bit longer than expected as I got really busy with work . I tried your method and rgot that problem:
"docker: Error response from daemon: Cannot link to /mysql, as it does not belong to the default network"
I use dock-compose for memcached, mysql, phpmyadmin and as you can see in the attached img they run stable , I dont specifu network in d.compose file, so I tought they go in docker default network and the same for magma. i use that docker image "rgv151/lavabit-magma" . I am not familiar wiith docker so I need to look for the command to find out on what network the sql is running or it could be just a path error , the msg show "/mysql" .

I attached a couple's of pic so you got an idea of where i am with this project. .
thanks a lot for your help and input,
Alan

DOCKERFILE
/////
ENV DOMAIN=localhost.siamorg.com BASE_DIR=/magma MYSQL_HOST=mysql MYSQL_USER=root MYSQL_PASSWORD=root MYSQL_SCHEMA=magma

VOLUME [ "/magma" ]

#RUN bash magma-build.sh

EXPOSE 25/tcp 465/tcp 110/tcp 995/tcp 143/tcp 995/tcp 10000/tcp 10500/tcp

//////
DOCKER-COMPOSE

version: "3.2"
services:
memcached:
image: memcached
environment:
- MEMCACHED_CACHE_SIZE=128
- MEMCACHED_MAX_CONNECTIONS=2000
container_name: memcache
mysql:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=magma
- MYSQL_PASSWORD=volcano
- MYSQL_DATABASE=magma
container_name: mysql

////////////////////

[Cheer's](docker_mysql_run
docker_magma
mysql_magma_db
docker_images

)

@Kalishadowops
Copy link
Author

hi Vinkal,,
I got alll the container to run , but now got the same problem that i had before running docker-compose for asll application. magma start but exit quickly with error 139 ..."Docker container exits with code 139"
i attach the image of the running container ....
for one thing magma doesn't show any ports .. but maybe because it stop ... I need to find if any log's
Cheer's
Alan

Uploading magma_139.png…

@Kalishadowops
Copy link
Author

also this the docker magma inspect .....

"WorkingDir": "",
"Entrypoint": [
"/scripts/entrypoint.sh"
I think the entrypoint is wrong .... shouldn't it be magma-build-sh ...?
magma_inspect.txt

@vinkvii
Copy link

vinkvii commented Jun 6, 2021

bit late response . though i had tried the docker-compose method but couldn't start it, was getting error. thought might be helpful for you. Glad you reached so far..

@Kalishadowops
Copy link
Author

Thank's Vinkal, I will pause docker for a while and get back to vmware, I think I got a better chance to get running model . or at least to be able to send and receive mail using magma .... even trying to build the image that you link I always got error the container build .. but it only run for a few second .
Were you able( under any setup) to send and receive email's using magma ...? or only the server running with Lavabit is working .. curious about this.
Cheer's

@vinkvii
Copy link

vinkvii commented Jun 15, 2021

@Kalishadowops never got up and worked for me. I did not get time to look into nto the same. But now i am looking for a mail server went for mailcow as it was easy to setup. Are you going to continue ?

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

No branches or pull requests

2 participants