Skip to content

Commit 74191ef

Browse files
committed
add ps to container image, add set -x to entrypoint script
1 parent c26be32 commit 74191ef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM amazonlinux:2.0.20210326.0
22

3-
RUN yum -y install mdadm nvme-cli bash e2fsprogs xfsprogs
3+
RUN yum -y install mdadm nvme-cli bash e2fsprogs xfsprogs procps
44
COPY eks-nvme-ssd-provisioner.sh /usr/local/bin/
55

66
ENTRYPOINT ["eks-nvme-ssd-provisioner.sh"]

eks-nvme-ssd-provisioner.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22
set -Eeuo pipefail
3+
set -x
34

45
mapfile -t SSD_NVME_DEVICE_LIST < <(nvme list | awk '/Amazon EC2 NVMe Instance Storage/{print $1}' || true)
56
SSD_NVME_DEVICE_COUNT=${#SSD_NVME_DEVICE_LIST[@]}

0 commit comments

Comments
 (0)