From cf63f24d2795a11e75b774b00bdc9241ee558d1a Mon Sep 17 00:00:00 2001 From: John Livingston Date: Tue, 2 Nov 2021 16:55:06 +0100 Subject: [PATCH] docker build doc. --- documentation/docker.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 documentation/docker.md diff --git a/documentation/docker.md b/documentation/docker.md new file mode 100644 index 00000000..0b66c3e4 --- /dev/null +++ b/documentation/docker.md @@ -0,0 +1,31 @@ +# Docker + +## Build the docker image + +Install Docker. +Clone the git repository. +Then: + +```shell +sudo docker build . -f docker/Dockerfile.buster +``` + +## Publish docker image + +NB: the above commands are only available for John Livingston. +You have to replace by your own docker up repository +if you really need to build such an image. + +First, you have to authenticate your Docker environment. +Create an access token on your hub.docker.com account, then use +`sudo docker login --username johnxlivingston` to add your credentials. + +```shell +# build the docker image, if not done yet: +sudo docker build . -f docker/Dockerfile.buster +# push on the main tag name: +sudo docker push johnxlivingston/peertubelivechat:production-buster +# push on the current peertube tag name: +sudo docker tag johnxlivingston/peertubelivechat:production-buster johnxlivingston/peertubelivechat:v3.4.1-buster +sudo docker push johnxlivingston/peertubelivechat:v3.4.1-buster +```