0.1.0-container-goals.20190624192125 • Published 7 years ago

@atomist/samples v0.1.0-container-goals.20190624192125

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 years ago

@atomist/samples

npm version atomist sdm goals

This repository is the home of very small sample Atomist Software Delivery Machines.

Each TypeScript file in /lib showcases a certain feature of the SDM framework and the Atomist platform.

Software delivery machines enable you to control your delivery process in code. Think of it as an API for your software delivery. See the Atomist documentation for more information on the concept of a software delivery machine and how to create and develop an SDM.

Samples

Here is a list of all the samples in this repository:

NameDescriptionTags
lib/command/helloWorld.tsDemonstrates a "hello world" command handlercommand
lib/command/menu.tsDemonstrates using menus in chatcommand, parameters
lib/command/parameters.tsDemonstrates a command handler with parameterscommand, parameters
lib/command/preferences.tsDemonstrates a command handler that sets and deletes SDM preferencescommand, preferences
lib/command/promptFor.tsDemonstrates using promptFor to acquire parameterscommand, parameters
lib/generate/generatorFromCommand.tsSDM to create a new Spring Boot project showing how to invoke a generator from a commandgenerator, sdm
lib/generate/generatorFromJob.tsSDM to create a new Spring Boot project showing how to invoke a generator from a jobgenerator, job, sdm
lib/generate/springBoot.tsSDM to create a new Spring Boot project showing promptFor from generatorsgenerator, sdm
lib/goal/addLicenseAutofix.tsShows how to use the Autofix goalautofix, goal
lib/goal/firstGoal.tsDemonstrates how to create a first custom goalgoal
lib/sdm/container/0goal.tsSDM that uses containers to build projects.container, sdm
lib/sdm/container/1parallel.tsSDM that uses containers to build projects against multiple versions of Node.container, node, sdm
lib/sdm/container/2node-maven.tsSDM that uses containers to build projects against multiple versions of Node and Maven.container, maven, node, sdm
lib/sdm/container/3cache.tsSDM that uses containers to build Node.js project and their Docker images.container, docker, kaniko, node, sdm
lib/sdm/container/4callback.tsSDM that uses containers with callback to set Docker image name.callback, container, docker, kaniko, node, sdm
lib/sdm/container/5volumes.tsSDM that uses containers with volumes to provide Docker credentials.callback, container, docker, kaniko, node, sdm, volumes
lib/sdm/dotnetCore.tsSDM to create and build .NET Core projectsdotnet-core, generator, sdm
lib/sdm/jenkinsJob.tsSDM to demonstrate how to run and converge Jenkins jobsjenkins, maven, sdm
lib/sdm/maven.tsSDM to create and build Maven projectsgenerator, maven, sdm
lib/transform/addLicense.tsShows a code transform that adds a license ile into the repositorytransform

Refer to the following section on how to run any of those samples from your own machine.

Running

Prerequisites

Before you can run any of the samples from this repository you need to install the Atomist CLI. Please follow Developer Quick Start to set up your environment.

Starting a Sample

Once the Atomist CLI is installed, you run any of the examples by simply typing the following into your terminal:

$ atomist start --repository-url=https://github.com/atomist/samples.git

This command will start a selection menu from which you can select one of the available samples to start.

Alternatively you can also start a sample directly by running:

$ atomist start --repository-url=https://github.com/atomist/samples.git --index=<SAMPLE>

Running this command requires you replace the placeholder <SAMPLE> with a name of one of the sample SDM programs in the root of this repository. For example --index=lib/command/menu.ts.

If you feel like changing some of the samples, you can also clone or fork this repository and then run the samples with:

$ atomist start

Contributing

Contributions to this project from community members are encouraged and appreciated. Please review the Contributing Guidelines for more information. Also see the Development section in this document.

Code of conduct

This project is governed by the Code of Conduct. You are expected to act in accordance with this code by participating. Please report any unacceptable behavior to code-of-conduct@atomist.com.

Documentation

Please see docs.atomist.com for developer documentation.

Connect

Follow @atomist and the Atomist blog.

Support

General support questions should be discussed in the #support channel in the Atomist community Slack workspace.

If you find a problem, please create an issue.

Development

You will need to install Node.js to build and test this project.

Build and test

Install dependencies.

$ npm install

Use the build package script to compile, test, lint, and build the documentation.

$ npm run build

Release

Releases are handled via the Atomist SDM. Just press the 'Approve' button in the Atomist dashboard or Slack.


Created by Atomist. Need Help? Join our Slack workspace.