From f45b14983288e27100f5b25fbc4725d6b08d8d8d Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sat, 15 Feb 2020 17:19:08 -0700 Subject: [PATCH] add node & yarn to ci testing --- .tests/DockerfileUbuntu | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.tests/DockerfileUbuntu b/.tests/DockerfileUbuntu index 23e2990..6cd0b31 100644 --- a/.tests/DockerfileUbuntu +++ b/.tests/DockerfileUbuntu @@ -1,21 +1,25 @@ FROM ubuntu:bionic as base -ENV LC_ALL=C.UTF-8 -ENV LANG=C.UTF-8 -RUN apt-get update && apt-get install -y \ - git \ - curl \ - python3 python3-pip python3-venv redis-server \ +# ENV LC_ALL=C.UTF-8 +# ENV LANG=C.UTF-8 +WORKDIR /tmp +RUN 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 git curl net-tools python3 python3-pip python3-venv redis-server nodejs yarn \ && 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" + && git clone --single-branch --branch v1.0.0 --depth 1 https://github.com/checktheroads/hyperglass \ + && ln -s $(which python3) /usr/bin/python \ + && echo "Python Version: $(python --version)" \ + && echo "NodeJS Version: $(node --version)" \ + && echo "Yarn Version: $(yarn --version)" +ENV PATH=$PATH:$HOME/.poetry/bin FROM base -WORKDIR ./hyperglass -ENV python=python3 +WORKDIR $HOME RUN bash -c 'BASH_ENV=/etc/profile exec bash' \ - && ln -s $(which python3) /usr/bin/python \ - && python --version \ && $HOME/.poetry/bin/poetry install --no-ansi \ && $HOME/.poetry/bin/poetry run hyperglass setup -d + && $HOME/.poetry/bin/poetry run hyperglass build-ui EXPOSE 8001 CMD poetry run hyperglass start