Skip to content

Commit 47cc2d4

Browse files
committed
Add support for Ruby via asdf
Related readthedocs/readthedocs.org#10346
1 parent 0fc3eca commit 47cc2d4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Read the Docs - Environment base
22
FROM ubuntu:22.04
33
LABEL mantainer="Read the Docs <[email protected]>"
4-
LABEL version="ubuntu-22.04-2023.03.09"
4+
LABEL version="ubuntu-22.04-2024.01.29"
55

66
ENV DEBIAN_FRONTEND noninteractive
77
ENV LANG C.UTF-8
@@ -112,7 +112,7 @@ USER docs
112112
WORKDIR /home/docs
113113

114114
# Install asdf
115-
RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --depth 1 --branch v0.11.2
115+
RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --depth 1 --branch v0.14.0
116116
RUN echo ". /home/docs/.asdf/asdf.sh" >> /home/docs/.bashrc
117117
RUN echo ". /home/docs/.asdf/completions/asdf.bash" >> /home/docs/.bashrc
118118

@@ -124,11 +124,13 @@ RUN asdf plugin add python
124124
RUN asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
125125
RUN asdf plugin add rust https://github.com/code-lever/asdf-rust.git
126126
RUN asdf plugin add golang https://github.com/kennyp/asdf-golang.git
127+
RUN asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
127128

128129
# Create directories for languages installations
129130
RUN mkdir -p /home/docs/.asdf/installs/python && \
130131
mkdir -p /home/docs/.asdf/installs/nodejs && \
131132
mkdir -p /home/docs/.asdf/installs/rust && \
132-
mkdir -p /home/docs/.asdf/installs/golang
133+
mkdir -p /home/docs/.asdf/installs/golang && \
134+
mkdir -p /home/docs/.asdf/installs/ruby
133135

134136
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)