Skip to content

Commit

Permalink
apt: Install Rust to build YJIT of Ruby
Browse files Browse the repository at this point in the history
Signed-off-by: Takuro Ashie <ashie@clear-code.com>
  • Loading branch information
ashie committed Jan 17, 2023
1 parent 6c37458 commit ee80f48
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion td-agent/apt/debian-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ RUN \
sed -i'' -e 's,#precedence ::ffff:0:0/96 100,precedence ::ffff:0:0/96 100,' /etc/gai.conf && \
# enable multiplatform feature
gem install --no-document --install-dir /usr/share/rubygems-integration/all bundler builder && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
3 changes: 2 additions & 1 deletion td-agent/apt/debian-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ RUN \
# enable multiplatform feature
gem install --no-document --install-dir /usr/share/rubygems-integration/all bundler --version 2.3.26 && \
gem install --no-document --install-dir /usr/share/rubygems-integration/all builder && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
3 changes: 2 additions & 1 deletion td-agent/apt/ubuntu-bionic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ RUN \
# enable multiplatform feature
gem install --no-document bundler --version 2.3.26 && \
gem install --no-document builder && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
3 changes: 2 additions & 1 deletion td-agent/apt/ubuntu-focal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ RUN \
sed -i'' -e 's,#precedence ::ffff:0:0/96 100,precedence ::ffff:0:0/96 100,' /etc/gai.conf && \
# enable multiplatform feature
gem install --no-document --install-dir /usr/share/rubygems-integration/all bundler builder && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
3 changes: 2 additions & 1 deletion td-agent/apt/ubuntu-jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ RUN \
sed -i'' -e 's,#precedence ::ffff:0:0/96 100,precedence ::ffff:0:0/96 100,' /etc/gai.conf && \
# enable multiplatform feature
gem install --no-document --install-dir /usr/share/rubygems-integration/all bundler builder && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
2 changes: 1 addition & 1 deletion td-agent/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ override_dh_builddeb:

override_dh_auto_install:
rake build:deb_config TD_AGENT_STAGING_PATH="$(CURDIR)/debian/tmp" NO_VAR_RUN=1
rake build:all TD_AGENT_STAGING_PATH="$(CURDIR)/debian/tmp"
rake build:all TD_AGENT_STAGING_PATH="$(CURDIR)/debian/tmp" PATH="$(HOME)/.cargo/bin:$(PATH)"
dh_installman

override_dh_auto_clean:
Expand Down

0 comments on commit ee80f48

Please sign in to comment.