Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile for building test environment #37

Merged
merged 6 commits into from
Nov 2, 2018
Merged

Add Dockerfile for building test environment #37

merged 6 commits into from
Nov 2, 2018

Conversation

leonwanghui
Copy link
Collaborator

@leonwanghui leonwanghui commented Jul 24, 2018

Signed-off-by: leonwanghui wanghui71leon@gmail.com

Introduction

This patch mainly focuses on solving the issue #31

How to build mock-broker and test-job docker image

These commands below present how to building test environment:

make docker

After this finished, you will find two docker images created:

root@vultr:~/workspace/osb-checker# docker images
REPOSITORY                         TAG                 IMAGE ID            CREATED             SIZE
osb-checker/test-job               2.13                bd833779fd29        6 seconds ago       676MB
osb-checker/mock-broker            2.13                deb24670b84c        10 seconds ago      672MB

How to run these two docker images

docker run -d --net=host osb-checker/mock-broker:2.13
docker run -it --net=host osb-checker/test-job:2.13

Signed-off-by: leonwanghui <wanghui71leon@gmail.com>
@cfdreddbot
Copy link

Hey leonwanghui!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.

2.13/tests/Dockerfile Outdated Show resolved Hide resolved
@leonwanghui leonwanghui self-assigned this Nov 1, 2018
@norshtein
Copy link
Collaborator

norshtein commented Nov 1, 2018

The PR mostly LGTM. One thing is, better to create a doc and add the description about how to use the docker image to the doc.

Approved with PullApprove

Makefile Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@@ -1,3 +1,5 @@
VERSION_NUMBER := 2.13
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need ifeq ($(VERSION_NUMBER),) here to allow manually setting version?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think for now it can be set to 2.13 statically.

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's OK.

@zhongyi-zhang
Copy link
Collaborator

I think the CI should be updated, too.

Copy link
Collaborator

@zhongyi-zhang zhongyi-zhang left a comment

Choose a reason for hiding this comment

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

LGTM.

Approved with PullApprove

@norshtein
Copy link
Collaborator

norshtein commented Nov 2, 2018

LGTM

Approved with PullApprove

@leonwanghui leonwanghui merged commit fd5f6c4 into openservicebrokerapi:master Nov 2, 2018
@leonwanghui leonwanghui deleted the dockerfile branch November 2, 2018 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants