2020-02-15 00:21:19 -07:00
|
|
|
FROM ubuntu:bionic as base
|
2020-02-15 20:02:47 -07:00
|
|
|
ENV LC_ALL=C.UTF-8
|
|
|
|
ENV LANG=C.UTF-8
|
2020-02-15 17:19:08 -07:00
|
|
|
WORKDIR /tmp
|
2020-02-15 20:02:47 -07:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y git curl net-tools \
|
|
|
|
&& curl -sL https://deb.nodesource.com/setup_13.x | bash - \
|
2020-02-15 17:19:08 -07:00
|
|
|
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
|
|
|
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
|
|
|
|
&& apt-get update \
|
2020-02-15 20:02:47 -07:00
|
|
|
&& apt-get install -y python3 python3-pip python3-venv redis-server nodejs yarn \
|
2020-02-15 00:21:19 -07:00
|
|
|
&& curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 \
|
2020-02-15 20:02:47 -07:00
|
|
|
&& python3 --version \
|
|
|
|
&& echo "NodeJS $(node --version)" \
|
2020-02-21 22:15:28 -07:00
|
|
|
&& echo "Yarn $(yarn --version)"
|
|
|
|
# && git clone --single-branch --branch v1.0.0 --depth 1 https://github.com/checktheroads/hyperglass
|
|
|
|
COPY ./ /tmp/hyperglass
|
2020-02-15 20:02:47 -07:00
|
|
|
ENV PATH=$PATH:/root/.poetry/bin
|
|
|
|
# ENV BASH_ENV=/etc/profile exec bash
|
2020-02-15 00:21:19 -07:00
|
|
|
|
2020-02-15 20:02:47 -07:00
|
|
|
FROM base as install
|
2020-02-21 22:15:28 -07:00
|
|
|
WORKDIR /tmp/hyperglass
|
2020-02-15 20:02:47 -07:00
|
|
|
RUN poetry install --no-ansi
|
2020-02-21 23:49:51 -07:00
|
|
|
|
|
|
|
FROM install as setup
|
|
|
|
WORKDIR /tmp/hyperglass
|
2020-02-21 23:08:54 -07:00
|
|
|
COPY .tests/dockersetup.sh /tmp/dockersetup.sh
|
2020-02-21 23:49:51 -07:00
|
|
|
RUN ls -lsah /tmp
|