Push a docker build setup

This commit is contained in:
Luke Murphy 2021-01-08 11:39:15 +01:00
parent 995674f5e4
commit fd6feb4084
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 31 additions and 5 deletions

16
.drone.yml Normal file
View File

@ -0,0 +1,16 @@
---
kind: pipeline
name: push custom alerta-web container
steps:
- name: build container
image: plugins/docker
settings:
username:
from_secret: docker_reg_username
password:
from_secret: docker_reg_passwd
repo: decentral1se/alerta
tags: 8.3.3
trigger:
branch:
- main

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM alerta/alerta-web:8.3.3
EXPOSE 8080
RUN /venv/bin/pip install git+https://github.com/alerta/alerta-contrib.git#subdirectory=integrations/mailer
RUN /venv/bin/pip install git+https://github.com/alerta/alerta-contrib.git#subdirectory=plugins/rocketchat
COPY . ${WORKDIR}
COPY sbin/* /sbin/
ENTRYPOINT ["/sbin/entrypoint.sh"]
CMD ["supervisord", "-c", "/app/supervisord.conf"]

View File

@ -1,6 +1 @@
# alerta
## WIP
- https://github.com/alerta/docker-alerta
- https://docs.alerta.io/en/latest/gettingstarted/tutorial-10-docker.html?highlight=container#step-3-run-using-docker-compose