2018-09-05 11:12:13 +00:00
|
|
|
ARG USER
|
2020-11-18 16:52:56 +00:00
|
|
|
ARG DISTRO
|
|
|
|
FROM $USER/$DISTRO-build
|
|
|
|
# Arguments used after FROM must be specified again
|
|
|
|
ARG DISTRO
|
2018-04-07 18:14:09 +00:00
|
|
|
ARG OSMO_BB_BRANCH="master"
|
2018-03-01 14:05:15 +00:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
2021-12-02 20:39:21 +00:00
|
|
|
libosmocore-dev && \
|
2018-03-01 14:05:15 +00:00
|
|
|
apt-get clean
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
2023-01-06 16:01:40 +00:00
|
|
|
RUN git clone https://gerrit.osmocom.org/osmocom-bb.git
|
|
|
|
ADD https://gerrit.osmocom.org/plugins/gitiles/osmocom-bb/+/$OSMO_BB_BRANCH?format=TEXT /tmp/commit-osmocom-bb
|
2018-03-01 14:05:15 +00:00
|
|
|
|
|
|
|
RUN cd osmocom-bb && \
|
2019-05-22 07:08:25 +00:00
|
|
|
git fetch && git checkout $OSMO_BB_BRANCH && \
|
|
|
|
(git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_BB_BRANCH || exit 1); \
|
2019-03-29 13:12:28 +00:00
|
|
|
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD
|
2018-03-01 14:05:15 +00:00
|
|
|
|
|
|
|
RUN cd osmocom-bb/src/host/trxcon && \
|
|
|
|
autoreconf -fi && \
|
|
|
|
./configure && \
|
2020-07-12 19:51:58 +00:00
|
|
|
make "-j$(nproc)" install
|
2018-03-01 14:05:15 +00:00
|
|
|
|
2019-05-29 16:55:20 +00:00
|
|
|
RUN cd osmocom-bb/src/host/virt_phy && \
|
|
|
|
autoreconf -fi && \
|
|
|
|
./configure && \
|
2020-07-12 19:51:58 +00:00
|
|
|
make "-j$(nproc)" install
|
2019-05-29 16:55:20 +00:00
|
|
|
|
2018-03-01 14:05:15 +00:00
|
|
|
RUN mkdir -p /data/unix
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
#CMD ["/usr/local/sbin/virtphy","-s","/data/osmocom_l2"]
|