Skip to content

OpsMx/rosco

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rosco Image build testing SHA

Build Status

Rosco is Spinnaker's bakery, producing machine images with Hashicorp Packer and rendered manifests with templating engines Helm and Kustomize.

It presently supports producing Alibaba Cloud images, Google Compute Engine images, Huawei Cloud images, Tencent Cloud images, AWS AMI's and Azure images. It relies on Hashicorp Packer and can be easily extended to support additional platforms.

It exposes a REST api which can be experimented with via the Swagger UI: http://localhost:8087/swagger-ui.html

Developing rosco

Need to run rosco locally for development? Here's what you need to setup and run:

Environment Setup

git clone [email protected]:spinnaker/rosco.git
git clone [email protected]:spinnaker/spinnaker.git

Docker Setup (runs redis locally)

docker-machine create --virtualbox-disk-size 8192 --virtualbox-memory 8192 -d virtualbox spinnaker
eval $(docker-machine env spinnaker)
cd spinnaker/experimental/docker-compose
docker-compose up -d redis

Verify redis

docker run -it --link redis:redis --rm redis redis-cli -h redis -p 6379
(printf "PING\r\n";) | nc -v localhost 6379

IDE setup

Generate Intellij gradle project files

./gradlew idea

Apply groovy code formatting scheme

  1. Preferences -> Editor -> Code Style -> Manage ... -> Import -> select codestyle.xml from the project directory.
  2. Apply the 'spinnaker' scheme.

Running App

./gradlew

Debugging

To start the JVM in debug mode, set the Java system property DEBUG=true:

./gradlew -DDEBUG=true

The JVM will then listen for a debugger to be attached on port 8187. The JVM will not wait for the debugger to be attached before starting Rosco; the relevant JVM arguments can be seen and modified as needed in build.gradle.

Verifying

curl -v localhost:8087/bakeOptions

Swagger

http://localhost:8087/swagger-ui.html

Docker teardown

docker-compose stop
docker-machine rm spinnaker

b1e91bd89ab0e6b81eca5a6542dcb1556eebd2a0 | Yugandharkumar | Update Commits-Preserve.yml | 2023-08-08

78c5184b83eeb50bad1fa1b3fbe676128d2f66ec | Yugandharkumar | Mastertest (#14) | 2024-03-11

df964736582f2e505d14e79a534f9d3d02b49425 | Yugandharkumar | Delete .github/workflows/gradle.yml | 2024-03-11

bf36d606afb473a1675b60b3279470ae5f5f652b | Yugandharkumar | Creating github action for Release and Build for PR merge | 2024-03-11

a849fa6b9ea68d4ee9dfe71f695a247e6ae863b1 | Yugandharkumar | Update Release Build | 2024-03-11

2305a11b15c3a22c6e3621a301e42070ab376d35 | Yugandharkumar | Create release_build_push.yml | 2024-03-11

85f45aa36e8e48bdf3712b0442d12ff81a8eb9db | Yugandharkumar | Update release_build_push.yml | 2024-03-11

d7a47948b737f71937be4566e03b140f8cc72ca3 | Yugandharkumar | Update release_build_push.yml | 2024-03-11

5188fd26803ff1dfd016ed0d0bfda93830cfa4c9 | Yugandharkumar | Update release_build_push.yml | 2024-03-11

60ce795dbc1a157b536a96c6100331d4d0e53b15 | Yugandharkumar | Update release_build_push.yml | 2024-03-11

0c0815ede89bc636a02abec30a09cea4ccd5c4c8 | Yugandharkumar | Update release_build_push.yml | 2024-03-11

Packages

No packages published

Languages

  • Groovy 72.0%
  • Java 24.1%
  • HCL 1.4%
  • PowerShell 1.2%
  • Shell 0.8%
  • Slim 0.3%
  • Roff 0.2%