2 #==================================================================================
3 # Copyright (c) 2018-2019 AT&T Intellectual Property.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #==================================================================================
19 # Mnemonic: mcl_dev.df
20 # Abstract: This is a docker build file which creates an image that can be used
21 # for interactive development of the MC listener and related applications.
22 # Building should be as simple as:
23 # docker build -f mcl_dev.df -t mcl_dev:latest .
25 # The image contains the NNG and RMR libraries and headers needed. The
26 # MC listener source is NOT placed into the image. Rather the source should
27 # be mounted as a volume when the container is created:
29 # docker run --rm -it -v $PWD:/playpen/src -u <uid>:<gid> sh
30 # (assuming that the source is in the current working directory).
31 # Once the container is running, vi, make and git are all available.
32 # Date: 22 August 2019
33 # Author: E. Scott Daniels
34 #---------------------------------------------------------------------------------------
39 RUN apt-get update && apt-get install -y cmake gcc make vim git
40 RUN apt-get install -y cmake g++ wget
42 RUN mkdir /playpen/bin
43 COPY build_dev_env.sh /playpen/bin/
44 RUN bash /playpen/bin/build_dev_env.sh
46 ENV LD_LIBRARY_PATH=/usr/local/lib;/usr/local/lib64
47 ENV C_INCLUDE_PATH=/usr/local/include