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
openjdk-8: | |
docker: | |
# specify the version you desire here | |
- image: circleci/openjdk:8-jdk | |
# Specify service dependencies here if necessary | |
# CircleCI maintains a library of pre-built images | |
# documented at https://circleci.com/docs/2.0/circleci-images/ | |
# - image: circleci/postgres:9.4 |
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
workflows: | |
version: 2 | |
build_and_test: | |
jobs: | |
- build | |
- openjdk-8: | |
filters: | |
branches: | |
ignore: | |
- release |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>io.github.parj</groupId> | |
<artifactId>samplespringbootapp</artifactId> | |
<packaging>jar</packaging> | |
<version>1.6-SNAPSHOT</version> | |
<name>samplespringbootapp</name> | |
<url>https://github.com/parj/SampleSpringBootApp</url> | |
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
#!/bin/bash | |
#Install Gogs | |
docker run --name=gogs -p 10022:22 -p 3000:3000 -v /tmp/gitlab:/data gogs/gogs | |
#Install Jenkins | |
docker run -d -p 8080:8080 -p 50000:50000 -v /tmp/jenkins:/var/jenkins_home jenkins | |
#Install Ansible tower | |
docker run -t -d -v /tmp/certs:/certs -p 443:443 --privileged -e SERVER_NAME=localhost ybalt/ansible-tower |
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
kind: RoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: read-pods | |
namespace: jenkins | |
subjects: | |
- kind: ServiceAccount | |
name: jenkins-robot | |
namespace: default | |
roleRef: |
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
kind: Role | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: jenkins-readwrite | |
namespace: jenkins | |
rules: | |
- apiGroups: [""] # "" indicates the core API group | |
resources: ["pods"] | |
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] |
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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: jenkins-robot | |
namespace: jenkins |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: jenkins | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: jenkins |
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
from jenkins/jenkins:lts | |
# Distributed Builds plugins | |
RUN /usr/local/bin/install-plugins.sh ssh-slaves | |
# Artifacts |
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
import groovy.sql.Sql | |
repositories { | |
mavenCentral() | |
} | |
configurations { | |
driver | |
} |