tests: ensure pack binary is installed correctly when running tests in a devcontainer

This commit is contained in:
Jose Diaz-Gonzalez
2024-09-28 22:30:09 -04:00
parent 5857a937d5
commit 03102cd681
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ FROM dokku/dokku:latest
RUN apt-get update
RUN apt-get install --no-install-recommends -y build-essential file nano && \
apt-get install --no-install-recommends -y help2man shellcheck uuid-runtime wget xmlstarlet && \
apt-get install --no-install-recommends -y software-properties-common help2man shellcheck uuid-runtime wget xmlstarlet && \
apt-get clean autoclean && \
apt-get autoremove --yes && \
rm -rf /var/lib/apt/lists/*

View File

@@ -637,7 +637,7 @@ convert_to_dockerfile() {
}
install_pack() {
if ! command -v "pack" &>/dev/null; then
if [[ ! -x /usr/bin/pack ]]; then
add-apt-repository --yes ppa:cncf-buildpacks/pack-cli
apt-get update
apt-get --yes install pack-cli