Product
|
Cloud costs
|
released
October 31, 2018
|
3
min read
|

JFrog Artifactory & Harness - Don’t Get Bogged Down With Continuous Delivery

Updated

Everyone is doing CI/CD these days. If you attend any DevOps conference, you’ll notice two things: 1.) Lots of teams claiming to do ten billion deployments a day and 2.) Lots of vendors claiming to help enable ten billion deployments a day.

Truth is, Continuous Delivery is misunderstood, and it's very much a problem that remains unsolved for the masses.

“Bullsh!t, we’ve built our own CI/CD process/platform,” I hear you say, and thereby lies the problem: nearly everyone has tried to build it themselves.

The normal recipe is Jenkins plus several hundred thousand lines of BASH scripts (aka jobs). That’s a great way to make your production deployment... croak.

Continuous Integration != Continuous Delivery

Taking code to artifact (Continuous Integration) has largely been solved by Jenkins, and JFrog has been a pioneer and leader in how those artifacts are managed.

Despite lots of innovation in infrastructure automation technologies and frameworks like Ansible and Terraform, taking artifacts into production still remains a complex, manual, and painful process if you build it with Jenkins or similar.

CI/CD


Deployment scripting is not automation. Why? Because deployment scripts change more frequently than Tesla’s stock price. This is not automation; it’s called software maintenance.

It's also still not uncommon for deployment pipelines to be babysat by a team of DevOps engineers. Truly enabling developers to deploy and test on their own remains a massive challenge, both from a capability and governance perspective.

Continuous Delivery-As-A-Service With Harness and JFrog

At Harness, we’re trying to solve Continuous Delivery by offering it as a turnkey service for DevOps and developers.

Harness will integrate with your cloud stack and tools in minutes, and then you can build dynamic deployment pipelines to promote artifacts across your environments.

In that journey, our JFrog story and integration has been critical. In fact, we recently supported one of the largest Artifactory implementations on the planet (> 1 PB). Below is a quick primer on how you can integrate JFrog into your deployment pipelines.

Configuring Artifactory With Harness

First thing you need to do is register your Artifactory instance(s) inside Harness.
To do this, go to: Setup > Connectors > Artifact Servers > Add Artifact Server

Add Artifact Server



Now enter your artifactory URL, username and password.

Optional: you can also place usage restrictions on your Artifactory servers. E.g. Artifactory A can only be used for Application X and Environment D, E and F.

Creating Apps/Services Based on Artifactory Artifacts

With Artifactory now integrated, you can start to define your application and service hierarchy in Harness.
Let’s create a simple microservice using Artifactory.

Go to: Setup > Your App > Services > Add Service
Give your service a name and select ‘Docker’ as the artifact type.
Now, click ‘Add Artifact Source

Add Service


Now point Harness to your Artifactory Server, Repository, and Image Name:

Artifactory Setup



That’s it. Harness will now automatically version control every new artifact build or version from your Artifactory instance:

Artifact History - Artifactory

Building Your First Deployment Pipeline (With Xray)

With your service artifacts now defined inside Harness, you can build deployment workflows and pipelines in minutes.

Go to: Setup > Your Application > Workflows > Create Workflow

For example, we can build a 3-phase canary deployment workflow to deploy our new microservice that starts with a JFrog Xray security scan on the container artifact:

Workflow



To integrate JFrog Xray, simply click ‘Add Step’ under the ‘Pre-deployment Steps’ section. Choose ‘HTTP’ and create a webhook to Xray that references the ${artifact.displayName} and ${artifact.artifactPath} within your workflow. That’s it!

When this deployment workflow (or pipeline) is kicked off, you can watch all these deployment steps execute in real time, with full insight into console output and logs.

Run Workflow



With JFrog and Harness, it's now possible to create end-to-end deployment pipelines in minutes using your artifact repository as the source/trigger.

For more information and a free trial, visit Harness today.

Cheers,
Steve.
@BurtonSays

Sign up now

Sign up for our free plan, start building and deploying with Harness, take your software delivery to the next level.

Get a demo

Sign up for a free 14 day trial and take your software development to the next level

Documentation

Learn intelligent software delivery at your own pace. Step-by-step tutorials, videos, and reference docs to help you deliver customer happiness.

Case studies

Learn intelligent software delivery at your own pace. Step-by-step tutorials, videos, and reference docs to help you deliver customer happiness.

We want to hear from you

Enjoyed reading this blog post or have questions or feedback?
Share your thoughts by creating a new topic in the Harness community forum.

Sign up for our monthly newsletter

Subscribe to our newsletter to receive the latest Harness content in your inbox every month.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Continuous Delivery & GitOps