Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit ead0a95

Browse files
Initial commit for sparkml serving container
1 parent 3a3638a commit ead0a95

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+3171
-16
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2.2
2+
===
3+
4+
Initial release of sagemaker-sparkml-serving-container, supporting Spark major version 2.2.

CONTRIBUTING.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ information to effectively respond to your bug report or contribution.
1111

1212
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
1313

14-
When filing an issue, please check [existing open](https://github.com/aws/sagemaker-spark-serving-container/issues), or [recently closed](https://github.com/aws/sagemaker-spark-serving-container/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
14+
When filing an issue, please check [existing open](https://github.com/aws/sagemaker-python-sdk/issues), or [recently closed](https://github.com/aws/sagemaker-python-sdk/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
1515
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
1616

1717
* A reproducible test case or series of steps
1818
* The version of our code being used
1919
* Any modifications you've made relevant to the bug
20-
* Anything unusual about your environment or deployment
20+
* A description of your environment or deployment
2121

2222

2323
## Contributing via Pull Requests
@@ -31,19 +31,17 @@ To send us a pull request, please:
3131

3232
1. Fork the repository.
3333
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
34-
3. Ensure local tests pass.
35-
4. Commit to your fork using clear commit messages.
36-
5. Send us a pull request, answering any default questions in the pull request interface.
37-
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
34+
3. Include unit tests when you contribute new features or make bug fixes, as they help to a) prove that your code works correctly, and b) guard against future breaking changes to lower the maintenance cost.
35+
4. Ensure local tests pass.
36+
5. Update the [changelog](https://github.com/aws/sagemaker-python-sdk/blob/master/CHANGELOG.rst) with a description of your changes for any code contribution.
37+
6. Commit to your fork using [clear and imperative commit messages](https://chris.beams.io/posts/git-commit/).
38+
7. Send us a pull request, answering any default questions in the pull request interface.
39+
8. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
3840

3941
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
4042
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
4143

4244

43-
## Finding contributions to work on
44-
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/aws/sagemaker-spark-serving-container/labels/help%20wanted) issues is a great place to start.
45-
46-
4745
## Code of Conduct
4846
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
4947
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
@@ -56,6 +54,6 @@ If you discover a potential security issue in this project we ask that you notif
5654

5755
## Licensing
5856

59-
See the [LICENSE](https://github.com/aws/sagemaker-spark-serving-container/blob/master/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
57+
See the [LICENSE](https://github.com/aws/sagemaker-python-sdk/blob/master/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
6058

61-
We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.
59+
We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM openjdk:8
2+
3+
LABEL com.amazonaws.sagemaker.capabilities.accept-bind-to-port=true
4+
5+
RUN apt-get update && apt-get -y install apt-utils net-tools apt-transport-https wget curl nginx git maven
6+
7+
COPY / /sagemaker-sparkml-model-server
8+
WORKDIR /sagemaker-sparkml-model-server
9+
10+
RUN mvn clean package
11+
12+
RUN cp ./target/sparkml-serving-2.2.jar /usr/local/lib/sparkml-serving-2.2.jar
13+
RUN cp ./serve.sh /usr/local/bin/serve.sh
14+
15+
RUN chmod a+x /usr/local/bin/serve.sh
16+
ENTRYPOINT ["/usr/local/bin/serve.sh"]

0 commit comments

Comments
 (0)