All Projects → kfatehi → Docker Sinopia

kfatehi / Docker Sinopia

Docker image of Sinopia (deprecated)

Labels

Projects that are alternatives of or similar to Docker Sinopia

Project
General issue tracker for the Frictionless Data project.
Stars: ✭ 108 (-6.9%)
Mutual labels:  makefile
Ppl Intro
probabilistic programming for PL folks
Stars: ✭ 112 (-3.45%)
Mutual labels:  makefile
Makefile.venv
Seamlessly manage Python virtual environment with a Makefile
Stars: ✭ 114 (-1.72%)
Mutual labels:  makefile
Saturn
Stars: ✭ 110 (-5.17%)
Mutual labels:  makefile
Multi Stage Build Example
Example repository to accompany my talk at Velocity 2018
Stars: ✭ 111 (-4.31%)
Mutual labels:  makefile
Flex injected
Injecting FLEX with MobileSubstrate. Inject FLEX library into 3rd party apps.
Stars: ✭ 111 (-4.31%)
Mutual labels:  makefile
Workflow Paper
The .md source for "The Plain Person's Guide to Plain Text Social Science". To exactly reproduce the PDF you will need current versions of R, TexLive, biber, and the support files at http://www.kieranhealy.org/resources.html.
Stars: ✭ 108 (-6.9%)
Mutual labels:  makefile
Businesscard Linux
A Buildroot distribution small enough to run on my business card
Stars: ✭ 1,573 (+1256.03%)
Mutual labels:  makefile
Docker Ce Packaging
Packaging scripts for Docker CE
Stars: ✭ 111 (-4.31%)
Mutual labels:  makefile
Istio Handbook
Istio Service Mesh Advanced Practical - Istio服务网格进阶实战 https://www.servicemesher.com/istio-handbook/
Stars: ✭ 1,646 (+1318.97%)
Mutual labels:  makefile
Riscv Rust Toolchain
RISCV Rust Toolchain
Stars: ✭ 110 (-5.17%)
Mutual labels:  makefile
Netbsd
for NetBSD project.
Stars: ✭ 110 (-5.17%)
Mutual labels:  makefile
Dapr Demos
Collection of personal Dapr demos (bindings, state, pub/sub, service-to-service invocation)
Stars: ✭ 109 (-6.03%)
Mutual labels:  makefile
Seed
Go application GitHub repository template.
Stars: ✭ 109 (-6.03%)
Mutual labels:  makefile
Switchmode
an open form contract for open source contractors
Stars: ✭ 114 (-1.72%)
Mutual labels:  makefile
Kubernetes Common Services
These services help make it easier to manage your applications environment in Kubernetes
Stars: ✭ 109 (-6.03%)
Mutual labels:  makefile
Ghost On Docker
Ghost Blog on Docker - Dockerfile for ARM etc
Stars: ✭ 111 (-4.31%)
Mutual labels:  makefile
Elfhacks
Dive into ELF files using simple self-contained examples
Stars: ✭ 115 (-0.86%)
Mutual labels:  makefile
Br Atlas
Create TopoJSON files from IBGE's collection of Brazil maps
Stars: ✭ 114 (-1.72%)
Mutual labels:  makefile
Pkg2 Patches
FS and ACID patches for both Hekate and Fusée.
Stars: ✭ 112 (-3.45%)
Mutual labels:  makefile

Deprecation Notice

Hi everyone, this project is no longer maintained.

Please use verdaccio/verdaccio and its official Docker Image

Sinopia (Docker Image)

Sinopia is a private npm repository server

Installing Image

docker pull keyvanfatehi/sinopia:latest

Creating Container

docker run --name sinopia -d -p 4873:4873 keyvanfatehi/sinopia:latest

Setting Registry

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

Determining Username and Password

docker logs sinopia

Modify configuration

There are two ways to modify the configuration.

To understand the difference, view the conversation here: https://github.com/keyvanfatehi/docker-sinopia/pull/10

Original Method

docker stop sinopia
docker run --volumes-from sinopia -it --rm ubuntu vi /opt/sinopia/config.yaml
docker start sinopia

Alternative Method

# Save the config file
curl -L https://raw.githubusercontent.com/rlidwka/sinopia/master/conf/default.yaml -o /path/to/config.yaml
# Mount the config file to the exposed data volume
docker run -v /path/to/config.yaml:/opt/sinopia/config.yaml --name sinopia -d -p 4873:4873 keyvanfatehi/sinopia:latest

Restart the container anytime you change the config.

configure Vagrant

Setting the npm registry to http://localhost:4873 in a Dockerfile which should point to the sinopia registry locally will not work during the docker build process, since localhost:4873 references to the Docker container itself and not the host-machine where sinopia runs. With the Vagrant configuration one could locally spin up this Dockerfile in a vbox with the command vagrant up and reference this registry it in a 'target'-Dockerfile with RUN npm set registry http://10.10.10.10:4873.

# vagrant up

and in the Dockerfile of your application set

CMD npm set registry http://10.10.10.10:4873

Vagrant is open source. See install instructions for mac or *nix.

Backups

docker run --volumes-from sinopia -v $(pwd):/backup ubuntu tar cvf /backup/backup.tar /opt/sinopia

Alternatively, host path for /opt/sinopia can be determined by running:

docker inspect sinopia

Restore

docker stop sinopia
docker rm sinopia
docker run --name sinopia -d -p 4873:4873 keyvanfatehi/sinopia:latest
docker stop sinopia
docker run --volumes-from sinopia -v $(pwd):/backup ubuntu tar xvf /backup/backup.tar
docker start sinopia

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].