diff --git a/.travis.yml b/.travis.yml index ef1966689..5d66ae7a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -269,6 +269,14 @@ matrix: - docker build --compress -t epicmorg/postgres:latest postgres/latest - docker push epicmorg/postgres:latest + ########## + + - name: vk2discord (latest) + script: + - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin + - docker build --compress -t epicmorg/vk2discord:latest vk2discord/latest + - docker push epicmorg/vk2discord:latest + ########## - name: qBitTorrent (latest) diff --git a/testrail/Makefile b/testrail/Makefile index fb52d76c6..6e602e8f8 100644 --- a/testrail/Makefile +++ b/testrail/Makefile @@ -1,6 +1,6 @@ -all: bitbucket +all: tr -bitbucket: +tr: docker build --compress -t epicmorg/testrail . docker push epicmorg/testrail diff --git a/vk2discord/latest/Dockerfile b/vk2discord/latest/Dockerfile new file mode 100644 index 000000000..602d74599 --- /dev/null +++ b/vk2discord/latest/Dockerfile @@ -0,0 +1,44 @@ +FROM epicmorg/devel AS builder +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +WORKDIR /tmp + +RUN git clone https://github.com/MrZillaGold/VK2Discord.git vk2discord + +FROM epicmorg/edge +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# Node.js 14.x +################################################################## +RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \ + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \ + echo "deb https://nightly.yarnpkg.com/debian/ nightly main" > /etc/apt/sources.list.d/yarn.list && \ + apt-get update && \ + apt-get install -y nodejs yarn + +################################################################## +# Installing vk2discord +################################################################## + +WORKDIR /usr/src/vk2discord + + +COPY --from=builder /tmp/vk2discord/package*.json /usr/src/vk2discord/ + +RUN [ "npm", "install" ] + +COPY --from=builder /tmp/vk2discord/* /usr/src/vk2discord/ + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +CMD [ "npm", "start" ] diff --git a/vk2discord/latest/Makefile b/vk2discord/latest/Makefile new file mode 100644 index 000000000..8d17ab096 --- /dev/null +++ b/vk2discord/latest/Makefile @@ -0,0 +1,5 @@ +all: vk2d + +vk2d: + docker build --compress -t epicmorg/vk2discord:latest . + docker push epicmorg/vk2discord diff --git a/vk2discord/latest/README.md b/vk2discord/latest/README.md new file mode 100644 index 000000000..b6ef111c5 --- /dev/null +++ b/vk2discord/latest/README.md @@ -0,0 +1,3 @@ +## VK2Discord + +* Based on our ecosystem, original [here](https://github.com/MrZillaGold/VK2Discord).