Commit 6e7db844 authored by Raphael Defosseux's avatar Raphael Defosseux

Having a coordinated approach to sudo similar to core network

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent b4b2c2e9
......@@ -40,7 +40,14 @@ esac
KERNEL_VERSION=$(uname -r | cut -d '.' -f1)
KERNEL_MAJOR=$(uname -r | cut -d '.' -f2)
SUDO='sudo -E'
IS_CONTAINER=`egrep -c "docker|kubepods" /proc/self/cgroup`
if [ $IS_CONTAINER -eq 0 ]
then
SUDO='sudo -E'
else
SUDO=''
fi
###############################
## echo and family
......
......@@ -44,6 +44,9 @@ gcc-c++
#ENV GIT_SSL_NO_VERIFY=true
ENV USER=root
# In Eurecom env we need a git proxy
RUN if [[ -v EURECOM_PROXY ]]; then git config --global http.proxy http://proxy.eurecom.fr:8080; fi
RUN GIT_SSL_NO_VERIFY=true git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git /openairinterface5g -b develop
WORKDIR /openairinterface5g
......
......@@ -15,12 +15,12 @@
FROM ubuntu:16.04 AS oai-base
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
sudo \
vim-common \
git \
build-essential \
cmake \
&& rm -rf /var/lib/apt/lists/*
# In Eurecom env we need a git proxy
RUN if [[ -v EURECOM_PROXY ]]; then git config --global http.proxy http://proxy.eurecom.fr:8080; fi
RUN git clone https://gitlab.eurecom.fr/oai/openairinterface5g/ /openairinterface5g -b develop
......
......@@ -18,12 +18,12 @@ ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
sudo \
vim-common \
git \
build-essential \
cmake \
&& rm -rf /var/lib/apt/lists/*
# In Eurecom env we need a git proxy
RUN if [[ -v EURECOM_PROXY ]]; then git config --global http.proxy http://proxy.eurecom.fr:8080; fi
RUN git clone https://gitlab.eurecom.fr/oai/openairinterface5g/ /openairinterface5g -b develop
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment