Code Review
/
ric-plt
/
sdl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Increment version number
[ric-plt/sdl.git]
/
ci
/
Dockerfile
diff --git
a/ci/Dockerfile
b/ci/Dockerfile
index
737845c
..
b63f518
100644
(file)
--- a/
ci/Dockerfile
+++ b/
ci/Dockerfile
@@
-14,20
+14,45
@@
# limitations under the License.
#
# limitations under the License.
#
-FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu18-c-go:2-u18.04-nng
+#
+# This source code is part of the near-RT RIC (RAN Intelligent Controller)
+# platform project (RICP).
+#
-# Install build tools and SDL dependencies:
+FROM ubuntu:18.04
+
+# Install building tools and SDL dependencies:
RUN apt-get update && \
RUN apt-get update && \
- apt-get install -y libhiredis-dev && \
+ apt-get install -y \
+ build-essential \
+ automake \
+ libtool \
+ pkg-config \
+ libgtest-dev \
+ rpm \
+ devscripts \
+ gawk \
+ debhelper \
+ autoconf-archive \
+ libboost-all-dev \
+ libhiredis-dev && \
apt-get clean
# Copy sourcefiles:
RUN mkdir -p /tmp/build
COPY . /tmp/build
apt-get clean
# Copy sourcefiles:
RUN mkdir -p /tmp/build
COPY . /tmp/build
+WORKDIR /tmp/build
# Compile and run unit tests:
# Compile and run unit tests:
-WORKDIR /tmp/build
RUN ./autogen.sh && \
./configure && \
make all && \
make test
RUN ./autogen.sh && \
./configure && \
make all && \
make test
+
+# Build packages:
+RUN make clean && \
+ make distclean && \
+ ./package.sh --skip-test debian rpm
+
+RUN cp /tmp/build/ci/publish.sh /bin
+ENTRYPOINT ["/bin/publish.sh"]