aboutsummaryrefslogtreecommitdiff
path: root/trusty-amd64-tcwg-base
diff options
context:
space:
mode:
Diffstat (limited to 'trusty-amd64-tcwg-base')
-rw-r--r--trusty-amd64-tcwg-base/Dockerfile14
-rw-r--r--trusty-amd64-tcwg-base/trusty-amd64-tcwg-build/Dockerfile22
-rw-r--r--trusty-amd64-tcwg-base/trusty-amd64-tcwg-dev/Dockerfile11
3 files changed, 23 insertions, 24 deletions
diff --git a/trusty-amd64-tcwg-base/Dockerfile b/trusty-amd64-tcwg-base/Dockerfile
index 8f491edc..bdc767b1 100644
--- a/trusty-amd64-tcwg-base/Dockerfile
+++ b/trusty-amd64-tcwg-base/Dockerfile
@@ -18,6 +18,7 @@ RUN (url="http://archive.ubuntu.com/ubuntu/"; \
autogen \
automake \
bc \
+ bind9-host \
bison \
binutils-aarch64-linux-gnu \
binutils-arm-linux-gnueabihf \
@@ -66,8 +67,8 @@ RUN (url="http://archive.ubuntu.com/ubuntu/"; \
openssh-server \
pkg-config \
python-dev \
- python-virtualenv \
postfix \
+ psmisc \
pxz \
qemu-system-arm \
qemu-user \
@@ -81,6 +82,7 @@ RUN (url="http://archive.ubuntu.com/ubuntu/"; \
time \
valgrind \
vim \
+ python-virtualenv \
wget \
xz-utils \
zip \
@@ -115,6 +117,14 @@ RUN mkdir /tmp/docker-install-qemu.$$ \
&& make all install -j $(nproc --all) \
&& cd && rm -rf /tmp/docker-install-qemu.$$
+COPY home-data/ /home-data/
+COPY new-user.sh /usr/local/bin/
+
+RUN \
+ while read line; do \
+ new-user.sh --group $(echo "$line" | cut -d: -f 1,3); \
+ done </home-data/group
+
# We use ssh multiplexing, which creates sockets in /tmp. Overlayfs,
# which docker is using, can't host sockets, so we use a scratch mount
# for /tmp. This requires that we add --rm option to "docker run"
@@ -124,4 +134,4 @@ VOLUME /tmp
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
-# checksum: af7e4ca6d6d6f9e6cb0d1eb355552d2b
+# checksum: 814a72154c55af0cb2e75c091393359b
diff --git a/trusty-amd64-tcwg-base/trusty-amd64-tcwg-build/Dockerfile b/trusty-amd64-tcwg-base/trusty-amd64-tcwg-build/Dockerfile
index 3963ce4d..f0d30e44 100644
--- a/trusty-amd64-tcwg-base/trusty-amd64-tcwg-build/Dockerfile
+++ b/trusty-amd64-tcwg-base/trusty-amd64-tcwg-build/Dockerfile
@@ -1,20 +1,12 @@
# Auto generated from tcwg-base/tcwg-build/Dockerfile.in. Do not edit.
FROM linaro/ci-amd64-tcwg-base-ubuntu:trusty
-RUN groupadd -g 9000 tcwg-infra \
- && useradd -m -g tcwg-infra -G kvm -u 11827 tcwg-buildslave \
- && useradd -m -g tcwg-infra -G kvm -u 12326 tcwg-benchmark \
- && echo '%tcwg-infra ALL = NOPASSWD: ALL' > /etc/sudoers.d/jenkins \
- && chmod 0440 /etc/sudoers.d/jenkins \
- && mkdir -p /home/tcwg-buildslave/workspace
-
-COPY tcwg-buildslave /home/tcwg-buildslave
-COPY tcwg-benchmark /home/tcwg-benchmark
-
-RUN chown -R tcwg-buildslave:tcwg-infra /home/tcwg-buildslave/ \
- && chown -R tcwg-benchmark:tcwg-infra /home/tcwg-benchmark/ \
- && chmod 0700 /home/tcwg-buildslave/.ssh/ /home/tcwg-benchmark/.ssh/ \
- && chmod 0600 /home/tcwg-buildslave/.ssh/* /home/tcwg-benchmark/.ssh/*
+RUN while read line; do \
+ if [ x"$(echo "$line" | cut -d: -f 4)" != x"9000" ]; then \
+ continue; \
+ fi; \
+ new-user.sh --passwd "$line"; \
+ done </home-data/passwd
# Install wine. On amd64 arch we need to enable i386, otherwise wine
# won't meet dependencies (this is the case at least for trusty and xenial).
@@ -28,4 +20,4 @@ RUN \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
-# checksum: e043d076e8a7fca8b61124ede2bd2461
+# checksum: 0d3f78647975acb724f2bed4e767ab96
diff --git a/trusty-amd64-tcwg-base/trusty-amd64-tcwg-dev/Dockerfile b/trusty-amd64-tcwg-base/trusty-amd64-tcwg-dev/Dockerfile
index 2294e57b..4a43d2c8 100644
--- a/trusty-amd64-tcwg-base/trusty-amd64-tcwg-dev/Dockerfile
+++ b/trusty-amd64-tcwg-base/trusty-amd64-tcwg-dev/Dockerfile
@@ -1,9 +1,6 @@
# Auto generated from tcwg-base/tcwg-dev/Dockerfile.in. Do not edit.
FROM linaro/ci-amd64-tcwg-base-ubuntu:trusty
-COPY run.sh .
-COPY start.sh .
-
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
software-properties-common \
@@ -35,15 +32,15 @@ RUN apt-get update \
/tmp/* \
/var/tmp/*
-RUN sed -i -e '/.*AuthorizedKeysFile/ d' /etc/ssh/sshd_config \
- && echo "AuthorizedKeysFile %h/.ssh/authorized_keys.docker" >> /etc/ssh/sshd_config \
- && locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8 \
+RUN locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8 \
&& apt-file update
# Create directories required for X11.
RUN mkdir -p /tmp/.X11-unix /tmp/.ICE-unix \
&& chmod 1777 /tmp/.X11-unix /tmp/.ICE-unix
+COPY run.sh start.sh /
+
ENTRYPOINT ["/run.sh"]
CMD ["start.sh"]
-# checksum: 6ebcfe89f577b9b89996da9aace4394f
+# checksum: 672122d88b9e3cc028e8cd0df5834752