summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rwxr-xr-xDockerfile51
1 files changed, 51 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100755
index 0000000..a075d2e
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,51 @@
+FROM ubuntu:16.04
+
+MAINTAINER Zhang Yang <y0169.zhang@samsung.com>, Jun Wang <junbill.wang@samsung.com>
+
+ADD start_gbs /usr/bin/start_gbs
+
+RUN set -xe \
+
+ && apt-get update \
+
+ && apt-get install -y vim git unzip kpartx curl git software-properties-common sudo unzip vim wget net-tools\
+
+ && wget http://download.tizen.org/sdk/tizenstudio/official/binary/sdb_2.3.0_ubuntu-64.zip\
+
+ && unzip sdb_2.3.0_ubuntu-64.zip\
+
+ && cp data/tools/sdb /usr/bin/ \
+
+ && echo "deb [trusted=yes] http://10.113.136.113:82/Tools:/MicDockerTest/Ubuntu_16.04/ /" > /etc/apt/sources.list.d/tizen.list \
+
+ && echo "deb http://download.tizen.org/tools/archive/19.03/Ubuntu_16.04/ / " >> /etc/apt/sources.list.d/tizen.list \
+
+ && apt-get update \
+
+ && apt-get -o Dpkg::Options::="--force-overwrite" install -y --allow-unauthenticated gbs mic \
+ #Using sync command before exec /usr/lib/build/initvm.x86_64
+ && sed -i 'N;616i\\t sync' /usr/lib/build/init_buildsystem \
+
+ && rm -rf /var/cache/apt/ /var/cache/man /var/lib/apt /var/lib/apt/lists/* \
+
+ && useradd --create-home --no-log-init --shell /bin/bash robot \
+
+ && adduser robot sudo \
+
+ && echo 'robot:robot' | chpasswd \
+
+ && sed -i '$a\robot ALL = NOPASSWD: /usr/sbin/useradd, /usr/sbin/usermod, /usr/sbin/groupadd ,\
+
+ /bin/su -c /usr/bin/start_gbs *, \
+
+ /bin/su -c /usr/bin/mic *, \
+
+ /bin/su -c /usr/bin/sdb *, \
+
+ /bin/su -c /usr/bin/litmus *, \
+
+ /bin/su -c /usr/bin/lthor *' /etc/sudoers
+
+USER robot
+#ENV HOME /root
+ENV TERM xterm