Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

feat: add asdf version manager #816

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,29 @@ RUN /bin/bash -c "source ~/.rvm/scripts/rvm && \
ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
USER root


################################################################################
#
# ASDF Version Manager
# https://asdf-vm.com/
#
################################################################################

USER buildbot

RUN git clone https://github.com/asdf-vm/asdf.git /opt/buildhome/.asdf --branch v0.10.2 && \
/bin/bash -c ". /opt/buildhome/.asdf/asdf.sh"

ENV PATH "$PATH:/opt/buildhome/.asdf/bin"


################################################################################
#
# Node.js
#
################################################################################

USER root

RUN curl -o- -L https://yarnpkg.com/install.sh > /usr/local/bin/yarn-installer.sh

Expand Down
5 changes: 5 additions & 0 deletions focal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ fileExistenceTests:
gid: 2500 # buildbot

commandTests:
- name: "Asdf Version Manager"
command: "asdf"
args: ["--version"]
expectedOutput: ["v0.10.2-7e7a1fa"]

- name: "zstd compression library"
command: "zstd"
args: ["--version"]
Expand Down