-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
469 additions
and
1,119 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
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,67 @@ | ||
SHELL := /bin/bash | ||
|
||
PROJECTNAME := $(shell basename "$(PWD)") | ||
CREDENTIAL_SECRETS=.secrets.yaml | ||
ROBOT_FILES=**/*.robot | ||
CLUSTER_NAME= | ||
PATH_TO_PROFILES_DIR=profiles | ||
E2E_PYTHON_TAGS= | ||
COMMIT_ID= | ||
TEMP_DIRECTORY= | ||
TAG= | ||
# Example of DOCKER_REGISTRY: nexus.domain.com:443/ | ||
DOCKER_REGISTRY= | ||
HELM_ADDITIONAL_PARAMS= | ||
|
||
-include .env | ||
|
||
.EXPORT_ALL_VARIABLES: | ||
|
||
.PHONY: install-all install-cli install-services install-sdk | ||
|
||
check-tag: | ||
@if [ "${TAG}" == "" ]; then \ | ||
echo "TAG not defined, please define TAG variable" ; exit 1 ;\ | ||
fi | ||
@if [ "${DOCKER_REGISTRY}" == "" ]; then \ | ||
echo "DOCKER_REGISTRY not defined, please define DOCKER_REGISTRY variable" ; exit 1 ;\ | ||
fi | ||
|
||
## docker-build-jenkins: Build jenkins docker image | ||
docker-build-jenkins: | ||
docker build -t legion/k8s-jenkins:latest -f containers/jenkins/Dockerfile . | ||
|
||
## docker-build-ansible: Build ansible docker image | ||
docker-build-ansible: | ||
docker build -t legion/k8s-jenkins-ansible:latest -f containers/toolchains/python/Dockerfile . | ||
|
||
## docker-build-agent: Build agent docker image | ||
docker-build-agent: | ||
docker build -t legion/jenkins-pipeline-agent:latest -f containers/agent/Dockerfile . | ||
|
||
## docker-push-jenkins: Push jenkins docker image | ||
docker-push-jenkins: | ||
docker tag legion/k8s-jenkins:latest ${DOCKER_REGISTRY}/legion/k8s-jenkins:${TAG} | ||
docker push ${DOCKER_REGISTRY}/legion/k8s-jenkins:${TAG} | ||
|
||
## docker-push-ansible: Push ansible docker image | ||
docker-push-ansible: check-tag | ||
docker tag legion/k8s-jenkins-ansible:latest ${DOCKER_REGISTRY}/legion/k8s-jenkins-ansible:${TAG} | ||
docker push ${DOCKER_REGISTRY}/legion/k8s-jenkins-ansible:${TAG} | ||
|
||
## docker-push-agent: Push agent docker image | ||
docker-push-agent: check-tag | ||
docker tag legion/jenkins-pipeline-agent:latest ${DOCKER_REGISTRY}/legion/jenkins-pipeline-agent:${TAG} | ||
docker push ${DOCKER_REGISTRY}/legion/jenkins-pipeline-agent:${TAG} | ||
|
||
## e2e-robot: Run e2e robot tests | ||
e2e-robot: | ||
pabot --verbose --processes 6 \ | ||
-v PATH_TO_PROFILES_DIR:profiles \ | ||
--listener legion.robot.process_reporter \ | ||
--outputdir target legion/tests/e2e/robot/tests/${ROBOT_FILES} | ||
|
||
help: Makefile | ||
@echo "Choose a command run in "$(PROJECTNAME)":" | ||
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /' | ||
@echo |
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
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
File renamed without changes.
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 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
six = "==1.12.0" | ||
urllib3 = "==1.24.2" | ||
requests = "==2.21.0" | ||
kubernetes = "==8.0.1" | ||
Jinja2 = "==2.10.1" | ||
boto3 = "==1.9.75" | ||
botocore = "==1.12.75" | ||
python-jenkins = "==0.4.15" | ||
robotframework = "==3.0.2" | ||
robotframework-pabot = "==0.44" | ||
PyYAML = "==5.1" | ||
|
||
[requires] | ||
python_version = "3.6" |
Oops, something went wrong.