-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from centos:centos6
MAINTAINER Ryan Bauman <[email protected]>
#add EPEL repo
RUN yum install -y epel-release && yum clean all
#add REDHAWK repo and install redhawk
COPY redhawk.repo /etc/yum.repos.d/
RUN yum install -y redhawk-devel redhawk-debuginfo redhawk-sdrroot-dev-mgr redhawk-sdrroot-dom-mgr redhawk-sdrroot-dom-profile redhawk-codegen redhawk-basic-components redhawk bulkioInterfaces burstioInterfaces frontendInterfaces GPP GPP-profile omniORB-utils omniORB-servers omniEvents-server omniEvents-bootscripts git vim-enhanced which wget sudo PackageKit-gtk-module libcanberra-gtk2 && yum clean all
#configure omniORB.cfg; Note: if linking another container, replace IP address
#e.g. sed -i "s/127.0.0.1/$OMNIORB_PORT_2809_TCP_ADDR/" /etc/omniORB.cfg
RUN echo "InitRef = EventService=corbaloc::127.0.0.1:11169/omniEvents" >> /etc/omniORB.cfg
#configure default user
RUN mkdir -p /home/redhawk
ADD bashrc /home/redhawk/.bashrc
ADD bash_profile /home/redhawk/.bash_profile
RUN chown -R redhawk. /home/redhawk
RUN usermod -a -G wheel --shell /bin/bash redhawk
#allow sudo access sans password
RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
ENV HOME /home/redhawk
WORKDIR /home/redhawk
USER redhawk
EXPOSE 2809
EXPOSE 11169
CMD ["/bin/bash", "-l"]