From 86ca4807b42be7deb81a8bd2989c817bc2354a43 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Fri, 26 Mar 2021 10:31:24 +0700 Subject: [PATCH] Updated image build --- Makefile | 3 +-- src/post-install.sh | 10 ++++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ef40244..09c31c1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,4 @@ -DOCKER_IMAGE_NAME = calpine-os-linux -DOCKER_IMAGE_VERSION = 3.13 +DOCKER_IMAGE_NAME = cubetiq/calpine-os-linux:3.13 DOCKER_IMAGE_SIZE = $(shell docker images --format "{{.Repository}} {{.Size}}" | grep $(DOCKER_IMAGE_NAME) | cut -d\ -f2) build: diff --git a/src/post-install.sh b/src/post-install.sh index be25f11..6f3f1b3 100755 --- a/src/post-install.sh +++ b/src/post-install.sh @@ -14,5 +14,11 @@ update-ca-certificates /sbin/apk update /sbin/apk upgrade -# Add a standard user. -adduser -D -u1000 cubetiq \ No newline at end of file +# Allow run sudo +/sbin/apk add sudo + +# Add wheel group +echo '%wheel ALL=(ALL) ALL' > /etc/sudoers.d/wheel + +# Add an administrator user. +adduser -D -u1000 cubetiq wheel \ No newline at end of file