From fd6feb40848aa7bdea46d537a2a23535766a29b7 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 8 Jan 2021 11:39:15 +0100 Subject: [PATCH] Push a docker build setup --- .drone.yml | 16 ++++++++++++++++ Dockerfile | 15 +++++++++++++++ README.md | 5 ----- 3 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 .drone.yml create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a051450 --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8963b13 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index 5bddaab..9245406 100644 --- a/README.md +++ b/README.md @@ -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