Orchestra Github


License

License

Categories

Categories

Github Development Tools Version Controls
GroupId

GroupId

com.goyeau
ArtifactId

ArtifactId

orchestra-github_sjs0.6_2.12
Last Version

Last Version

0.8
Release Date

Release Date

Type

Type

jar
Description

Description

Orchestra Github
Orchestra Github
Project Organization

Project Organization

com.goyeau
Source Code Management

Source Code Management

https://github.com/orchestracd/orchestra

Download orchestra-github_sjs0.6_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/com.goyeau/orchestra-github_sjs0.6_2.12/ -->
<dependency>
    <groupId>com.goyeau</groupId>
    <artifactId>orchestra-github_sjs0.6_2.12</artifactId>
    <version>0.8</version>
</dependency>
// https://jarcasting.com/artifacts/com.goyeau/orchestra-github_sjs0.6_2.12/
implementation 'com.goyeau:orchestra-github_sjs0.6_2.12:0.8'
// https://jarcasting.com/artifacts/com.goyeau/orchestra-github_sjs0.6_2.12/
implementation ("com.goyeau:orchestra-github_sjs0.6_2.12:0.8")
'com.goyeau:orchestra-github_sjs0.6_2.12:jar:0.8'
<dependency org="com.goyeau" name="orchestra-github_sjs0.6_2.12" rev="0.8">
  <artifact name="orchestra-github_sjs0.6_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.goyeau', module='orchestra-github_sjs0.6_2.12', version='0.8')
)
libraryDependencies += "com.goyeau" % "orchestra-github_sjs0.6_2.12" % "0.8"
[com.goyeau/orchestra-github_sjs0.6_2.12 "0.8"]

Dependencies

compile (4)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.4
com.goyeau : orchestra-core_sjs0.6_2.12 jar 0.8
org.scala-js : scalajs-library_2.12 jar 0.6.23
org.eclipse.jgit : org.eclipse.jgit jar 4.9.0.201710071750-r

test (1)

Group / Artifact Type Version
org.scala-js : scalajs-test-interface_2.12 jar 0.6.23

Project Modules

There are no modules declared in this project.

Orkestra

Latest version Gitter

Orkestra is an Open Source Continuous Integration / Continuous Deployment server as a library running on Kubernetes.
It leverages Kubernetes concepts such as Jobs or Secrets, and configuration as code in Scala to take the most of compile time type safety and compatibility with Scala or Java libraries.

Key features:

  • Configured completely via code which can be version controlled
  • Fully scalable
  • Highly Available
  • Extendable via any Scala/Java libraries

Quick start

Requirements

Installation

project/plugins.sbt:

addSbtPlugin("tech.orkestra" % "sbt-orkestra" % "<latest version>")

build.sbt:

lazy val orkestra = orkestraProject("orkestra", file("orkestra"))
  .settings(
    libraryDependencies ++= Seq(
      "tech.orkestra" %%% "orkestra-github" % orkestraVersion, // Optional Github plugin
      "tech.orkestra" %%% "orkestra-cron" % orkestraVersion, // Optional Cron plugin
      "tech.orkestra" %% "orkestra-lock" % orkestraVersion // Optional Lock plugin
    )
  )

Simple example

Given the above installation, here is a minimal project with one job:

orkestra/src/main/scala/orkestra.scala:

import tech.orkestra._
import tech.orkestra.Dsl._
import tech.orkestra.board._
import tech.orkestra.job._
import tech.orkestra.model._

// We extend OrkestraServer to create the web server
object Orkestra extends OrkestraServer {
  // Configuring the UI
  lazy val board = deployFrontendJobBoard
  // Configuring the jobs
  lazy val jobs = Set(deployFrontendJob)
  
  // Creating the job and configuring UI related settings
  lazy val deployFrontendJobBoard = JobBoard[() => Unit](JobId("deployFrontend"), "Deploy Frontend")()
  // Creating the job from the above definition (this will be compiled to JVM)
  lazy val deployFrontendJob = Job(deployFrontendJobBoard) { implicit workDir => () =>
    println("Deploying Frontend")
  }
}

This example is described in Jobs & Boards.

See example projects

Deployment on Kubernetes with Minikube

We provide some basic Kubernetes Deployment in kubernetes-dev that you can use to deploy on a dev environment.
Assuming that you are in one of the example projects (or in your own project), here is how to deploy on Kubernetes with Minikube:

minikube start --memory 4096              # Start Minikube
eval `minikube docker-env`                # Make docker use the docker engine of Minikube
sbt orkestraJVM/Docker/publishLocal       # Publish the docker artifact
kubectl apply -f ../kubernetes-dev        # Apply the deployment to Kubernetes
kubectl proxy                             # Proxy the Kubernetes api

Visit Orkestra on http://127.0.0.1:8001/api/v1/namespaces/orkestra/services/orkestra:http/proxy.
You can troubleshoot any deployment issue with minikube dashboard.

More on how to configure the deployment in Config.

Documentation

Find all the documentation on https://orkestra.tech:

Talks and articles:

Origins of Orkestra

DriveTribe

Orkestra has been created at DriveTribe by its Scala backend team that had to do DevOps. Obsessed by functional programming they decided to apply the same paradigm to their DevOps.

Related projects

Contributing

Contributions to Orkestra are more than welcomed! See CONTRIBUTING.md for all the information and getting help.

com.goyeau

Versions

Version
0.8