Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update alpine image | added debian image #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yambottle
Copy link

No description provided.

Copy link
Contributor

@guzman-raphael guzman-raphael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yambottle! Have a few remaining questions for this one.

apk update && \
# export functions, for download, json parsing, ssh keygen, api keygen
apk add --no-cache bash curl jq openssh openssl && \
apk add --no-cache bash curl jq openssh openssl util-linux bind-tools && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see bind-tools useful for using dig in debugging DNS. What's specifically useful for debugging from util-linux?

@@ -2,16 +2,15 @@ FROM python:3.8-alpine3.12 as k8s_build
ARG KOPS_VERSION
ARG HELM_VERSION
RUN \
mkdir /main && \
set -x; > /etc/inittab && mkdir /main && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set -x can be useful to display the actual command that is running. A bit unclear on what is the purpose for removing /etc/inittab though. 🤔

context: ../..
dockerfile: ./dist/alpine/Dockerfile
args:
- KOPS_VERSION
- HELM_VERSION
image: vathes/k8s-admin:kops${KOPS_VERSION}-helm${HELM_VERSION}-alpine
command:
image: registry.vathes.com/vathes/k8s-admin:kops${KOPS_VERSION}-helm${HELM_VERSION}-alpine
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this image is public we published it to Docker Hub. We technically could get away with free storage on this one. 😅

echo "$$0 running..."; echo "PATH: '$$PATH'"; tail -f /dev/null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "$$0 running..."; echo "PATH: '$$PATH'"; tail -f /dev/null;
- |
echo "$$0 running..."
echo "PATH: '$$PATH'"
tail -f /dev/null

build:
# Uncomment to enable local build
context: ../..
dockerfile: ./dist/alpine/Dockerfile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dockerfile: ./dist/alpine/Dockerfile
dockerfile: ./dist/debian/Dockerfile

Comment on lines +11 to +16
image: registry.vathes.com/vathes/k8s-admin:kops${KOPS_VERSION}-helm${HELM_VERSION}-debian
command:
- bash
- -c
- >
echo "$$0 running..."; echo "PATH: '$$PATH'"; tail -f /dev/null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
image: registry.vathes.com/vathes/k8s-admin:kops${KOPS_VERSION}-helm${HELM_VERSION}-debian
command:
- bash
- -c
- >
echo "$$0 running..."; echo "PATH: '$$PATH'"; tail -f /dev/null;
image: vathes/k8s-admin:kops${KOPS_VERSION}-helm${HELM_VERSION}-debian
command:
- bash
- -c
- |
echo "$$0 running..."
echo "PATH: '$$PATH'"
tail -f /dev/null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants