Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.

[JCLOUDS-1010] use a lightweight image as a base for Docker build test #208

Closed
wants to merge 4 commits into from

Conversation

kwart
Copy link
Contributor

@kwart kwart commented Oct 8, 2015

JIRAs:

JCLOUDS-1010
To limit bandwidth during running Docker provider live tests a lightweight image is used. The originally used Ubuntu image with OpenSSH server was replaced by Alpine Linux with dropbear SSH server.

JCLOUDS-1017
Implement tagImage in ImageApi of Docker provider.

JCLOUDS-1020
Fix query parameter for adding image tag in BuildOptions class (Docker provider).

# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
FROM alpine:3.2
MAINTAINER JClouds Dev <jclouds-dev@apache.org>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[minor] Change to dev@jclouds.apache.org

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

On Thu, Oct 8, 2015 at 11:47 AM, Ignasi Barrera notifications@github.com
wrote:

In docker/src/test/resources/Dockerfile
#208 (comment):

-# SSH login fix. Otherwise user is kicked off after login
-RUN sed 's@session\s_required\s_pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
+FROM alpine:3.2
+MAINTAINER JClouds Dev jclouds-dev@apache.org

[minor] Change to dev@jclouds.apache.org


Reply to this email directly or view it on GitHub
https://github.com/jclouds/jclouds-labs/pull/208/files#r41494980.

@nacx
Copy link
Member

nacx commented Oct 8, 2015

lgtm. Thanks @kwart!

@kwart kwart force-pushed the JCLOUDS-1010-dropbear branch 2 times, most recently from 5abdb8b to a348e93 Compare October 8, 2015 09:54
@nacx
Copy link
Member

nacx commented Oct 19, 2015

Looks like a transient failure: rebuild please

@Named("image:tag")
@POST
@Path("/images/{name}/tag")
@Fallback(FalseOnNotFoundOr404.class)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general we try to avoid using 404 fallbacks in POST/PUT methods, as often they don't provide the right feedback to the user. Operations done on objects that are supposed to exist will already throw a ResourceNotFoundException. I'd change this method to return void and remove the fallback.

@nacx
Copy link
Member

nacx commented Oct 21, 2015

lgtm. Just some small comments in the tests.

@kwart
Copy link
Contributor Author

kwart commented Oct 21, 2015

Commits edited according to the comments.

@nacx
Copy link
Member

nacx commented Oct 21, 2015

Pushed to msater and 1.9.x. Thanks!

@nacx nacx closed this Oct 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants