-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Build Ruby 3.0 for old distributions (#27)"
This reverts commit c3b2573.
- Loading branch information
Showing
3 changed files
with
29 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
ARG os=ubuntu | ||
ARG version= | ||
ARG variant= | ||
ARG build_ruby= | ||
ARG system_ruby= | ||
ARG baseruby= | ||
ARG packages= | ||
|
||
FROM ${os}:${version}${variant} as assets | ||
|
@@ -47,8 +46,7 @@ RUN wget \ | |
-y | ||
|
||
FROM ${os}:${version}${variant} as compilers | ||
ARG build_ruby | ||
ARG system_ruby | ||
ARG baseruby | ||
ARG packages | ||
|
||
LABEL [email protected] | ||
|
@@ -61,16 +59,12 @@ COPY --from=assets /rust /rust | |
ENV RUSTUP_HOME=/rust/rustup | ||
ENV PATH=${PATH}:/rust/cargo/bin | ||
|
||
COPY build_ruby.sh /tmp | ||
RUN set -ex \ | ||
&& apt-get update \ | ||
&& apt-get install ${packages} \ | ||
libjemalloc-dev openssl libyaml-dev tzdata valgrind wget ca-certificates sudo docker.io \ | ||
libjemalloc-dev openssl libyaml-dev ruby tzdata valgrind sudo docker.io \ | ||
libreadline-dev libcapstone-dev \ | ||
&& apt-get build-dep ruby${system_ruby} \ | ||
&& bash -c "if [[ -n '$system_ruby' ]]; then apt-get install 'ruby${system_ruby}'; fi" \ | ||
&& bash -c "if [[ -n '$build_ruby' ]]; then /tmp/build_ruby.sh '$build_ruby'; fi" \ | ||
&& rm /tmp/build_ruby.sh | ||
&& apt-get build-dep ruby${baseruby} | ||
|
||
RUN adduser --disabled-password --gecos '' ci && adduser ci sudo | ||
|
||
|
This file was deleted.
Oops, something went wrong.