1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
checktheroads-hyperglass/.tests/DockerfileUbuntu
checktheroads d99d584fde fix ci stages
2020-02-21 23:49:51 -07:00

28 lines
1.1 KiB
Plaintext

FROM ubuntu:bionic as base
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
WORKDIR /tmp
RUN apt-get update \
&& apt-get install -y git curl net-tools \
&& curl -sL https://deb.nodesource.com/setup_13.x | bash - \
&& 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 \
&& apt-get install -y python3 python3-pip python3-venv redis-server nodejs yarn \
&& curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 \
&& python3 --version \
&& echo "NodeJS $(node --version)" \
&& echo "Yarn $(yarn --version)"
# && git clone --single-branch --branch v1.0.0 --depth 1 https://github.com/checktheroads/hyperglass
COPY ./ /tmp/hyperglass
ENV PATH=$PATH:/root/.poetry/bin
# ENV BASH_ENV=/etc/profile exec bash
FROM base as install
WORKDIR /tmp/hyperglass
RUN poetry install --no-ansi
FROM install as setup
WORKDIR /tmp/hyperglass
COPY .tests/dockersetup.sh /tmp/dockersetup.sh
RUN ls -lsah /tmp