averkij / a-studio

Lingtrain Alignment Studio is an ML based app for texts alignment on different languages. It can produce parallel corpora and parallel books.
Other
243 stars 17 forks source link

Document how to run on Linux #7

Closed monmima closed 2 years ago

monmima commented 2 years ago

Thanks for creating this project. It seems amazing.

OK. So I read an article by you here: https://habr.com/en/post/590549/.

In it, you write:

The app is packed into the docker container. It's a simple technology to deploy your stuff anywhere from the server to your local machine. It's available across all the operating systems.

If I read between the lines, I guess this means the app could work under Linux as well, but your README.md file only gives this command/path, which is for Windows:

docker run -v C:\app\data:/app/data -v C:\app\img:/app/static/img -p 80:80 lingtrain/aligner:v4

So what would the correct command be here for Linux?

averkij commented 2 years ago

Hello,

Indeed docker is available across other platforms besides Windows. To mount the Linux directory just change the C:\app... to yours. For example, to /tmp/app/data and /tmp/app/img. Make sure that these directories exist before you start the container.

monmima commented 2 years ago

Thanks for your quick reply. :+1:

The app seems to work now. Here is what I did under Linux Mint to run the app.

===

  1. Open a Terminal window.
  2. Install docker with this command:

    sudo apt install docker.io

  3. Install Lingtrain Alignment Studio using the following command. I had to add sudo since I was running into permission issues.

    sudo docker pull lingtrain/aligner:v6

  4. Go to the tmp/ folder at the very root of the system and create a test/ folder inside to basically create this path tmp/test/.
  5. Run the app with this other command:

    sudo docker run -v /tmp/test -v /tmp/test -p 80:80 lingtrain/aligner:v6

  6. Open a browser and type this in the address bar.

    localhost

===

I haven't tested Lingtrain so far but it really seems promising.