Skip to content

Commit e9e562b

Browse files
committed
install opensips package using pip
1 parent 5c855c8 commit e9e562b

File tree

3 files changed

+55
-11
lines changed

3 files changed

+55
-11
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Push OpenSIPS Python Images in Docker Hub
2+
3+
on:
4+
push:
5+
repository_dispatch:
6+
workflow_dispatch:
7+
8+
jobs:
9+
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Log in to Docker Hub
18+
uses: docker/login-action@v2.1.0
19+
with:
20+
username: ${{ secrets.DOCKER_USERNAME }}
21+
password: ${{ secrets.DOCKER_TOKEN }}
22+
23+
- name: Build and push Docker image
24+
uses: docker/build-push-action@v4
25+
with:
26+
context: .
27+
push: true
28+
tags: opensips/python-opensips:latest
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Update Docker Hub Description
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- docker/docker.md
9+
- .github/workflows/docker-readme.yml
10+
11+
jobs:
12+
dockerHubDescription:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
18+
- name: Docker Hub Description
19+
uses: peter-evans/dockerhub-description@v4
20+
with:
21+
username: ${{ secrets.DOCKER_USERNAME }}
22+
password: ${{ secrets.DOCKER_TOKEN }}
23+
repository: opensips/python-opensips
24+
readme-filepath: ./docker/docker.md
25+
short-description: ${{ github.event.repository.description }}
26+
enable-url-completion: true

docker/Dockerfile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
FROM python:3.9-slim-buster
22
LABEL maintainer="Darius Stefan <darius.stefan@opensips.org>"
33

4-
RUN apt-get -y update -qq && \
5-
apt-get -y install git
6-
7-
RUN git clone https://github.com/OpenSIPS/python-opensips.git /usr/src/python-opensips && \
8-
cd /usr/src/python-opensips && \
9-
python3 setup.py install &&\
10-
cd / && rm -rf /usr/src/python-opensips
11-
12-
RUN apt-get purge -y git && \
13-
apt-get autoremove -y && \
14-
apt-get clean
4+
RUN pip install opensips
155

166
ADD "run.sh" "/run.sh"
177

0 commit comments

Comments
 (0)