Skip to content

Commit

Permalink
Merge pull request #23 from redhat-cop/make-update
Browse files Browse the repository at this point in the history
Include make in standard developer tools and ensure all packages are …
  • Loading branch information
cgruver authored Aug 2, 2024
2 parents 361e6dc + 7948d8a commit bfa83d1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
16 changes: 9 additions & 7 deletions modules/developer-base/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,34 @@ version: '17'
packages:
manager_flags: "--disableplugin=subscription-manager --setopt=tsflags=nodocs --setopt=install_weak_deps=0"
install:
- buildah
- compat-openssl11
- diffutils
- fuse-overlayfs
- gcc
- git
- iproute
- jq
- less
- libbrotli
- lsof
- make
- man-db
- nano
- procps-ng
- perl-Digest-SHA
- net-tools
- openssh-clients
- podman-docker
- procps-ng
- perl-Digest-SHA
- rsync
- skopeo
- slirp4netns
- socat
- sudo
- time
- vim-enhanced
- wget
- zip
- buildah
- skopeo
- podman-docker
- fuse-overlayfs
- slirp4netns

artifacts:
- name: entrypoint.sh
Expand Down
16 changes: 16 additions & 0 deletions modules/developer-base/setup-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,19 @@ chmod -R g=u /etc/passwd /etc/group /etc/subuid /etc/subgid /home ${WORK_DIR}
# Setup for dynamic oc & kubectl
ln -s /projects/bin/oc /usr/local/bin/oc;
ln -s /projects/bin/kubectl /usr/local/bin/kubectl;

# Detect package manager and make sure packages are up to date
pkg_mgr=""
if command -v dnf &> /dev/null
then
pkg_mgr=dnf
elif command -v microdnf &> /dev/null
then
pkg_mgr=microdnf
else
echo "No compatible package manager could not be found"
exit 1
fi

$pkg_mgr update -y
$pkg_mgr clean -y all

0 comments on commit bfa83d1

Please sign in to comment.