1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
checktheroads-hyperglass/.tests/DockerfileUbuntu

22 lines
747 B
Plaintext
Raw Normal View History

2020-02-15 00:21:19 -07:00
FROM ubuntu:bionic as base
2020-02-15 12:18:03 -07:00
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
2020-02-15 00:21:19 -07:00
RUN apt-get update && apt-get install -y \
git \
curl \
python3 python3-pip python3-venv redis-server \
&& curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 \
&& git clone --single-branch --branch v1.0.0 --depth 1 https://github.com/checktheroads/hyperglass
ENV PATH="$PATH:$HOME/.poetry/bin"
FROM base
WORKDIR ./hyperglass
ENV python=python3
2020-02-15 12:18:03 -07:00
RUN bash -c 'BASH_ENV=/etc/profile exec bash' \
&& ln -s $(which python3) /usr/bin/python \
2020-02-15 00:21:19 -07:00
&& python --version \
&& $HOME/.poetry/bin/poetry install --no-ansi \
&& $HOME/.poetry/bin/poetry run hyperglass setup -d
EXPOSE 8001
CMD poetry run hyperglass start