mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +02:00
coreos-base/oem-gce: add Python aliases
GCE recommends images to ship Python in them. Instead of shipping the binaries inside our vendor partition, install an alias that will download the latest official container, for both python2 and python3.
This commit is contained in:
parent
db3bd0f9f8
commit
38935a5e75
@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
alias gcloud="(docker images google/cloud-sdk || docker pull google/cloud-sdk) > /dev/null;docker run -ti --rm --net=host -v $HOME/.config:/root/.config -v /var/run/docker.sock:/var/run/docker.sock google/cloud-sdk gcloud"
|
||||
alias gsutil="(docker images google/cloud-sdk || docker pull google/cloud-sdk) > /dev/null;docker run -ti --rm --net=host -v $HOME/.config:/root/.config google/cloud-sdk gsutil"
|
||||
alias python="(docker images python:2-slim || docker pull python:2-slim) > /dev/null;docker run -ti --rm --net=host -v $HOME/.config:/root/.config -v "$PWD":/usr/src/pyapp -w /usr/src/pyapp python:2-slim python"
|
||||
alias python3="(docker images python:3-slim || docker pull python:3-slim) > /dev/null;docker run -ti --rm --net=host -v $HOME/.config:/root/.config -v "$PWD":/usr/src/pyapp -w /usr/src/pyapp python:3-slim python"
|
||||
|
Loading…
x
Reference in New Issue
Block a user