File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : docker
4+ directory : /
5+ schedule :
6+ interval : monthly
Original file line number Diff line number Diff line change 1+ name : Publish Docker image
2+
3+ on :
4+ push :
5+
6+ jobs :
7+ push_to_registries :
8+ name : Push Docker image to multiple registries
9+ runs-on : ubuntu-latest
10+ permissions :
11+ packages : write
12+ contents : read
13+ steps :
14+ - name : Check out the repo
15+ uses : actions/checkout@v4
16+
17+ - name : Log in to the Container registry
18+ uses : docker/login-action@v3
19+ with :
20+ registry : ghcr.io
21+ username : ${{ github.actor }}
22+ password : ${{ secrets.GITHUB_TOKEN }}
23+
24+ - name : Extract metadata (tags, labels) for Docker
25+ id : meta
26+ uses : docker/metadata-action@v5
27+ with :
28+ images : ghcr.io/${{ github.repository }}
29+
30+ - name : Build and push Docker images
31+ uses : docker/build-push-action@v5
32+ with :
33+ context : .
34+ push : true
35+ tags : ${{ steps.meta.outputs.tags }}
36+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1+ FROM python:3.12-slim
2+ EXPOSE 8000
3+
4+ COPY . /occameracontrol
5+ WORKDIR /occameracontrol
6+
7+ RUN pip install --no-cache-dir -r /occameracontrol/requirements.txt
8+
9+ USER nobody
10+ ENTRYPOINT [ "python" , "-m" , "occameracontrol" ]
Original file line number Diff line number Diff line change @@ -61,3 +61,20 @@ agent_calendar_update_time{agent="test_agent"} 1.707571943100096e+09
6161# TYPE camera_position gauge
6262camera_position{camera =" http://camera-2-panasonic.example.com" } 10.0
6363```
64+
65+ ## Docker
66+
67+ We also provide a container image.
68+ A simple docker compose example would look like this
69+
70+ ``` yaml
71+ ---
72+ version : ' 3'
73+ services :
74+ app :
75+ image : ghcr.io/virtuos/opencast-camera-control:main
76+ ports :
77+ - ' 8000:8000'
78+ volumes :
79+ - ' ./your_config.yml:/occameracontrol/config.yml'
80+ ` ` `
You can’t perform that action at this time.
0 commit comments