0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

Merge pull request #137 from danielo515/rpi-docker

Added docker image for rpi
This commit is contained in:
jotadeveloper 2017-03-23 06:23:40 +01:00 committed by GitHub
commit 4f22d6fec6
3 changed files with 27 additions and 1 deletions

13
Dockerfile.rpi Normal file
View file

@ -0,0 +1,13 @@
FROM hypriot/rpi-node:6-onbuild
RUN mkdir -p /verdaccio/storage /verdaccio/conf
WORKDIR /verdaccio
ADD conf/docker.yaml /verdaccio/conf/config.yaml
EXPOSE 4873
VOLUME ["/verdaccio/conf", "/verdaccio/storage"]
CMD ["/usr/src/app/bin/verdaccio", "--config", "/verdaccio/conf/config.yaml", "--listen", "0.0.0.0:4873"]

View file

@ -57,6 +57,15 @@ To build your own image:
`docker build -t verdaccio .`
There is also an npm script for building the docker image, so you can also do:
`npm run build-docker`
If you want to use the docker image on a rpi or a compatible device there is also a dockerfile available.
To build the docker image for raspberry pi execute:
`npm run build-docker:rpi`
To run the docker container:
```
@ -67,6 +76,8 @@ docker run -it --rm --name verdaccio -p 4873:4873 \
verdaccio
```
Please note that for any of the above docker commands you need to have docker installed on your machine and the docker executable should be available on your `$PATH`.
### Ansible
A Verdaccio playbook [is available at galaxy](https://galaxy.ansible.com/030/verdaccio) source: https://github.com/030/ansible-verdaccio

View file

@ -73,7 +73,9 @@
"test:coverage": "nyc --reporter=html --reporter=text mocha -R spec ./test/functional ./test/unit",
"test-travis": "eslint . && npm run test:coverage",
"test-only": "mocha ./test/functional ./test/unit",
"lint": "eslint ."
"lint": "eslint .",
"build-docker": "docker build -t verdaccio .",
"build-docker:rpi": "docker build -f Dockerfile.rpi -t verdaccio:rpi ."
},
"engines": {
"node": ">=0.10"