2021-11-02 15:55:06 +00:00
|
|
|
# Docker
|
|
|
|
|
|
|
|
## Build the docker image
|
|
|
|
|
|
|
|
Install Docker.
|
|
|
|
Clone the git repository.
|
|
|
|
Then:
|
|
|
|
|
|
|
|
```shell
|
2022-10-10 13:37:10 +00:00
|
|
|
docker build . -f docker/Dockerfile.bullseye
|
2021-11-02 15:55:06 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## 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
|
2022-10-10 13:37:10 +00:00
|
|
|
`docker login --username johnxlivingston` to add your credentials.
|
2021-11-02 15:55:06 +00:00
|
|
|
|
|
|
|
```shell
|
2021-11-25 11:55:59 +00:00
|
|
|
# pull the current peertube production image:
|
2022-10-10 13:37:10 +00:00
|
|
|
docker pull chocobozzz/peertube:production-bullseye
|
2022-02-23 14:54:25 +00:00
|
|
|
# build the docker image, if not done yet:
|
2022-10-10 13:37:10 +00:00
|
|
|
docker build . -f docker/Dockerfile.bullseye
|
2022-02-23 14:54:25 +00:00
|
|
|
# list images to find the image id:
|
2022-10-10 13:37:10 +00:00
|
|
|
docker images
|
2022-02-23 14:54:25 +00:00
|
|
|
#REPOSITORY TAG IMAGE ID CREATED SIZE
|
2022-02-23 15:02:45 +00:00
|
|
|
#<none> <none> xx_image_id_xx 17 seconds ago 1.19GB
|
|
|
|
#chocobozzz/peertube production-bullseye xx_peertube_image_id_xx 4 days ago 1.17GB
|
2022-02-23 14:54:25 +00:00
|
|
|
|
|
|
|
# tag the image:
|
2022-10-10 13:37:10 +00:00
|
|
|
docker tag xx_image_id_xx johnxlivingston/peertubelivechat:production-bullseye
|
2022-02-23 14:54:25 +00:00
|
|
|
# push on the main tag name:
|
2022-10-10 13:37:10 +00:00
|
|
|
docker push johnxlivingston/peertubelivechat:production-bullseye
|
2022-02-23 14:54:25 +00:00
|
|
|
# push on the current peertube tag name:
|
2022-10-10 13:37:10 +00:00
|
|
|
docker tag johnxlivingston/peertubelivechat:production-bullseye johnxlivingston/peertubelivechat:v4.1.0-bullseye
|
|
|
|
docker push johnxlivingston/peertubelivechat:v4.1.0-bullseye
|
2021-11-02 15:55:06 +00:00
|
|
|
```
|