-
Notifications
You must be signed in to change notification settings - Fork 7
Split docker images #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
FROM ubuntu:bionic as assets | ||
MAINTAINER [email protected] | ||
ARG os=ubuntu | ||
ARG version= | ||
ARG variant= | ||
ARG baseruby= | ||
ARG packages= | ||
|
||
FROM ${os}:${version}${variant} as assets | ||
ARG os | ||
ARG version | ||
ARG variant | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y wget gnupg2 ca-certificates | ||
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key \ | ||
|
@@ -12,44 +21,20 @@ RUN grep '^deb ' /etc/apt/sources.list \ | |
| tee /etc/apt/sources.list.d/deb-src.list | ||
ADD assets/99apt.conf /etc/apt/apt.conf.d/ | ||
ADD assets/99dpkg.cfg /etc/dpkg/dpkg.cfg.d/ | ||
ADD assets/98gcc.list /etc/apt/sources.list.d/ | ||
ADD assets/99llvm.list /etc/apt/sources.list.d/ | ||
ADD assets/99${version}.list /etc/apt/sources.list.d/ | ||
|
||
FROM ${os}:${version}${variant} as compilers | ||
ARG baseruby | ||
ARG packages | ||
|
||
FROM ubuntu:bionic | ||
MAINTAINER [email protected] | ||
LABEL [email protected] | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
COPY --from=assets /etc/ssl /etc/ssl | ||
COPY --from=assets /etc/apt /etc/apt | ||
COPY --from=assets /etc/dpkg /etc/dpkg | ||
|
||
RUN set -ex \ | ||
&& apt-get update \ | ||
&& apt-get install \ | ||
clang-3.9 llvm-3.9 \ | ||
clang-4.0 llvm-4.0 \ | ||
clang-5.0 llvm-5.0 \ | ||
clang-6.0 llvm-6.0 \ | ||
clang-7 llvm-7 \ | ||
clang-8 llvm-8 \ | ||
clang-9 llvm-9 \ | ||
clang-10 llvm-10 \ | ||
clang-11 llvm-11 \ | ||
clang-12 llvm-12 \ | ||
clang-13 llvm-13 \ | ||
gcc-4.8 g++-4.8 \ | ||
gcc-5 g++-5 \ | ||
gcc-6 g++-6 \ | ||
gcc-7 g++-7 \ | ||
gcc-8 g++-8 \ | ||
gcc-9 g++-9 \ | ||
gcc-10 g++-10 \ | ||
mingw-w64 \ | ||
crossbuild-essential-arm64 \ | ||
crossbuild-essential-ppc64el \ | ||
crossbuild-essential-s390x \ | ||
libjemalloc-dev \ | ||
openssl \ | ||
ruby \ | ||
tzdata \ | ||
valgrind \ | ||
&& apt-get build-dep ruby2.5 | ||
RUN set -ex \ | ||
&& apt-get update \ | ||
&& apt-get install ${packages} \ | ||
libjemalloc-dev openssl ruby tzdata valgrind \ | ||
&& apt-get build-dep ruby${baseruby} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
deb http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu bionic main | ||
deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic main | ||
deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-6.0 main | ||
deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main | ||
deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main | ||
|
||
deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu bionic main | ||
deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic main | ||
deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-6.0 main | ||
deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main | ||
deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
deb http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu focal main | ||
deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal main | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see the ubuntu-toolchain-r repository is used to download gcc-11 on focal, right? I think that's a good idea! I wondered why ruby/ruby's |
||
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-9 main | ||
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main | ||
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main | ||
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main | ||
deb http://apt.llvm.org/focal/ llvm-toolchain-focal main | ||
|
||
deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu focal main | ||
deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal main | ||
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-9 main | ||
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main | ||
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main | ||
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main | ||
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal main | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suppose the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah I found the |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is great to see that we start to use the docker/setup-buildx-action. At the moment, the published platform is only amd64 right? I could not find other platform's info for example on this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No other packages at this moment but I'm open to add one if necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. I might suggest to add other platforms
arm64
,ppc64le
,s390x
with a PR in near future. These platforms could be used in Travis.