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

Unclear doc: Uploading an extension to pootle #7

Open
boite opened this issue Aug 21, 2017 · 2 comments
Open

Unclear doc: Uploading an extension to pootle #7

boite opened this issue Aug 21, 2017 · 2 comments

Comments

@boite
Copy link
Contributor

boite commented Aug 21, 2017

I'm having difficulty understanding how to get files to be maintained by the pootle server. The README gives two options, the first being:-

In order to get the files there you can either add a SFTP container that has access to a specific repo folder e.g.

sftp:
  image: atmoz/sftp
  volumes:
    - /host/share:/home/foo/share
  ports:
    - "2222:22"
  command: foo:123:1001

I tried adding something like the example to docker-compose.yml:-

version: '2'

services: 
  ...
  sftp:
    image: atmoz/sftp
    volumes:
      - /path/to/my.repo:/srv/pootle/git-clones/repos/my.repo
    ports:
      - "2222:22"
    command: repowner:123:1001

volumes:
  mysql-data:
  l10n-ter:
  pootle-po:
  pootle-git:

but this doesn't get the files into pootle:-

$ docker-compose exec pootle bash -c "ls -al /srv/pootle/git-clones"
total 8
drwxr-xr-x 2 root root 4096 Aug 18 14:53 .
drwxr-xr-x 4 root root 4096 Aug 21 11:39 ..
$

What am I missing?

@htuscher
Copy link
Contributor

Regarding the docker-compose.yml if you would like to push a repo to your pootle instance via SFTP you would do e.g. this:

services:
pootle:
    image: 1drop/pootle:pootle
    volumes:
      - /path/to/my.repo:/srv/pootle/git-clones/my.repo
      - /path/to/another.repo:/srv/pootle/git-clones/another.repo
  sftp:
    image: atmoz/sftp
    command: foo:pass:1001
    volumes:
      - /path/to/my.repo:/home/foo/upload
  sftpanother:
    image: atmoz/sftp
    command: foo:pass:1001
    volumes:
      - /path/to/another.repo:/home/foo/upload

@boite
Copy link
Contributor Author

boite commented Aug 22, 2017

Thank you @hhoechtl that works. I'll make a PR to add this to the docs, but first a question: why does your example have pootle.image: 1drop/pootle:pootle? is this an example of extending docker-compose.yml (e.g. docker-composer.override.yml)?

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