Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM ubuntu:20.04


# Installing Python 2, because Grumpy is not ported to Python 3 yet

# Go for run-time pulls tzdata, which asks interactive questions
# https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
curl \
gcc \
golang \
make \
python2-dev \
&& rm -rf /var/lib/apt/lists/*
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python2 get-pip.py


COPY . /app
WORKDIR /app


# Install tools in editable mode. Some `grumpy` commands need run-time, and
# run-time needs at least `grumpy run` to be built.
RUN cd grumpy-tools-src && pip install --editable .

# Install run-time in non-editable mode
RUN cd grumpy-runtime-src && pip install .