Skip to content

Commit

Permalink
another attempt at fixing socat issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aantn committed Aug 17, 2021
1 parent 56eafeb commit 632f8b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# see https://pythonspeed.com/articles/alpine-docker-python/ for the reason we don't use alpine
FROM python:3.8-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends git ssh socat wget curl libcairo2 python3-dev libffi-dev libreadline7 \
&& apt-get install -y --no-install-recommends git ssh socat wget curl libcairo2 python3-dev libffi-dev socat \
&& apt-get purge -y --auto-remove \
&& rm -rf /var/lib/apt/lists/*

# install a custom version of socat with readline enabled
RUN wget https://launchpad.net/~ionel-mc/+archive/ubuntu/socat/+build/15532886/+files/socat_1.7.3.2-2ubuntu2ionelmc2~ppa1_amd64.deb
RUN dpkg -i socat_1.7.3.2-2ubuntu2ionelmc2~ppa1_amd64.deb
# disabled because of an issue with the libreadline7 dependency
#RUN wget https://launchpad.net/~ionel-mc/+archive/ubuntu/socat/+build/15532886/+files/socat_1.7.3.2-2ubuntu2ionelmc2~ppa1_amd64.deb
#RUN dpkg -i socat_1.7.3.2-2ubuntu2ionelmc2~ppa1_amd64.deb

ENV CUSTOM_PLAYBOOKS_ROOT=/etc/robusta/config
ENV ENV_TYPE=DEV
Expand Down
5 changes: 4 additions & 1 deletion src/robusta/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ def examples(
@app.command()
def playground():
"""open a python playground - useful when writing playbooks"""
exec_in_robusta_runner("socat readline unix-connect:/tmp/manhole-1")
typer.echo(
"this command is temporarily disabled due to recent changes to python:3.8-slim"
)
# exec_in_robusta_runner("socat readline unix-connect:/tmp/manhole-1")


@app.command()
Expand Down

0 comments on commit 632f8b4

Please sign in to comment.