forked from RoboJackets/robocup-software
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.16
37 lines (28 loc) · 1.29 KB
/
Dockerfile.16
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
31
32
33
34
35
36
37
# Use phusion/baseimage if problems arise
FROM ubuntu:16.04
MAINTAINER Jay Kamat [email protected]
# Setup apt to be happy with no console input
ENV DEBIAN_FRONTEND noninteractive
# setup apt tools and other goodies we want
RUN apt-get update --fix-missing && apt-get -y install udev locales git software-properties-common sudo tzdata && apt-get clean
# Prevent bugging us later about timezones
RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && dpkg-reconfigure --frontend noninteractive tzdata
# Use UTF-8
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
# set up user <this is for running soccer later on>
# Replace 1000 with your user / group id
# RUN export uid=1000 gid=1000 && \
# mkdir -p /home/developer && \
# echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \
# echo "developer:x:${uid}:" >> /etc/group && \
# echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \
# chmod 0440 /etc/sudoers.d/developer && \
# chown ${uid}:${gid} -R /home/developer && mkdir -p /etc/udev/rules.d/
# USER developer
# ENV HOME /home/developer
# # do everything in developers's home
# RUN mkdir -p /home/developer
COPY . ~/robocup-software
WORKDIR ~/robocup-software
RUN sudo ./util/ubuntu-setup --yes --no-submodules