-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
Description
Describe the bug
When trying to run the pdk
command, it fails no matter what subcommand/arg/none is given.
When running pdk
, it fails with the following error:
$ apt list --installed | grep pdk
pdk/noble,now 3.4.0.1-1noble amd64 [installed]
$ pdk
/opt/puppetlabs/pdk/private/ruby/3.2.5/bin/ruby: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /opt/puppetlabs/pdk/private/ruby/3.2.5/lib/libruby.so.3.2)
/opt/puppetlabs/pdk/private/ruby/3.2.5/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /opt/puppetlabs/pdk/private/ruby/3.2.5/lib/libruby.so.3.2)
To Reproduce
This is from within a Docker container, and is a fresh install of pdk.
The Docker container is used within VS Code's Dev Containers to setup the container env.
The Dockerfile looks like below:
FROM ruby:3.2-bookworm
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
# Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131
&& apt-get purge -y imagemagick imagemagick-6-common
# Install needed packages
RUN apt-get update \
&& apt-get -y install --no-install-recommends \
wget \
jq \
ruby-dev
# Make sure the puppet release package (repo) is installed.
# needed so we can install puppet's pdk
RUN echo "deb [trusted=yes] http://apt.puppet.com noble puppet8" > /etc/apt/sources.list.d/puppet8-release.list
# Make sure the openvox release package (repo) is installed.
# This is the opensource replacement of puppet-agent.
RUN wget https://s3.osuosl.org/openvox-apt/openvox8-release-debian12.deb \
&& dpkg -i openvox8-release-debian12.deb \
&& rm openvox8-release-debian12.deb \
&& apt-get update
# Make sure we have openvox agent and the development kit installed.
RUN apt-get update \
&& apt-get -y install --no-install-recommends \
openvox-agent \
pdk
# Install shellcheck
RUN scversion="stable" \
&& wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv \
&& cp "shellcheck-${scversion}/shellcheck" /usr/bin/ \
&& shellcheck --version
The devcontainer.json looks like:
Expected behavior
The tool to be able to run as expected.
Additional context
- Your PDK installation method (native packages or via Rubygems)
- It's installed by adding the repo from apt.puppet.com/puppet8-release.deb
- Then doing an
apt update && apt install pdk
- Your PDK version (
pdk --version
)$ apt list --installed | grep pdk -> pdk/noble,now 3.4.0.1-1noble amd64 [installed]
- Your operating system / platform
- Debian12, Debian11 (using the ruby:3.2-* docker images).