-
Notifications
You must be signed in to change notification settings - Fork 168
feat(api): add APIs for getting pipeline templates and detecting repo type #557
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
37f1b68
docs(api): add pipeline templates and repository type api
zhujian7 201edf4
chore(vendor): update vendor
zhujian7 ecad8d4
feat(api): add APIs for getting pipeline templates and detecting repo…
zhujian7 a592942
fix: fix comments
zhujian7 196d95d
fix: fix comments
zhujian7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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,111 @@ | ||
- name: maven-3 | ||
type: Maven | ||
builderImage: maven:3 | ||
testCommands: | | ||
mvn test | ||
packageCommands: | | ||
mvn clean package -Dmaven.test.skip | ||
customizedDockerfile: | | ||
FROM jboss/base-jdk:8 | ||
|
||
# Copy your file from source to destination. | ||
COPY target/<app>.jar /test-app.jar | ||
|
||
# Expose ports. | ||
EXPOSE 8081 | ||
|
||
# Run your app or exec your start scripts. | ||
CMD ["java", "-jar", "/test-app.jar"] | ||
|
||
- name: gradle-3.4.1 | ||
type: Gradle | ||
builderImage: gradle:3.4.1 | ||
testCommands: | | ||
gradle clean test | ||
packageCommands: | | ||
gradle build -x test | ||
customizedDockerfile: | | ||
FROM jboss/base-jdk:8 | ||
|
||
# Copy your file from source to destination. | ||
COPY build/<app>.jar /test-app.jar | ||
|
||
# Expose ports. | ||
EXPOSE 8081 | ||
|
||
# Run your app or exec your start scripts. | ||
CMD ["java", "-jar", "/test-app.jar"] | ||
|
||
- name: golang-1.9.2 | ||
type: Go | ||
builderImage: golang:1.9.2 | ||
testCommands: | | ||
echo $GOPATH | ||
# Replace the {repo-path} with your own repository path, e.g. "github.com/caicloud/cyclone". | ||
REPO_PATH={repo-path} | ||
WORKDIR=$GOPATH/src/$REPO_PATH | ||
PARENT_PATH="$(dirname "$WORKDIR")" | ||
mkdir -p $PARENT_PATH | ||
ln -s `pwd` $WORKDIR | ||
cd $WORKDIR | ||
ls -la | ||
go test -cover $(go list ./...) | ||
packageCommands: | | ||
# Replace the {main-method-path} with the path of directory which contains a main() function. | ||
cd $WORKDIR/{main-method-path} | ||
go build -i -v | ||
customizedDockerfile: | | ||
FROM alpine:3.6 | ||
|
||
# change path to your work dir. | ||
WORKDIR /root | ||
|
||
# Copy your file from source to destination. | ||
COPY <app> /test-app | ||
|
||
# Expose ports. | ||
EXPOSE 7099 | ||
|
||
# Run your app or exec your start scripts. | ||
ENTRYPOINT ["/test-app"] | ||
|
||
- name: python-2.7 | ||
type: Python | ||
builderImage: python:2.7-alpine | ||
testCommands: | | ||
# Run all the test*.py modules inside the test package. | ||
python -m unittest discover -s test -p 'test*.py' | ||
packageCommands: | | ||
cus 10000 tomizedDockerfile: | | ||
FROM python:2.7-alpine | ||
|
||
RUN mkdir -p /usr/src/app | ||
|
||
# Create working directory | ||
WORKDIR /usr/src/app | ||
|
||
# Add your uploaded file to workplace, if it's an archive file (zip, tar, tar.gz), | ||
# it will be unpacked and added to worksapce. | ||
ADD <uploaded-file> . | ||
|
||
# Make sure the requirements.txt file exists and then install dependencies using it. | ||
RUN touch requirements.txt | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
CMD [ "python", "./<entrypoint>.py" ] | ||
|
||
- name: node-8.9.0 | ||
type: NodeJS | ||
builderImage: node:8.9.0-slim | ||
testCommands: | | ||
packageCommands: | | ||
npm run build | ||
customizedDockerfile: | | ||
|
||
- name: php-7.1.9 | ||
type: PHP | ||
builderImage: php:7.1.9 | ||
testCommands: | | ||
packageCommands: | | ||
customizedDockerfile: | | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.