This repository was archived by the owner on Jul 8, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8525bd3
Showing
33 changed files
with
2,226 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.editorconfig | ||
.codeclimate.yml | ||
*.png | ||
*.md | ||
.venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.py] | ||
max_line_length = 99 | ||
indent_style = space | ||
|
||
[*.{yaml, yml}] | ||
indent_style = space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.venv | ||
*.pyc | ||
*.egg-info | ||
/build | ||
/dist | ||
|
||
*.yaml | ||
!example-config.yaml | ||
|
||
*.log | ||
*.log.* | ||
|
||
*.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
image: docker:stable | ||
|
||
stages: | ||
- build | ||
- push | ||
|
||
default: | ||
before_script: | ||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY | ||
|
||
build: | ||
stage: build | ||
script: | ||
- docker pull $CI_REGISTRY_IMAGE:latest || true | ||
- docker build --pull --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA . | ||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA | ||
|
||
push latest: | ||
stage: push | ||
only: | ||
- master | ||
variables: | ||
GIT_STRATEGY: none | ||
script: | ||
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA | ||
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:latest | ||
- docker push $CI_REGISTRY_IMAGE:latest | ||
|
||
push tag: | ||
stage: push | ||
variables: | ||
GIT_STRATEGY: none | ||
except: | ||
- master | ||
script: | ||
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA | ||
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME | ||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM docker.io/alpine:3.10 | ||
|
||
ENV UID=1337 \ | ||
GID=1337 | ||
|
||
RUN apk add --no-cache \ | ||
py3-pillow \ | ||
py3-aiohttp \ | ||
py3-magic \ | ||
py3-sqlalchemy \ | ||
py3-psycopg2 \ | ||
py3-ruamel.yaml \ | ||
# Indirect dependencies | ||
#commonmark | ||
py3-future \ | ||
#alembic | ||
py3-mako \ | ||
py3-dateutil \ | ||
py3-markupsafe \ | ||
py3-six \ | ||
py3-idna \ | ||
# Other dependencies | ||
ca-certificates \ | ||
su-exec | ||
|
||
COPY . /opt/mautrix-twilio | ||
WORKDIR /opt/mautrix-twilio | ||
RUN pip3 install . | ||
|
||
VOLUME /data | ||
|
||
CMD ["/opt/mautrix-twilio/docker-run.sh"] |
Oops, something went wrong.