fullctl / ixctl

Apache License 2.0
2 stars 4 forks source link

WIP: Add dockerfile and docker compose #28

Closed egfrank closed 3 years ago

egfrank commented 3 years ago

Hi @vegu so here's the basic setup to get this Dockerized. I'd be helpful if you can test getting this set up to see if it's working for your environment.

A few things:

Now that we're on Postgres, you'll have to create a Database called "ixctl", a user called "ixctl" and then grant that user access to "ixctl". Let me know if you want to change those names or handle that differently. Also I added postgres to the pipfile so you will probably have to relock outside of the docker container and then run

docker-compose build docker-compose up

It also seemed like some of the jquery files weren't working for me but I couldn't really tell if that was an issue with the Dockerized version or if that was just an issue existing from before. Let me know if you're able to spin up the Docker version but are seeing differences between the UI of the dockerize version and the non-dockerized version.

vegu commented 3 years ago

Hi @vegu so here's the basic setup to get this Dockerized. I'd be helpful if you can test getting this set up to see if it's working for your environment.

@egfrank i get the following when i try to run up

[dev@mail ixctl]$ docker-compose up
Creating network "ixctl_default" with the default driver
Creating ixctl_postgres_1 ... error
Creating ixctl_postgres_1 ... 

ERROR: for ixctl_postgres_1  Cannot start service postgres: driver failed programming external connectivity on endpoint ixctl_postgres_1 (3bca59cbd492bb274c3e7460632ccb49300e3cf365Creating ixctl_django_1   ... done

ERROR: for postgres  Cannot start service postgres: driver failed programming external connectivity on endpoint ixctl_postgres_1 (3bca59cbd492bb274c3e7460632ccb49300e3cf3656fb7c63482570d292a119f): Bind for 0.0.0.0:15432 failed: port is already allocated

Now that we're on Postgres, you'll have to create a Database called "ixctl", a user called "ixctl" and then grant that user access to "ixctl". Let me know if you want to change those names or handle that differently.

That's fine i think

It also seemed like some of the jquery files weren't working for me but I couldn't really tell if that was an issue with the Dockerized version or if that was just an issue existing from before. Let me know if you're able to spin up the Docker version but are seeing differences between the UI of the dockerize version and the non-dockerized version.

Which jquery files ? autocomplete-light is behaving weirdly for me on my other branch as well