Skip to content

Commit

Permalink
Restore nanolayer in openstack client
Browse files Browse the repository at this point in the history
  • Loading branch information
framctr authored Dec 22, 2023
1 parent 99da393 commit 6b79100
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/openstack-client/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#!/bin/bash
set -e

. ./library_scripts.sh

# nanolayer is a cli utility which keeps container layers as small as possible
# source code: https://github.com/devcontainers-contrib/nanolayer
# `ensure_nanolayer` is a bash function that will find any existing nanolayer installations,
# and if missing - will download a temporary copy that automatically get deleted at the end
# of the script
ensure_nanolayer nanolayer_location "v0.5.0"

install_package() {
local package_name=$(echo "$1" | tr '[:upper:]' '[:lower:]') # convert to lowercase
local package_version="$2"
Expand All @@ -19,7 +28,7 @@ install_package() {
# ---------------------
# Installation

apt-get update && apt-get install -y pip python3-dev gcc
$nanolayer_location install apt-get pip,python3-dev,gcc

# Install primary client
install_package python-openstack "$VERSION"
Expand Down

0 comments on commit 6b79100

Please sign in to comment.