Closed jmcgrath207 closed 3 years ago
Hello @jmcgrath207
Yes I am aware that gotty doesn't work with Docker. I tried to fix it but couldn't make it work (I wasn't aware of this network_mode: host
option). If you managed to fix it, you're welcome to submit a PR :)
You can also change the folder structure if you want.
Thanks !
docker support was removed so this is no longer relevant
Hi afourmy,
I have been running the git checkout V3.6 in Docker, and I found some issues with gotty not working correctly and also have some possible improvements for docker folder structure in the repo.
I am willing to submit a pull request with the changes, after you get a chance to review this.
docker changes for gotty
The first issue is with the DockerFile itself. I had to add the following commands:
sshpass is not on the container and is needed for gotty to run along with the permission change to itself.
The next issue I had was that gotty dynamically generates ports from TCP 9000 and up.
Unfortunately, Docker can't do this without using the host’s networking directly. Here is a example what I had to do.
With these we can connect with gotty once we do a manual connection to accept the rsa key.
The last change for this would be adding the docker container to the
.travis.yml
for testing.optional new folder structure
I also wanted to change the layout of by keeping all the docker stuff in one folder. Similar to this picture
In this case I changed the container
enms
towebapp
because in the .env file I added this lineCOMPOSE_PROJECT_NAME=enms
so the names would look likeenms_webapp_1',
enms_db_1`, etc. when you do a docker ps.Finally, I also created a dev and prod compose file. The only different is dev compose file with the different being we mount the enms libary into the site packages directly so live edits can be preformed and has vim installed
example: