Skip to content

Commit

Permalink
Merge pull request #112 from ourPLCC/bump-bats
Browse files Browse the repository at this point in the history
chore: upgrade bats to 1.11
  • Loading branch information
StoneyJackson authored Apr 11, 2024
2 parents 4464e21 + 10bdc0d commit 5cf80a1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ tasks:
sudo apt-get --no-install-recommends install silversearcher-ag
echo ""
echo "INSTALLING bats (for testing: https://bats-core.readthedocs.io/en/latest/index.html)"
sudo apt-get update
sudo apt-get --no-install-recommends install bats
export BATS_VERSION=v1.11.0 \
&& sudo apt-get update \
&& sudo apt-get install -y \
git \
&& sudo apt-get clean \
&& sudo rm -rf /var/lib/apt/lists/* \
&& sudo git clone https://github.com/bats-core/bats-core.git \
&& cd bats-core \
&& sudo git checkout $BATS_VERSION \
&& sudo ./install.sh /usr/local \
&& cd .. \
&& sudo rm -rf bats-core
exec bash
15 changes: 14 additions & 1 deletion containers/configurable/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,23 @@ RUN apt-get update \
build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev curl \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
git curl bash zip sudo bats \
git curl bash zip sudo \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

ARG BATS_VERSION=v1.11.0
RUN apt-get update \
&& apt-get install -y \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& git clone https://github.com/bats-core/bats-core.git \
&& cd bats-core \
&& git checkout $BATS_VERSION \
&& ./install.sh /usr/local \
&& cd .. \
&& rm -rf bats-core

RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
Expand Down

0 comments on commit 5cf80a1

Please sign in to comment.