mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
begin custom CI docker image
This commit is contained in:
parent
7d6b163771
commit
92c163736d
1 changed files with 18 additions and 0 deletions
18
.tests/DockerfileUbuntu
Normal file
18
.tests/DockerfileUbuntu
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
FROM ubuntu:bionic as base
|
||||
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
|
||||
RUN ln -s $(which python3) /usr/bin/python \
|
||||
&& python --version \
|
||||
&& $HOME/.poetry/bin/poetry install --no-ansi \
|
||||
&& $HOME/.poetry/bin/poetry run hyperglass setup -d
|
||||
EXPOSE 8001
|
||||
CMD poetry run hyperglass start
|
||||
Loading…
Add table
Reference in a new issue