Reconfiguration of the build algorithm

This commit is contained in:
Valentin Popov 2018-08-15 18:28:35 +04:00
parent 9bf889fa15
commit 8f92f77d5a
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
11 changed files with 26 additions and 199 deletions

View File

@ -10,24 +10,19 @@ notifications:
- "info@valentineus.link" - "info@valentineus.link"
env: env:
- "IMAGE=./default/latest" - TAG="latest" RELEASE="latest" DIRECTORY="./default/latest"
- "IMAGE=./default/1.7" - TAG="1.7" RELEASE="1.7" DIRECTORY="./default/release"
- "IMAGE=./default/1.6" - TAG="1.6" RELEASE="1.6" DIRECTORY="./default/release"
- "IMAGE=./default/1.5" - TAG="1.5" RELEASE="1.5" DIRECTORY="./default/release"
- "IMAGE=./default/1.4" - TAG="1.4" RELEASE="1.4" DIRECTORY="./default/release"
- "IMAGE=./build/latest" - TAG="build" RELEASE="latest" DIRECTORY="./build/latest"
- "IMAGE=./build/1.7" - TAG="build-1.7" RELEASE="1.7" DIRECTORY="./build/release"
- "IMAGE=./build/1.6" - TAG="build-1.6" RELEASE="1.6" DIRECTORY="./build/release"
- "IMAGE=./build/1.5" - TAG="build-1.5" RELEASE="1.5" DIRECTORY="./build/release"
- "IMAGE=./build/1.4" - TAG="build-1.4" RELEASE="1.4" DIRECTORY="./build/release"
script: script:
- docker build --tag "${TRAVIS_REPO_SLUG}" "${IMAGE}" - docker build --build-arg RELEASE="${RELEASE}" --tag "${TAG}" "${DIRECTORY}"
jobs: after_success:
include: - "curl -H 'Content-Type: application/json' --data '{\"docker_tag\":\"${TAG}\"}' -X POST 'https://registry.hub.docker.com/u/valentineus/meteor/trigger/${TOKEN}/'"
- stage: deploy
deploy:
provider: script
script:
- "curl -H 'Content-Type: application/json' --data '{\"build\":true}' -X POST 'https://registry.hub.docker.com/u/valentineus/meteor/trigger/${TOKEN}/'"

View File

@ -1,26 +0,0 @@
FROM ubuntu:rolling
LABEL maintainer="info@valentineus.link"
ENV METEOR_ALLOW_SUPERUSER="true"
ENV RELEASE="1.5"
WORKDIR "/workspace"
RUN set -ex \
&& apt-get update \
&& apt-get --no-install-recommends --no-install-suggests --yes install \
build-essential \
ca-certificates \
curl \
git \
openssl \
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
&& apt-get --purge --yes autoremove \
&& apt-get clean \
&& find /tmp -type f -exec rm {} \; \
&& find /var/cache -type f -exec rm {} \; \
&& find /var/lib/apt/lists -type f -exec rm {} \; \
&& find /var/log -type f -exec rm {} \; \
&& find /var/tmp -type f -exec rm {} \;
EXPOSE 3000
CMD [ "/usr/local/bin/meteor", "run" ]

View File

@ -1,26 +0,0 @@
FROM ubuntu:rolling
LABEL maintainer="info@valentineus.link"
ENV METEOR_ALLOW_SUPERUSER="true"
ENV RELEASE="1.6"
WORKDIR "/workspace"
RUN set -ex \
&& apt-get update \
&& apt-get --no-install-recommends --no-install-suggests --yes install \
build-essential \
ca-certificates \
curl \
git \
openssl \
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
&& apt-get --purge --yes autoremove \
&& apt-get clean \
&& find /tmp -type f -exec rm {} \; \
&& find /var/cache -type f -exec rm {} \; \
&& find /var/lib/apt/lists -type f -exec rm {} \; \
&& find /var/log -type f -exec rm {} \; \
&& find /var/tmp -type f -exec rm {} \;
EXPOSE 3000
CMD [ "/usr/local/bin/meteor", "run" ]

View File

@ -1,26 +0,0 @@
FROM ubuntu:rolling
LABEL maintainer="info@valentineus.link"
ENV METEOR_ALLOW_SUPERUSER="true"
ENV RELEASE="1.7"
WORKDIR "/workspace"
RUN set -ex \
&& apt-get update \
&& apt-get --no-install-recommends --no-install-suggests --yes install \
build-essential \
ca-certificates \
curl \
git \
openssl \
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
&& apt-get --purge --yes autoremove \
&& apt-get clean \
&& find /tmp -type f -exec rm {} \; \
&& find /var/cache -type f -exec rm {} \; \
&& find /var/lib/apt/lists -type f -exec rm {} \; \
&& find /var/log -type f -exec rm {} \; \
&& find /var/tmp -type f -exec rm {} \;
EXPOSE 3000
CMD [ "/usr/local/bin/meteor", "run" ]

View File

@ -2,16 +2,11 @@ FROM ubuntu:rolling
LABEL maintainer="info@valentineus.link" LABEL maintainer="info@valentineus.link"
ENV METEOR_ALLOW_SUPERUSER="true" ENV METEOR_ALLOW_SUPERUSER="true"
WORKDIR "/workspace"
RUN set -ex \ RUN set -ex \
&& apt-get update \ && apt-get update \
&& apt-get --no-install-recommends --no-install-suggests --yes install \ && apt-get --no-install-recommends --no-install-suggests --yes install \
build-essential \ build-essential ca-certificates curl git openssl \
ca-certificates \
curl \
git \
openssl \
&& curl https://install.meteor.com | sh \ && curl https://install.meteor.com | sh \
&& apt-get --purge --yes autoremove \ && apt-get --purge --yes autoremove \
&& apt-get clean \ && apt-get clean \
@ -22,4 +17,5 @@ RUN set -ex \
&& find /var/tmp -type f -exec rm {} \; && find /var/tmp -type f -exec rm {} \;
EXPOSE 3000 EXPOSE 3000
WORKDIR "/workspace"
CMD [ "/usr/local/bin/meteor", "run" ] CMD [ "/usr/local/bin/meteor", "run" ]

View File

@ -2,18 +2,14 @@ FROM ubuntu:rolling
LABEL maintainer="info@valentineus.link" LABEL maintainer="info@valentineus.link"
ENV METEOR_ALLOW_SUPERUSER="true" ENV METEOR_ALLOW_SUPERUSER="true"
ENV RELEASE="1.4"
WORKDIR "/workspace" ARG release
RUN set -ex \ RUN set -ex \
&& apt-get update \ && apt-get update \
&& apt-get --no-install-recommends --no-install-suggests --yes install \ && apt-get --no-install-recommends --no-install-suggests --yes install \
build-essential \ build-essential ca-certificates curl git openssl \
ca-certificates \ && curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${release}/g' | sh \
curl \
git \
openssl \
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
&& apt-get --purge --yes autoremove \ && apt-get --purge --yes autoremove \
&& apt-get clean \ && apt-get clean \
&& find /tmp -type f -exec rm {} \; \ && find /tmp -type f -exec rm {} \; \
@ -23,4 +19,5 @@ RUN set -ex \
&& find /var/tmp -type f -exec rm {} \; && find /var/tmp -type f -exec rm {} \;
EXPOSE 3000 EXPOSE 3000
WORKDIR "/workspace"
CMD [ "/usr/local/bin/meteor", "run" ] CMD [ "/usr/local/bin/meteor", "run" ]

View File

@ -1,26 +0,0 @@
FROM ubuntu:rolling
LABEL maintainer="info@valentineus.link"
ENV METEOR_ALLOW_SUPERUSER="true"
ENV RELEASE="1.5"
WORKDIR "/workspace"
RUN set -ex \
&& apt-get update \
&& apt-get --no-install-recommends --no-install-suggests --yes install \
ca-certificates \
curl \
git \
openssl \
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
&& apt-get --purge --yes remove curl \
&& apt-get --purge --yes autoremove \
&& apt-get clean \
&& find /tmp -type f -exec rm {} \; \
&& find /var/cache -type f -exec rm {} \; \
&& find /var/lib/apt/lists -type f -exec rm {} \; \
&& find /var/log -type f -exec rm {} \; \
&& find /var/tmp -type f -exec rm {} \;
EXPOSE 3000
CMD [ "/usr/local/bin/meteor", "run" ]

View File

@ -1,26 +0,0 @@
FROM ubuntu:rolling
LABEL maintainer="info@valentineus.link"
ENV METEOR_ALLOW_SUPERUSER="true"
ENV RELEASE="1.6"
WORKDIR "/workspace"
RUN set -ex \
&& apt-get update \
&& apt-get --no-install-recommends --no-install-suggests --yes install \
ca-certificates \
curl \
git \
openssl \
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
&& apt-get --purge --yes remove curl \
&& apt-get --purge --yes autoremove \
&& apt-get clean \
&& find /tmp -type f -exec rm {} \; \
&& find /var/cache -type f -exec rm {} \; \
&& find /var/lib/apt/lists -type f -exec rm {} \; \
&& find /var/log -type f -exec rm {} \; \
&& find /var/tmp -type f -exec rm {} \;
EXPOSE 3000
CMD [ "/usr/local/bin/meteor", "run" ]

View File

@ -1,26 +0,0 @@
FROM ubuntu:rolling
LABEL maintainer="info@valentineus.link"
ENV METEOR_ALLOW_SUPERUSER="true"
ENV RELEASE="1.7"
WORKDIR "/workspace"
RUN set -ex \
&& apt-get update \
&& apt-get --no-install-recommends --no-install-suggests --yes install \
ca-certificates \
curl \
git \
openssl \
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
&& apt-get --purge --yes remove curl \
&& apt-get --purge --yes autoremove \
&& apt-get clean \
&& find /tmp -type f -exec rm {} \; \
&& find /var/cache -type f -exec rm {} \; \
&& find /var/lib/apt/lists -type f -exec rm {} \; \
&& find /var/log -type f -exec rm {} \; \
&& find /var/tmp -type f -exec rm {} \;
EXPOSE 3000
CMD [ "/usr/local/bin/meteor", "run" ]

View File

@ -2,15 +2,11 @@ FROM ubuntu:rolling
LABEL maintainer="info@valentineus.link" LABEL maintainer="info@valentineus.link"
ENV METEOR_ALLOW_SUPERUSER="true" ENV METEOR_ALLOW_SUPERUSER="true"
WORKDIR "/workspace"
RUN set -ex \ RUN set -ex \
&& apt-get update \ && apt-get update \
&& apt-get --no-install-recommends --no-install-suggests --yes install \ && apt-get --no-install-recommends --no-install-suggests --yes install \
ca-certificates \ ca-certificates curl git openssl \
curl \
git \
openssl \
&& curl https://install.meteor.com | sh \ && curl https://install.meteor.com | sh \
&& apt-get --purge --yes remove curl \ && apt-get --purge --yes remove curl \
&& apt-get --purge --yes autoremove \ && apt-get --purge --yes autoremove \
@ -22,4 +18,5 @@ RUN set -ex \
&& find /var/tmp -type f -exec rm {} \; && find /var/tmp -type f -exec rm {} \;
EXPOSE 3000 EXPOSE 3000
WORKDIR "/workspace"
CMD [ "/usr/local/bin/meteor", "run" ] CMD [ "/usr/local/bin/meteor", "run" ]

View File

@ -2,16 +2,13 @@ FROM ubuntu:rolling
LABEL maintainer="info@valentineus.link" LABEL maintainer="info@valentineus.link"
ENV METEOR_ALLOW_SUPERUSER="true" ENV METEOR_ALLOW_SUPERUSER="true"
ENV RELEASE="1.4"
WORKDIR "/workspace" ARG release
RUN set -ex \ RUN set -ex \
&& apt-get update \ && apt-get update \
&& apt-get --no-install-recommends --no-install-suggests --yes install \ && apt-get --no-install-recommends --no-install-suggests --yes install \
ca-certificates \ ca-certificates curl git openssl \
curl \
git \
openssl \
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \ && curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
&& apt-get --purge --yes remove curl \ && apt-get --purge --yes remove curl \
&& apt-get --purge --yes autoremove \ && apt-get --purge --yes autoremove \
@ -23,4 +20,5 @@ RUN set -ex \
&& find /var/tmp -type f -exec rm {} \; && find /var/tmp -type f -exec rm {} \;
EXPOSE 3000 EXPOSE 3000
WORKDIR "/workspace"
CMD [ "/usr/local/bin/meteor", "run" ] CMD [ "/usr/local/bin/meteor", "run" ]