mirror of
https://github.com/BretFisher/shpod.git
synced 2026-05-06 09:56:32 +00:00
Merge remote-tracking branch 'upstream/main' into mastery
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,13 +1,13 @@
|
||||
FROM alpine
|
||||
ENV \
|
||||
COMPOSE_VERSION=1.25.0 \
|
||||
HELM_VERSION=3.0.0 \
|
||||
KUBECTL_VERSION=1.16.3 \
|
||||
SHIP_VERSION=0.40.0 \
|
||||
COMPOSE_VERSION=1.26.2 \
|
||||
HELM_VERSION=3.3.0 \
|
||||
KUBECTL_VERSION=1.18.8 \
|
||||
SHIP_VERSION=0.51.3 \
|
||||
STERN_VERSION=1.11.0
|
||||
## Alpine base ##
|
||||
ENV COMPLETIONS=/usr/share/bash-completion/completions
|
||||
RUN apk add bash bash-completion curl git jq libintl ncurses tmux vim apache2-utils
|
||||
RUN apk add bash bash-completion curl git jq libintl ncurses openssl tmux vim apache2-utils
|
||||
RUN sed -i s,/bin/ash,/bin/bash, /etc/passwd
|
||||
## Ubuntu base ##
|
||||
#ENV COMPLETIONS=/etc/bash_completion.d
|
||||
|
||||
16
README.md
16
README.md
@@ -1,5 +1,10 @@
|
||||
# shpod
|
||||
|
||||
**TL,DR:** `curl https://shpod.sh | sh`
|
||||
|
||||
|
||||
## What's this?
|
||||
|
||||
`shpod` is a container image based on the Alpine distribution
|
||||
and embarking a bunch of tools useful when working with Kubernetes:
|
||||
|
||||
@@ -35,7 +40,14 @@ The [shpod.sh](shpod.sh) script will:
|
||||
To execute it:
|
||||
|
||||
```bash
|
||||
curl https://raw.githubusercontent.com/jpetazzo/shpod/master/shpod.sh | sh
|
||||
curl https://raw.githubusercontent.com/jpetazzo/shpod/main/shpod.sh | sh
|
||||
```
|
||||
|
||||
It's also available with short URLs:
|
||||
|
||||
```bash
|
||||
curl https://shpod.sh | sh
|
||||
curl https://shpod.me | sh
|
||||
```
|
||||
|
||||
If you don't like `curl|sh`, and/or if you want to execute things
|
||||
@@ -46,7 +58,7 @@ step by step, check the next section.
|
||||
|
||||
1. Deploy the shpod pod:
|
||||
```
|
||||
kubectl apply -f https://raw.githubusercontent.com/jpetazzo/shpod/master/shpod.yaml
|
||||
kubectl apply -f https://raw.githubusercontent.com/jpetazzo/shpod/main/shpod.yaml
|
||||
```
|
||||
|
||||
2. Attach to the shpod pod:
|
||||
|
||||
4
netlify.toml
Normal file
4
netlify.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[[redirects]]
|
||||
from = "/"
|
||||
to = "/shpod.sh"
|
||||
status = 200
|
||||
4
shpod.sh
4
shpod.sh
@@ -1,8 +1,10 @@
|
||||
#!/bin/sh
|
||||
# For more information about shpod, check it out on GitHub:
|
||||
# https://github.com/jpetazzo/shpod
|
||||
if [ -f shpod.yaml ]; then
|
||||
YAML=shpod.yaml
|
||||
else
|
||||
YAML=https://raw.githubusercontent.com/jpetazzo/shpod/master/shpod.yaml
|
||||
YAML=https://raw.githubusercontent.com/jpetazzo/shpod/main/shpod.yaml
|
||||
fi
|
||||
echo "Applying YAML: $YAML..."
|
||||
kubectl apply -f $YAML
|
||||
|
||||
Reference in New Issue
Block a user