aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/disk-image-builder/csit-sut-dcr/ubuntu_1804_amd64
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-12-03 12:53:24 +0000
committerPeter Mikus <pmikus@cisco.com>2019-12-03 15:02:08 +0000
commit53fb7dad59b185992aaed1ec2e470c547693caf2 (patch)
tree434b319374a93fd6cf271b185a7a4cb1b32caa1f /resources/tools/disk-image-builder/csit-sut-dcr/ubuntu_1804_amd64
parent7482d7a93bf3f7af2f82d2986deaf83f3cd65f92 (diff)
Remove: VIRL
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I2b1672412e19f15cb46246fffa931351cd3d518b
Diffstat (limited to 'resources/tools/disk-image-builder/csit-sut-dcr/ubuntu_1804_amd64')
-rw-r--r--resources/tools/disk-image-builder/csit-sut-dcr/ubuntu_1804_amd64/Dockerfile136
-rw-r--r--resources/tools/disk-image-builder/csit-sut-dcr/ubuntu_1804_amd64/supervisord.conf22
2 files changed, 0 insertions, 158 deletions
diff --git a/resources/tools/disk-image-builder/csit-sut-dcr/ubuntu_1804_amd64/Dockerfile b/resources/tools/disk-image-builder/csit-sut-dcr/ubuntu_1804_amd64/Dockerfile
deleted file mode 100644
index a681c21e4f..0000000000
--- a/resources/tools/disk-image-builder/csit-sut-dcr/ubuntu_1804_amd64/Dockerfile
+++ /dev/null
@@ -1,136 +0,0 @@
-# Copyright (c) 2019 Cisco and/or its affiliates.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at:
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-FROM ubuntu:bionic-20180821
-
-MAINTAINER csit-dev <csit-dev@lists.fd.io>
-LABEL Description="CSIT vpp-device ubuntu 18.04 baseline image (x86)"
-LABEL Version="0.6"
-
-# Setup the environment
-ENV DEBIAN_FRONTEND=noninteractive
-ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
-ENV NOTVISIBLE "in users profile"
-ENV VPP_PYTHON_PREFIX=/var/cache/vpp/python
-
-# Base layer
-RUN apt-get -q update \
- && apt-get install -y -qq \
- apt-transport-https \
- curl \
- software-properties-common \
- && rm -rf /var/lib/apt/lists/*
-
-# Repository settings
-RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
- && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
- && apt-get remove -y \
- curl
-
-# Extended layer
-RUN apt-get -q update \
- && apt-get install -y -qq \
- # general tools
- bridge-utils \
- cloud-init \
- locales \
- net-tools \
- openssh-server \
- pciutils \
- rsyslog \
- ssh \
- sudo \
- supervisor \
- tar \
- vim \
- wget \
- # csit requirements
- cmake \
- dkms \
- docker-ce \
- libpcap-dev \
- libpython2.7-dev \
- libpython-dev \
- openjdk-8-jdk-headless \
- python-pip \
- python2.7-dev \
- python-dev \
- python-virtualenv \
- qemu-system-x86 \
- socat \
- strongswan \
- unzip \
- tcpdump \
- zlib1g-dev \
- # vpp requirements
- ca-certificates \
- libapr1 \
- libmbedcrypto1 \
- libmbedtls10 \
- libmbedx509-0 \
- libnuma1 \
- python-cffi \
- python-enum34 \
- python3-cffi \
- && rm -rf /var/lib/apt/lists/*
-
-# Configure locales
-RUN locale-gen en_US.UTF-8 \
- && dpkg-reconfigure locales
-
-# Fix permissions
-RUN chown root:syslog /var/log \
- && chmod 755 /etc/default
-
-# Create directory structure
-RUN mkdir -p /tmp/dumps \
- && mkdir -p /var/cache/vpp/python \
- && mkdir -p /var/run/sshd
-
-# CSIT PIP pre-cache
-RUN pip install \
- docopt==0.6.2 \
- ecdsa==0.13 \
- enum34==1.1.2 \
- ipaddress==1.0.16 \
- paramiko==1.16.0 \
- pexpect==4.6.0 \
- pycrypto==2.6.1 \
- pykwalify==1.5.0 \
- pypcap==1.1.5 \
- python-dateutil==2.4.2 \
- PyYAML==3.11 \
- requests==2.9.1 \
- robotframework==2.9.2 \
- scapy==2.3.1 \
- scp==0.10.2 \
- six==1.12.0 \
- dill==0.2.8.2 \
- numpy==1.14.5 \
- scipy==1.1.0
-
-# VPP PIP pre-cache
-RUN pip install \
- aenum
-
-# SSH settings
-RUN echo 'root:Csit1234' | chpasswd \
- && sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \
- && sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd \
- && echo "export VISIBLE=now" >> /etc/profile
-
-EXPOSE 22
-
-COPY supervisord.conf /etc/supervisord/supervisord.conf
-
-CMD ["sh", "-c", "rm -f /dev/shm/db /dev/shm/global_vm /dev/shm/vpe-api; /usr/bin/supervisord -c /etc/supervisord/supervisord.conf; /usr/sbin/sshd -D"]
diff --git a/resources/tools/disk-image-builder/csit-sut-dcr/ubuntu_1804_amd64/supervisord.conf b/resources/tools/disk-image-builder/csit-sut-dcr/ubuntu_1804_amd64/supervisord.conf
deleted file mode 100644
index 3a2c150a53..0000000000
--- a/resources/tools/disk-image-builder/csit-sut-dcr/ubuntu_1804_amd64/supervisord.conf
+++ /dev/null
@@ -1,22 +0,0 @@
-[unix_http_server]
-file = /run/supervisor.sock
-
-[rpcinterface:supervisor]
-supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
-
-[supervisorctl]
-serverurl = unix:///run/supervisor.sock
-
-[supervisord]
-pidfile = /run/supervisord.pid
-identifier = supervisor
-directory = /run
-logfile=/var/log/supervisord.log
-loglevel=debug
-nodaemon=false
-
-[program:vpp]
-command=/usr/bin/vpp -c /etc/vpp/startup.conf
-autorestart=true
-redirect_stderr=true
-priority=1