Zeebrow / quickhost

Make a publicly available server, quickly
GNU General Public License v3.0
0 stars 0 forks source link

python versions 3.7, 3.6 fail #14

Open Zeebrow opened 2 years ago

Zeebrow commented 2 years ago

This should do the trick:

SNAKE_VER=3.7

cd $(mktemp -d)
git clone https://github.com/Zeebrow/quickhost.git
git clone https://github.com/Zeebrow/quickhost-plugins.git
cat <<EOF > Dockerfile
FROM python:$SNAKE_VER
COPY ./quickhost /app/quickhost
COPY ./quickhost-plugins/plugins/aws /app/aws
WORKDIR /app
RUN pip install --upgrade pip && \
  pip install -e quickhost && \
  pip install -e aws
ENTRYPOINT ["main.py"]
EOF
if [[ $(groups) =~ docker ]]; then
  docker build -t quickhost-test . && docker run quickhost-test make --aws asdf
else
  sudo docker build -t quickhost-test . && sudo docker run quickhost-test make --aws asdf