Commit 871882fa authored by Eric Timmons's avatar Eric Timmons
Browse files

Add nightly images

parent c84f4d11
......@@ -41,6 +41,14 @@ _nonnightly: &nonnightly
_nightly: &nightly
allow_failures:
if: NOT (type = cron)
before_script:
- mkdir tmp
- cd tmp
- git clone https://github.com/Clozure/ccl.git
- cd ccl
- export EXTRA_BUILDARGS="--build-arg ref=$(git rev-parse HEAD)"
- cd ../..
- rm -rf tmp
_build_job: &build_job
stage: build
......@@ -116,3 +124,86 @@ jobs:
OS_NAME: ubuntu
OS_VERSION: "bionic"
<<: [*build_job, *nonnightly]
# Nightly images
# Debian Buster
- arch: amd64
env:
ARCH: amd64
OS_NAME: debian
OS_VERSION: "buster"
VERSION: nightly
<<: [*build_job, *nightly]
- arch: arm64
env:
ARCH: arm32v7
OS_NAME: debian
OS_VERSION: "buster"
VERSION: nightly
<<: [*build_job, *nightly]
# Debian Stretch
- arch: amd64
env:
ARCH: amd64
OS_NAME: debian
OS_VERSION: "stretch"
VERSION: nightly
<<: [*build_job, *nightly]
- arch: arm64
env:
ARCH: arm32v7
OS_NAME: debian
OS_VERSION: "stretch"
VERSION: nightly
<<: [*build_job, *nightly]
# Ubuntu Focal
- arch: amd64
env:
ARCH: amd64
OS_NAME: ubuntu
OS_VERSION: "focal"
VERSION: nightly
<<: [*build_job, *nightly]
- arch: arm64
install:
- unset DOCKER_BUILDKIT
- sudo apt-get remove -y docker docker.io containerd runc
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get install -y docker-ce docker-ce-cli containerd.io
env:
ARCH: arm32v7
OS_NAME: ubuntu
OS_VERSION: "focal"
VERSION: nightly
<<: [*build_job, *nightly]
# Ubuntu Bionic
- arch: amd64
env:
ARCH: amd64
OS_NAME: ubuntu
OS_VERSION: "bionic"
VERSION: nightly
<<: [*build_job, *nightly]
- arch: arm64
env:
ARCH: arm32v7
OS_NAME: ubuntu
OS_VERSION: "bionic"
VERSION: nightly
<<: [*build_job, *nightly]
# Deploy nightly
- arch: amd64
stage: deploy
env:
INCLUDE_WINDOWS_IN_MANIFEST: "no"
VERSION: nightly
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# First, download all the nightly builds, retag them, and push them to
# the arch specific repos
- $BUILD_SCRIPT pull_retag_and_push_linux_arch_images
# Next, create and push all the linux manifests
- $BUILD_SCRIPT release_linux_manifests
# Last, release shared manifests
- $BUILD_SCRIPT release_shared_manifests
FROM debian:buster
LABEL maintainer="etimmons@mit.edu"
ARG ref=master
ENV CCL_REF=$ref
ARG PLATFORM=linuxx86
ARG CCL_SCRIPT=ccl64
WORKDIR /usr/local/src/
# hadolint ignore=DL3003,DL3008
RUN set -x \
&& CCL_VERSION=1.12 \
&& apt-get update \
&& apt-get install -y --no-install-recommends curl ca-certificates build-essential m4 make git \
&& git clone https://github.com/Clozure/ccl.git ccl-dev \
&& (cd ccl-dev && git archive --prefix=ccl/ "$CCL_REF" | tar -C .. -x ) \
&& curl -L https://github.com/Clozure/ccl/releases/download/v${CCL_VERSION}/${PLATFORM}.tar.gz > ${PLATFORM}.tar.gz \
&& gunzip ${PLATFORM}.tar.gz \
&& ( cd ccl && tar xf ../${PLATFORM}.tar && cp scripts/$CCL_SCRIPT /usr/local/bin/ccl && ccl -b -e "(rebuild-ccl :full t)" ) \
&& rm -rf ccl-dev ${PLATFORM}.tar \
&& apt-get remove -y curl ca-certificates build-essential m4 make git \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY docker-entrypoint /usr/local/bin/docker-entrypoint
ENTRYPOINT ["docker-entrypoint"]
CMD ["ccl"]
#!/bin/sh
# If the first arg starts with a hyphen, prepend ccl to arguments.
if [ "${1#-}" != "$1" ]; then
set -- ccl "$@"
fi
exec "$@"
FROM debian:buster
LABEL maintainer="etimmons@mit.edu"
ARG ref=master
ENV CCL_REF=$ref
ARG PLATFORM=linuxarm
ARG CCL_SCRIPT=ccl
WORKDIR /usr/local/src/
# hadolint ignore=DL3003,DL3008
RUN set -x \
&& CCL_VERSION=1.12 \
&& apt-get update \
&& apt-get install -y --no-install-recommends curl ca-certificates build-essential m4 make git \
&& git clone https://github.com/Clozure/ccl.git ccl-dev \
&& (cd ccl-dev && git archive --prefix=ccl/ "$CCL_REF" | tar -C .. -x ) \
&& curl -L https://github.com/Clozure/ccl/releases/download/v${CCL_VERSION}/${PLATFORM}.tar.gz > ${PLATFORM}.tar.gz \
&& gunzip ${PLATFORM}.tar.gz \
&& ( cd ccl && tar xf ../${PLATFORM}.tar && cp scripts/$CCL_SCRIPT /usr/local/bin/ccl && ccl -b -e "(rebuild-ccl :full t)" ) \
&& rm -rf ccl-dev ${PLATFORM}.tar \
&& apt-get remove -y curl ca-certificates build-essential m4 make git \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY docker-entrypoint /usr/local/bin/docker-entrypoint
ENTRYPOINT ["docker-entrypoint"]
CMD ["ccl"]
#!/bin/sh
# If the first arg starts with a hyphen, prepend ccl to arguments.
if [ "${1#-}" != "$1" ]; then
set -- ccl "$@"
fi
exec "$@"
FROM debian:stretch
LABEL maintainer="etimmons@mit.edu"
ARG ref=master
ENV CCL_REF=$ref
ARG PLATFORM=linuxx86
ARG CCL_SCRIPT=ccl64
WORKDIR /usr/local/src/
# hadolint ignore=DL3003,DL3008
RUN set -x \
&& CCL_VERSION=1.12 \
&& apt-get update \
&& apt-get install -y --no-install-recommends curl ca-certificates build-essential m4 make git \
&& git clone https://github.com/Clozure/ccl.git ccl-dev \
&& (cd ccl-dev && git archive --prefix=ccl/ "$CCL_REF" | tar -C .. -x ) \
&& curl -L https://github.com/Clozure/ccl/releases/download/v${CCL_VERSION}/${PLATFORM}.tar.gz > ${PLATFORM}.tar.gz \
&& gunzip ${PLATFORM}.tar.gz \
&& ( cd ccl && tar xf ../${PLATFORM}.tar && cp scripts/$CCL_SCRIPT /usr/local/bin/ccl && ccl -b -e "(rebuild-ccl :full t)" ) \
&& rm -rf ccl-dev ${PLATFORM}.tar \
&& apt-get remove -y curl ca-certificates build-essential m4 make git \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY docker-entrypoint /usr/local/bin/docker-entrypoint
ENTRYPOINT ["docker-entrypoint"]
CMD ["ccl"]
#!/bin/sh
# If the first arg starts with a hyphen, prepend ccl to arguments.
if [ "${1#-}" != "$1" ]; then
set -- ccl "$@"
fi
exec "$@"
FROM debian:stretch
LABEL maintainer="etimmons@mit.edu"
ARG ref=master
ENV CCL_REF=$ref
ARG PLATFORM=linuxarm
ARG CCL_SCRIPT=ccl
WORKDIR /usr/local/src/
# hadolint ignore=DL3003,DL3008
RUN set -x \
&& CCL_VERSION=1.12 \
&& apt-get update \
&& apt-get install -y --no-install-recommends curl ca-certificates build-essential m4 make git \
&& git clone https://github.com/Clozure/ccl.git ccl-dev \
&& (cd ccl-dev && git archive --prefix=ccl/ "$CCL_REF" | tar -C .. -x ) \
&& curl -L https://github.com/Clozure/ccl/releases/download/v${CCL_VERSION}/${PLATFORM}.tar.gz > ${PLATFORM}.tar.gz \
&& gunzip ${PLATFORM}.tar.gz \
&& ( cd ccl && tar xf ../${PLATFORM}.tar && cp scripts/$CCL_SCRIPT /usr/local/bin/ccl && ccl -b -e "(rebuild-ccl :full t)" ) \
&& rm -rf ccl-dev ${PLATFORM}.tar \
&& apt-get remove -y curl ca-certificates build-essential m4 make git \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY docker-entrypoint /usr/local/bin/docker-entrypoint
ENTRYPOINT ["docker-entrypoint"]
CMD ["ccl"]
#!/bin/sh
# If the first arg starts with a hyphen, prepend ccl to arguments.
if [ "${1#-}" != "$1" ]; then
set -- ccl "$@"
fi
exec "$@"
FROM ubuntu:bionic
LABEL maintainer="etimmons@mit.edu"
ARG ref=master
ENV CCL_REF=$ref
ARG PLATFORM=linuxx86
ARG CCL_SCRIPT=ccl64
WORKDIR /usr/local/src/
# hadolint ignore=DL3003,DL3008
RUN set -x \
&& CCL_VERSION=1.12 \
&& apt-get update \
&& apt-get install -y --no-install-recommends curl ca-certificates build-essential m4 make git \
&& git clone https://github.com/Clozure/ccl.git ccl-dev \
&& (cd ccl-dev && git archive --prefix=ccl/ "$CCL_REF" | tar -C .. -x ) \
&& curl -L https://github.com/Clozure/ccl/releases/download/v${CCL_VERSION}/${PLATFORM}.tar.gz > ${PLATFORM}.tar.gz \
&& gunzip ${PLATFORM}.tar.gz \
&& ( cd ccl && tar xf ../${PLATFORM}.tar && cp scripts/$CCL_SCRIPT /usr/local/bin/ccl && ccl -b -e "(rebuild-ccl :full t)" ) \
&& rm -rf ccl-dev ${PLATFORM}.tar \
&& apt-get remove -y curl ca-certificates build-essential m4 make git \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY docker-entrypoint /usr/local/bin/docker-entrypoint
ENTRYPOINT ["docker-entrypoint"]
CMD ["ccl"]
#!/bin/sh
# If the first arg starts with a hyphen, prepend ccl to arguments.
if [ "${1#-}" != "$1" ]; then
set -- ccl "$@"
fi
exec "$@"
FROM ubuntu:bionic
LABEL maintainer="etimmons@mit.edu"
ARG ref=master
ENV CCL_REF=$ref
ARG PLATFORM=linuxarm
ARG CCL_SCRIPT=ccl
WORKDIR /usr/local/src/
# hadolint ignore=DL3003,DL3008
RUN set -x \
&& CCL_VERSION=1.12 \
&& apt-get update \
&& apt-get install -y --no-install-recommends curl ca-certificates build-essential m4 make git \
&& git clone https://github.com/Clozure/ccl.git ccl-dev \
&& (cd ccl-dev && git archive --prefix=ccl/ "$CCL_REF" | tar -C .. -x ) \
&& curl -L https://github.com/Clozure/ccl/releases/download/v${CCL_VERSION}/${PLATFORM}.tar.gz > ${PLATFORM}.tar.gz \
&& gunzip ${PLATFORM}.tar.gz \
&& ( cd ccl && tar xf ../${PLATFORM}.tar && cp scripts/$CCL_SCRIPT /usr/local/bin/ccl && ccl -b -e "(rebuild-ccl :full t)" ) \
&& rm -rf ccl-dev ${PLATFORM}.tar \
&& apt-get remove -y curl ca-certificates build-essential m4 make git \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY docker-entrypoint /usr/local/bin/docker-entrypoint
ENTRYPOINT ["docker-entrypoint"]
CMD ["ccl"]
#!/bin/sh
# If the first arg starts with a hyphen, prepend ccl to arguments.
if [ "${1#-}" != "$1" ]; then
set -- ccl "$@"
fi
exec "$@"
FROM ubuntu:focal
LABEL maintainer="etimmons@mit.edu"
ARG ref=master
ENV CCL_REF=$ref
ARG PLATFORM=linuxx86
ARG CCL_SCRIPT=ccl64
WORKDIR /usr/local/src/
# hadolint ignore=DL3003,DL3008
RUN set -x \
&& CCL_VERSION=1.12 \
&& apt-get update \
&& apt-get install -y --no-install-recommends curl ca-certificates build-essential m4 make git \
&& git clone https://github.com/Clozure/ccl.git ccl-dev \
&& (cd ccl-dev && git archive --prefix=ccl/ "$CCL_REF" | tar -C .. -x ) \
&& curl -L https://github.com/Clozure/ccl/releases/download/v${CCL_VERSION}/${PLATFORM}.tar.gz > ${PLATFORM}.tar.gz \
&& gunzip ${PLATFORM}.tar.gz \
&& ( cd ccl && tar xf ../${PLATFORM}.tar && cp scripts/$CCL_SCRIPT /usr/local/bin/ccl && ccl -b -e "(rebuild-ccl :full t)" ) \
&& rm -rf ccl-dev ${PLATFORM}.tar \
&& apt-get remove -y curl ca-certificates build-essential m4 make git \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY docker-entrypoint /usr/local/bin/docker-entrypoint
ENTRYPOINT ["docker-entrypoint"]
CMD ["ccl"]
#!/bin/sh
# If the first arg starts with a hyphen, prepend ccl to arguments.
if [ "${1#-}" != "$1" ]; then
set -- ccl "$@"
fi
exec "$@"
FROM ubuntu:focal
LABEL maintainer="etimmons@mit.edu"
ARG ref=master
ENV CCL_REF=$ref
ARG PLATFORM=linuxarm
ARG CCL_SCRIPT=ccl
WORKDIR /usr/local/src/
# hadolint ignore=DL3003,DL3008
RUN set -x \
&& CCL_VERSION=1.12 \
&& apt-get update \
&& apt-get install -y --no-install-recommends curl ca-certificates build-essential m4 make git \
&& git clone https://github.com/Clozure/ccl.git ccl-dev \
&& (cd ccl-dev && git archive --prefix=ccl/ "$CCL_REF" | tar -C .. -x ) \
&& curl -L https://github.com/Clozure/ccl/releases/download/v${CCL_VERSION}/${PLATFORM}.tar.gz > ${PLATFORM}.tar.gz \
&& gunzip ${PLATFORM}.tar.gz \
&& ( cd ccl && tar xf ../${PLATFORM}.tar && cp scripts/$CCL_SCRIPT /usr/local/bin/ccl && ccl -b -e "(rebuild-ccl :full t)" ) \
&& rm -rf ccl-dev ${PLATFORM}.tar \
&& apt-get remove -y curl ca-certificates build-essential m4 make git \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY docker-entrypoint /usr/local/bin/docker-entrypoint
ENTRYPOINT ["docker-entrypoint"]
CMD ["ccl"]
#!/bin/sh
# If the first arg starts with a hyphen, prepend ccl to arguments.
if [ "${1#-}" != "$1" ]; then
set -- ccl "$@"
fi
exec "$@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment