Sign inSign up

plitex/sinopia-ldap-docker

By plitex

•Updated about 11 years ago

Image
0

1.1K

plitex/sinopia-ldap-docker repository overview

⁠Sinopia (Docker Image)

Sinopia⁠ is a private npm repository server.

This repo uses master⁠ branch with a minor modification to lib/index.js which allows a trust proxy for an nginx container. The maintained repo can be found here⁠

Using with iojs v1.7.1 - let me know if there's any issues with this version. The storage path is also changed in the config.yaml⁠ to handle the edge case where htpasswd is installed via npm.

⁠Options
  • To run default container on port 4873

docker run --name sinopia-ldap -d -p 4873:4873 plitex/sinopia-ldap-docker

  • to sync storage

docker run --name sinopia-ldap -d -p 4873:4873 -v <local-path-to-storage>:/sinopia/storage plitex/sinopia-ldap-docker

  • To attach a custom config.yaml⁠

    docker run -v :/sinopia/config.yaml
    -d -p 4873:4873 plitex/sinopia-ldap-docker`

  • To modify config.yaml, update local config then restart

docker restart sinopia-ldap

⁠Building Custom Containers
  • From github repository
git clone https://github.com/plitex/sinopia-ldap-docker.git
cd sinopia-ldap-docker
docker build -t sinopia-ldap .
docker run -d -p 4873:4873 sinopia-ldap
  • Nginx support

Use nginx-proxy⁠ or jwilder/nginx-proxy⁠

After running the nginx-proxy, run the sinopia container with env var VIRTUAL_HOST

docker run -e VIRTUAL_HOST=foo.bar.com \
  -v <local-path-to-config>:/sinopia/config.yaml \
  --name sinopia-ldap -d -P plitex/sinopia-ldap-docker

Tag summary

Content type

Image

Digest

sha256:4784823d4…

Size

132.8 MB

Last updated

about 11 years ago

docker pull plitex/sinopia-ldap-docker