-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from saagie/experimental
Experimental java13
- Loading branch information
Showing
14 changed files
with
195 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,13 +35,23 @@ jobs: | |
release_name: Release ${{ steps.extract_version.outputs.v }} | ||
draft: false | ||
prerelease: true | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
- name: Upload Release certified Asset | ||
id: upload-release-asset-certified | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET}} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./tmp-zip/certified.zip | ||
asset_name: certified.zip | ||
asset_content_type: application/zip | ||
asset_content_type: application/zip | ||
- name: Upload Release experimental Asset | ||
id: upload-release-asset-experimental | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET}} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./tmp-zip/experimental.zip | ||
asset_name: experimental.zip | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,13 +62,23 @@ jobs: | |
release_name: Release ${{ steps.extract_version.outputs.v }} | ||
draft: false | ||
prerelease: true | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
- name: Upload Release certified Asset | ||
id: upload-release-asset-certified | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET}} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./tmp-zip/certified.zip | ||
asset_name: certified.zip | ||
asset_content_type: application/zip | ||
- name: Upload Release experimental Asset | ||
id: upload-release-asset-experimental | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET}} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./tmp-zip/experimental.zip | ||
asset_name: experimental.zip | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,16 +58,26 @@ jobs: | |
release_name: Release ${{ steps.extract_version.outputs.v }} | ||
draft: false | ||
prerelease: false | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
- name: Upload Release certified Asset | ||
id: upload-release-asset-certified | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET}} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./tmp-zip/certified.zip | ||
asset_name: certified.zip | ||
asset_content_type: application/zip | ||
- name: Upload Release experimental Asset | ||
id: upload-release-asset-experimental | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET}} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./tmp-zip/experimental.zip | ||
asset_name: experimental.zip | ||
asset_content_type: application/zip | ||
- name: Upgrade version | ||
run: | | ||
./gradlew incrementMinor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM openjdk:13.0-jdk-slim-buster | ||
|
||
COPY entrypoint /entrypoint | ||
RUN chmod 755 /entrypoint | ||
|
||
ENV HADOOP_CONF_DIR=/etc/hadoop/conf | ||
|
||
#UPDATE SECURITY PACKAGE BEGIN | ||
RUN apt-get update && apt-get upgrade -y | ||
#UPDATE SECURITY PACKAGE END | ||
|
||
WORKDIR /sandbox | ||
|
||
ENTRYPOINT ["bash","/entrypoint"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright 2019 Pierre Leresteux. | ||
* | ||
* 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 | ||
* | ||
* https://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. | ||
*/ | ||
import com.bmuschko.gradle.docker.DockerRemoteApiPlugin | ||
import com.saagie.technologies.SaagieTechnologiesGradlePlugin | ||
|
||
apply<DockerRemoteApiPlugin>() | ||
apply<SaagieTechnologiesGradlePlugin>() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
|
||
if test -f main_script; | ||
then sh ./main_script; | ||
else exec "$@" | ||
fi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
schemaVersion: "2.0.0" | ||
|
||
metadataTest: | ||
env: | ||
- key: LANG | ||
value: "C.UTF-8" | ||
- key: JAVA_HOME | ||
value: "/usr/java/openjdk-13" | ||
- key: "HADOOP_CONF_DIR" | ||
value: "/etc/hadoop/conf" | ||
|
||
fileExistenceTests: | ||
- name: "entrypoint" | ||
path: "/entrypoint" | ||
shouldExist: true | ||
permissions: "-rwxr-xr-x" | ||
|
||
fileContentTests: | ||
- name: "entrypoint" | ||
path: "/entrypoint" | ||
expectedContents: ["sh ./main_script"] | ||
|
||
commandTests: | ||
- name: "java installation" | ||
command: "which" | ||
args: ["java"] | ||
expectedOutput: ["/usr/java/openjdk-13/bin/java"] | ||
|
||
- name: "java version" | ||
command: "java" | ||
args: ["-version"] | ||
expectedError: ['openjdk version "13.0'] | ||
|
||
- name: "Workdir" | ||
command: "pwd" | ||
expectedOutput: ["/sandbox"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: | ||
label: 13 | ||
isAvailable: true | ||
defaultResources: | ||
cpu: 0.3 | ||
memory: 512 | ||
disk: 512 | ||
features: | ||
- field: COMMAND_LINE | ||
label: Command line | ||
isMandatory: true | ||
comment: Linux shell command to launch the job. | ||
defaultValue: java -jar {file} arg1 arg2 | ||
- field: ARTIFACT | ||
label: Package | ||
isMandatory: true | ||
comment: "Compatible upload file : .jar" | ||
- field: SCHEDULER | ||
label: Scheduled | ||
isMandatory: true | ||
|
||
techno: | ||
id: a8a76a2a-f6cc-4271-aeea-445d06aa3396 | ||
label: Java/Scala | ||
available: true | ||
icon: java-scala | ||
recommendedVersion: 11 | ||
docker: | ||
image: saagie/java-scala | ||
version: 13-0.8.0_experimental |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright 2019 Pierre Leresteux. | ||
* | ||
* 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 | ||
* | ||
* https://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. | ||
*/ | ||
rootProject.name = "java13" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: | ||
label: 13 | ||
isAvailable: true | ||
defaultResources: | ||
cpu: 0.3 | ||
memory: 512 | ||
disk: 512 | ||
features: | ||
- field: COMMAND_LINE | ||
label: Command line | ||
isMandatory: true | ||
comment: Linux shell command to launch the job. | ||
defaultValue: java -jar {file} arg1 arg2 | ||
- field: ARTIFACT | ||
label: Package | ||
isMandatory: true | ||
comment: "Compatible upload file : .jar" | ||
- field: SCHEDULER | ||
label: Scheduled | ||
isMandatory: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../certified/job/java/techno.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
version.buildmeta= | ||
version.buildmeta=experimental | ||
version.buildmeta.prefix=_ | ||
version.major=0 | ||
version.minor=8 | ||
version.patch=0 | ||
version.prerelease= | ||
version.semver=0.8.0 | ||
version.semver=0.8.0_experimental |