mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Add Amazon Linux 2 image
Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
This commit is contained in:
parent
cda8f3d09f
commit
73cb5f83c1
2 changed files with 24 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ omnibus-gitlab-stretch test: *test_build
|
||||||
omnibus-gitlab-buster test: *test_build
|
omnibus-gitlab-buster test: *test_build
|
||||||
omnibus-gitlab-xenial test: *test_build
|
omnibus-gitlab-xenial test: *test_build
|
||||||
omnibus-gitlab-focal test: *test_build
|
omnibus-gitlab-focal test: *test_build
|
||||||
|
omnibus-gitlab-amazonlinux2 test: *test_build
|
||||||
omnibus-gitlab-depscan test: *test_build
|
omnibus-gitlab-depscan test: *test_build
|
||||||
omnibus-gitlab-cve-search test: *test_build
|
omnibus-gitlab-cve-search test: *test_build
|
||||||
|
|
||||||
|
|
@ -89,6 +90,7 @@ omnibus-gitlab-stretch push: *build_and_deploy
|
||||||
omnibus-gitlab-buster push: *build_and_deploy
|
omnibus-gitlab-buster push: *build_and_deploy
|
||||||
omnibus-gitlab-xenial push: *build_and_deploy
|
omnibus-gitlab-xenial push: *build_and_deploy
|
||||||
omnibus-gitlab-focal push: *build_and_deploy
|
omnibus-gitlab-focal push: *build_and_deploy
|
||||||
|
omnibus-gitlab-amazonlinux2 push: *build_and_deploy
|
||||||
omnibus-gitlab-depscan push: *build_and_deploy
|
omnibus-gitlab-depscan push: *build_and_deploy
|
||||||
omnibus-gitlab-cve-search push: *build_and_deploy
|
omnibus-gitlab-cve-search push: *build_and_deploy
|
||||||
release-tools push: *build_and_deploy
|
release-tools push: *build_and_deploy
|
||||||
|
|
|
||||||
22
Dockerfile.omnibus-gitlab-amazonlinux2
Normal file
22
Dockerfile.omnibus-gitlab-amazonlinux2
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
FROM amazonlinux:2 as builder
|
||||||
|
|
||||||
|
RUN yum update -y -q \
|
||||||
|
&& yum groupinstall -y "Development Tools" \
|
||||||
|
&& yum install -y \
|
||||||
|
gcc gcc-c++ git make curl zlib-devel openssl-devel glibc-locale-source \
|
||||||
|
&& yum clean all
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV LC_ALL C.UTF-8
|
||||||
|
RUN localedef -c -f UTF-8 -i C C.UTF-8
|
||||||
|
|
||||||
|
ENV RUBY_VERSION 2.6.5
|
||||||
|
RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.6/ruby-${RUBY_VERSION}.tar.gz" \
|
||||||
|
| tar -xzC /tmp \
|
||||||
|
&& cd "/tmp/ruby-${RUBY_VERSION}" \
|
||||||
|
&& ./configure --disable-install-rdoc --disable-install-doc --disable-install-capi\
|
||||||
|
&& make \
|
||||||
|
&& make install \
|
||||||
|
&& cd / \
|
||||||
|
&& rm -rf "/tmp/ruby-${RUBY_VERSION}" \
|
||||||
|
&& gem install bundler --no-document --version 2.2.3
|
||||||
Loading…
Add table
Add a link
Reference in a new issue