Skip to content

Commit

Permalink
Add cgroup-scripts to devcontainer and jenkins-agent-dind (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs authored Nov 19, 2024
1 parent f39cf0a commit c361932
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions devcontainer/scripts/prepare_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,17 @@ ${CURL} "https://github.com/felipecrs/docker-on-docker-shim/raw/v${DOND_SHIM_VER
-o /usr/local/bin/dond
chmod +x /usr/local/bin/dond

# install cgroup-scripts
# renovate: datasource=github-releases depName=felipecrs/cgroup-scripts
CGROUP_SCRIPTS_VERSION="0.1.0"
mkdir -p /opt/cgroup-scripts
${CURL} "https://github.com/felipecrs/cgroup-scripts/raw/v${CGROUP_SCRIPTS_VERSION}/get_cpus.sh" \
-o /opt/cgroup-scripts/get_cpus.sh
chmod +x /opt/cgroup-scripts/get_cpus.sh
${CURL} "https://github.com/felipecrs/cgroup-scripts/raw/v${CGROUP_SCRIPTS_VERSION}/get_memory.sh" \
-o /opt/cgroup-scripts/get_memory.sh
chmod +x /opt/cgroup-scripts/get_memory.sh

# setup oh my bash, useful when debugging the container
${CURL} https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh |
bash -s -- --prefix=/opt/oh-my-bash --unattended
Expand Down

0 comments on commit c361932

Please sign in to comment.