kontena / chpharos

Pharos version switcher
https://get.pharos.sh/
Apache License 2.0
3 stars 4 forks source link

Add Dockerfiles #43

Closed kke closed 5 years ago

kke commented 5 years ago

Adds Dockerfiles

Debian:

$ docker build -t chpharos-alpine -f Dockerfile.alpine .
$ docker run -e CHPHAROS_TOKEN=xxx -it chpharos-alpine
root@8c673271df61:/# chpharos install --use 1.3.3
root@8c673271df61:/# pharos --version
pharos-cluster 1.3.3

Alpine:

$ docker build -t chpharos  .
$ docker run -e CHPHAROS_TOKEN=xxx -it chpharos
3589132a3183:/# chpharos-exec -i 1.3.3 pharos --version
pharos-cluster 1.3.3