Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1010

Test Dockerfile: Consider using DropBear in Busybox instead of OpenSSH in Ubuntu

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.1
    • Fix Version/s: 1.9.2, 2.0.0
    • Component/s: jclouds-labs
    • Labels:

      Description

      The MiscApiLiveTest.testBuildImageFromDockerfile() test is very expensive one. The Dockerfile used in it is based on ubuntu:14.04 and makes apt-get update as a first step. Then it installs openssh-server. It means a lot of networking on the background.

      We could try to change the Dockerfile to be based on busybox image and add dropbear as an SSH server into it.

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit b5d8260d132c16f0dcb260b615a079a769159a7a in jclouds-labs's branch refs/heads/master from Josef Cacek
        [ https://git-wip-us.apache.org/repos/asf?p=jclouds-labs.git;h=b5d8260 ]

        JCLOUDS-1010 use a lightweight image as a base for Docker build test

        Show
        jira-bot ASF subversion and git services added a comment - Commit b5d8260d132c16f0dcb260b615a079a769159a7a in jclouds-labs's branch refs/heads/master from Josef Cacek [ https://git-wip-us.apache.org/repos/asf?p=jclouds-labs.git;h=b5d8260 ] JCLOUDS-1010 use a lightweight image as a base for Docker build test
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit eed37edb6465d2b2ac1c8ac12780544bfe412f71 in jclouds-labs's branch refs/heads/1.9.x from Josef Cacek
        [ https://git-wip-us.apache.org/repos/asf?p=jclouds-labs.git;h=eed37ed ]

        JCLOUDS-1010 use a lightweight image as a base for Docker build test

        Show
        jira-bot ASF subversion and git services added a comment - Commit eed37edb6465d2b2ac1c8ac12780544bfe412f71 in jclouds-labs's branch refs/heads/1.9.x from Josef Cacek [ https://git-wip-us.apache.org/repos/asf?p=jclouds-labs.git;h=eed37ed ] JCLOUDS-1010 use a lightweight image as a base for Docker build test
        Show
        kwart Josef Cacek added a comment - PR sent: https://github.com/jclouds/jclouds-labs/pull/208
        Hide
        andreaturli Andrea Turli added a comment -

        I think you are right. Historically I was using the built image as base image for the other tests, but now we are not using it anymore, I think.
        Could you issue a PR for this?

        Show
        andreaturli Andrea Turli added a comment - I think you are right. Historically I was using the built image as base image for the other tests, but now we are not using it anymore, I think. Could you issue a PR for this?
        Hide
        kwart Josef Cacek added a comment -

        Neverheless, it seems the Dockerfile is only used to test the build() methods, so we don't probably need to use an SSH server at all. Or did I miss something?

        Show
        kwart Josef Cacek added a comment - Neverheless, it seems the Dockerfile is only used to test the build() methods, so we don't probably need to use an SSH server at all. Or did I miss something?
        Hide
        andreaturli Andrea Turli added a comment -

        interesting idea!
        Never heard about dropbear befpre, but I think it worths a try. Also http://wiki.alpinelinux.org/wiki/Setting_up_a_ssh-server looks promising to speed up tests

        Show
        andreaturli Andrea Turli added a comment - interesting idea! Never heard about dropbear befpre, but I think it worths a try. Also http://wiki.alpinelinux.org/wiki/Setting_up_a_ssh-server looks promising to speed up tests

          People

          • Assignee:
            Unassigned
            Reporter:
            kwart Josef Cacek
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development