From 093ca8ae7355ddf296ec1417529745c6d655c600 Mon Sep 17 00:00:00 2001 From: STAM Date: Wed, 16 Dec 2020 02:33:53 +0300 Subject: [PATCH] wf updates --- .github/workflows/docker-develop.yml | 6 ++++++ .github/workflows/docker-master.yml | 5 +++++ mattermost/latest/Dockerfile | 15 +++++++++++++++ mattermost/latest/Makefile | 4 ++++ mattermost/latest/edit.py | 13 +++++++++++++ 5 files changed, 43 insertions(+) create mode 100644 mattermost/latest/Dockerfile create mode 100644 mattermost/latest/Makefile create mode 100755 mattermost/latest/edit.py diff --git a/.github/workflows/docker-develop.yml b/.github/workflows/docker-develop.yml index d9b25b965..9673985dc 100644 --- a/.github/workflows/docker-develop.yml +++ b/.github/workflows/docker-develop.yml @@ -141,6 +141,12 @@ jobs: ########## + - name: Build MatterMost (latest) + run: docker build --compress -t epicmorg/mattermost-enterprise-edition:latest mattermost/latest + + - name: Build sysPass + php7.3 (latest) + run: docker build --compress -t epicmorg/syspass:latest syspass/sysPass-php7.3 + - name: Build TeamCity Agent run: docker build --compress -t epicmorg/teamcity-agent:latest teamcity/agent diff --git a/.github/workflows/docker-master.yml b/.github/workflows/docker-master.yml index 4ae1acffe..91d312870 100644 --- a/.github/workflows/docker-master.yml +++ b/.github/workflows/docker-master.yml @@ -74,6 +74,11 @@ jobs: - name: Push sysPass + php7.3 (php7.3) run: docker push epicmorg/syspass:php7.3 + - name: Build MatterMost (latest) + run: docker build --compress -t epicmorg/mattermost-enterprise-edition:latest mattermost/latest + - name: Push MatterMost (latest) + run: docker push epicmorg/mattermost-enterprise-edition:latest + - name: Cleanup run: docker system prune --all --force --volumes diff --git a/mattermost/latest/Dockerfile b/mattermost/latest/Dockerfile new file mode 100644 index 000000000..ae21736fc --- /dev/null +++ b/mattermost/latest/Dockerfile @@ -0,0 +1,15 @@ +FROM mattermost/mattermost-enterprise-edition as bootstrap +RUN cd ./bin && \ + ls -las + +FROM python:2.7-buster as edit +COPY edit.py /tmp/edit.py +COPY --from=bootstrap /mattermost/bin/mattermost /tmp/mattermost +RUN cd /tmp && \ + ./edit.py + +FROM mattermost/mattermost-enterprise-edition +RUN rm -rfv /mattermost/bin/mattermost +COPY --from=edit /tmp/mattermost /mattermost/bin/ +RUN cd ./bin && \ + ls -las diff --git a/mattermost/latest/Makefile b/mattermost/latest/Makefile new file mode 100644 index 000000000..cac53052c --- /dev/null +++ b/mattermost/latest/Makefile @@ -0,0 +1,4 @@ +all: mmed +mmed: + docker build --compress -t epicmorg/mattermost-enterprise-edition . + docker push epicmorg/mattermost-enterprise-edition:latest diff --git a/mattermost/latest/edit.py b/mattermost/latest/edit.py new file mode 100755 index 000000000..64e9acc7d --- /dev/null +++ b/mattermost/latest/edit.py @@ -0,0 +1,13 @@ +#!/usr/bin/python2 +import os +fp = open(os.path.join(os.path.dirname(__file__), "mattermost"), "r+b") +print("Try before buy (c)") +try: + pos = fp.read().find("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyZmShlU8Z8HdG0IWSZ8r\ntSyzyxrXkJjsFUf0Ke7bm/TLtIggRdqOcUF3XEWqQk5RGD5vuq7Rlg1zZqMEBk8N\nEZeRhkxyaZW8pLjxwuBUOnXfJew31+gsTNdKZzRjrvPumKr3EtkleuoxNdoatu4E\nHrKmR/4Yi71EqAvkhk7ZjQFuF0osSWJMEEGGCSUYQnTEqUzcZSh1BhVpkIkeu8Kk\n1wCtptODixvEujgqVe+SrE3UlZjBmPjC/CL+3cYmufpSNgcEJm2mwsdaXp2OPpfn\na0v85XL6i9ote2P+fLZ3wX9EoioHzgdgB7arOxY50QRJO7OyCqpKFKv6lRWTXuSt\nhwIDAQAB") + fp.seek(pos) + fp.write("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmCvX08GJRrbqYZbJtGXj\nXYmoRva8Yvk43uspBiNQoFYp0N8mWfmDhCqUzW7i9GZKDlEgn2IYoL2GxiRpSJaP\nirK8FGwD+o0efzhTHeGWOvD4e0c8gQZbpe85p17vha2i2xZiWQ4UBlq7jUFcuy6F\nfcgUK+fVI8+IvvjtkIZRqRLLlXCRnpuEWq/8vJF7yHql2jxiGUdXkFkZsgPgXizv\nmY0op5ui6n/f7ljVIIdad10OLNsW/xxk6VxirAIyuDZK9GSRGjjvDhi/yNcC0yJe\njYTCeDoD+GVh3twk+RyFo9S1AG7kKWtHTNu3MLh9/XnRJdpgrlAE7Z4+VfHrsbXp\ntwIDAQAB") + print("OK") +except: + print("Nothing to do") +finally: + fp.close()