File tree 1 file changed +25
-0
lines changed
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM sensu/sensu-ruby-runtime-2.4.4-centos8:latest as builder
2
+ ARG ASSET_GEM
3
+ ARG GIT_REF
4
+ ARG GIT_REPO
5
+ ARG GREP_EXCLUDE='(ld.so|ld-linux-x86-64.so|libBrokenLocale.so|libSegFault.so|libanl.so|libc.so|libdl.so|libm.so|libmvec.so|libnss_compat.so|libnss_dns.so|libnss_files.so|libpthread.so|libresolv.so|librt.so|libthread_db.so|libutil.so|vdso.so)'
6
+ ARG RUBY_VERSION=2.4.4
7
+
8
+ WORKDIR /assets/build/
9
+ RUN yum install -y git
10
+ RUN yum install -y https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
11
+ RUN yum config-manager --disable pgdg*
12
+ RUN yum config-manager --enable pgdg95
13
+ RUN yum list "postgresql95*"
14
+ RUN yum install --disablerepo=appstream -y postgresql95 postgresql95-libs postgresql95-devel
15
+ ENV CONFIGURE_ARGS="with-pg-config=/usr/pgsql-9.5/bin/pg_config"
16
+
17
+ RUN \
18
+ gem install --no-ri --no-doc bundler && \
19
+ printf "source 'https://rubygems.org'\n\ngem \"%s\", :git => \"%s\" , :ref => \"%s\"\n" ${ASSET_GEM} ${GIT_REPO} ${GIT_REF}| tee Gemfile
20
+ RUN bundle install --path=lib/ --binstubs=bin/ --standalone
21
+ RUN tar -czf /assets/${ASSET_GEM}.tar.gz -C /assets/build/ .
22
+
23
+ FROM scratch
24
+ ARG ASSET_GEM
25
+ COPY --from=builder /assets/${ASSET_GEM}.tar.gz /
You can’t perform that action at this time.
0 commit comments