Sign inSign up

ndigati/docker-sinopia

By ndigati

•Updated over 10 years ago

Sinopia private npm server that syncs its contents to an S3 bucket.

Image
0

3.4K

ndigati/docker-sinopia repository overview

⁠S3-Backed Sinopia (Docker image)

Sinopia is a private npm repository server. This version uploads its npm packages into an S3 bucket for easy (and automatic) backup.

⁠Pulling docker-hub image

docker pull ndigati/docker-sinopia

⁠Create container

 docker run --name sinopia -d -e AWS_ACCESS_KEY_ID=<fill-in> -e AWS_SECRET_ACCESS_KEY=<fill-in> -e SINOPIA_BUCKET=<fill-in> -p 4873:4873 sinopia 

⁠To use the registry

npm set registry http://<docker_host_ip>:4873/

⁠Building and running yourself

  1. Clone the repo:
git clone https://github.com/ndigati/docker-sinopia.git 
  1. Change to new directory and build the image:
cd docker-sinopia
docker build -t sinopia . 
  1. Run the container:
    docker run --name sinopia -d -e AWS_ACCESS_KEY_ID=<fill-in> -e AWS_SECRET_ACCESS_KEY=<fill-in> -e SINOPIA_BUCKET=<fill-in> -e SINOPIA_CONFIG=<fill-in> -p 4873:4873 sinopia 
    

4. Sinopia should now be running on your machine at `<docker_host_ip>:4873` and syncing its contents to an S3 bucket `$SINOPIA_BUCKET`

# Links
- [Sinopia on Github](https://github.com/rlidwka/sinopia)
- [Sinopia's own Docker image](https://hub.docker.com/r/keyvanfatehi/sinopia/)

Tag summary

Content type

Image

Digest

Size

129.8 MB

Last updated

over 10 years ago

docker pull ndigati/docker-sinopia