fix: make build fail from ubuntu 20.04
FROM ubuntu:20.04 -> 22.04 bug #2098387 Change-Id: I22a030b424722d698fb766b7225eaa3cc519f042
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
FROM ubuntu:20.04
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ARG GIT_CONSOLE_COMMIT
|
||||
ARG GIT_BRANCH
|
||||
@@ -14,24 +14,24 @@ LABEL skyline.release_version=${RELEASE_VERSION}
|
||||
ENV LANG C.UTF-8
|
||||
ENV LC_ALL C.UTF-8
|
||||
|
||||
RUN apt-get update -y && apt-get install -y --no-install-recommends apt-utils \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
RUN apt update -y && apt install -y --no-install-recommends apt-utils \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
gcc make nginx traceroute lsof iputils-ping vim git wget curl locales-all ssl-cert \
|
||||
python3 python3-pip python3-dev python3-venv python-dev-is-python3
|
||||
|
||||
COPY ./skyline_console /opt/skyline_apiserver/skyline_console
|
||||
|
||||
RUN pip install -U /opt/skyline_apiserver/skyline_console/skyline_console.tar.gz
|
||||
RUN python -m pip install -U /opt/skyline_apiserver/skyline_console/skyline_console.tar.gz
|
||||
|
||||
COPY ./requirements.txt /opt/skyline_apiserver/requirements.txt
|
||||
|
||||
RUN pip install -r /opt/skyline_apiserver/requirements.txt -chttps://releases.openstack.org/constraints/upper/master
|
||||
RUN python -m pip install -r /opt/skyline_apiserver/requirements.txt -chttps://releases.openstack.org/constraints/upper/master
|
||||
|
||||
COPY ./ /opt/skyline_apiserver/
|
||||
|
||||
RUN git init /opt/skyline_apiserver \
|
||||
&& pip install /opt/skyline_apiserver -chttps://releases.openstack.org/constraints/upper/master \
|
||||
&& apt-get clean \
|
||||
&& python -m pip install /opt/skyline_apiserver -chttps://releases.openstack.org/constraints/upper/master \
|
||||
&& apt clean \
|
||||
&& rm -rf ~/.cache/pip \
|
||||
&& mkdir -p /etc/skyline /var/log/skyline /var/lib/skyline
|
||||
|
||||
|
Reference in New Issue
Block a user