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

request: gettext-base, kubectl, doctl #995

Open
mautematico opened this issue Dec 19, 2022 · 0 comments
Open

request: gettext-base, kubectl, doctl #995

mautematico opened this issue Dec 19, 2022 · 0 comments

Comments

@mautematico
Copy link

mautematico commented Dec 19, 2022

Is your feature request related to a problem? Please describe

I've learned about custom dockerfile: https://www.gitpod.io/docs/configure/workspaces/workspace-image#configure-a-custom-dockerfile
and already using it to extend https://hub.docker.com/r/gitpod/workspace-full to install

  • kubectl from apt
  • doctl from latest bin release
  • gettext-base from apt
  • kubectl autocomplete

however, each run takes several minutes to complete, while building (unchanged) custom dockerfile

Describe the behaviour you'd like

I think it would be useful for a portion of users to have such tools on the full image to avoid having to install them on every run or extending the image.

Describe alternatives you've considered

  • init: does not preserve installed packages given those are installed outside of /workspace
  • command: works just fine; it is not so fast and also not too slow, but could be faster.
  • [edit] using a public registry for my custom image seems like an acceptable alternative solution

Additional context

a lot of opinions here but might be useful as a PR starter:

FROM gitpod/workspace-full:latest

RUN sudo mkdir -p /etc/apt/keyrings/
RUN sudo curl -fsSLo /etc/apt/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
RUN sudo install-packages gettext-base kubectl
RUN kubectl completion bash | sudo tee /etc/bash_completion.d/kubectl > /dev/null
RUN wget -nv https://github.com/digitalocean/doctl/releases/download/v1.86.0/doctl-1.86.0-linux-amd64.tar.gz && \
tar xf doctl-1.86.0-linux-amd64.tar.gz && \
sudo install -o root -g root -m 0755 doctl /usr/local/bin/doctl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant