Skip to content

Commit

Permalink
Notes on how to build on spaces (argoproj#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtartler-blp authored and Alan Clucas committed Nov 25, 2024
1 parent 4d1489c commit e8d44a6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/bb-build-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
yum install -y jq
VERSION="$(jq -r .version < jaazy.json).${USER}"

GIT_COMMIT=$(git rev-parse HEAD)
set -eux
for TARGET in argocli workflow-controller argoexec; do
docker build --target ${TARGET} --secret id=GIT_PASSWORD,env=GIT_PASSWORD \
--target workflow-controller --build-arg GIT_COMMIT=${GIT_COMMIT} \
--build-arg GIT_TREE_STATE=dirty \
--build-arg GIT_TAG=${VERSION} \
--build-arg VERSION=${VERSION} \
-t ${TARGET}:${VERSION} .
done
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!-- markdownlint-disable-next-line MD041 -->
[![DevX Spaces](https://spaces.dx.bloomberg.com/badge.svg)](https://spaces.dx.bloomberg.com/badges/create?org=workflow-orchestration&repo=argo-workflows&installDocker=true&skipDependencyInstall=true)
[![Security Status](https://github.com/argoproj/argo-workflows/actions/workflows/snyk.yml/badge.svg?branch=release-3.5)](https://github.com/argoproj/argo-workflows/actions/workflows/snyk.yml?query=branch%3Arelease-3.5)
[![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/3830/badge)](https://bestpractices.coreinfrastructure.org/projects/3830)
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/argoproj/argo-workflows/badge)](https://api.securityscorecards.dev/projects/github.com/argoproj/argo-workflows)
Expand All @@ -9,6 +10,24 @@
[![Release Version](https://img.shields.io/github/v/release/argoproj/argo-workflows?label=argo-workflows)](https://github.com/argoproj/argo-workflows/releases/latest)
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/argo-workflows)](https://artifacthub.io/packages/helm/argo/argo-workflows)


## Developing Argo Workflows @Bloomberg

You can develop argo workflows in DevX spaces. A couple of notes:

* *Before* creating a workspace in DevX Spaces, create a [Spaces Development Secret](https://tutti.prod.bloomberg.com/spaces/how_to/manage_development_secrets) named `GIT_USERNAME` with your bbgithub username and `GIT_PASSWORD` with an "Personal Access Token" that you can [retrieve your bbgithub settings](https://bbgithub.dev.bloomberg.com/settings/tokens). Building the UI image requires authenticated access to bbgithub.
* To build the ui, use:
```shell
apt-get install -y node yarn
export YARN_CACHE_FOLDER=/root/.yarn
npm config delete noproxy proxy https-proxy -g
cd ui
yarn --verbose --prefer-offline --network-timeout 600000 build
yarn --verbose --prefer-offline --network-timeout 600000 install
```
* To build the docker images locally, use [`.github/bb-build-docker.sh`](.github/bb-build-docker.sh)
* These images can be used for testing on QA clusters, etc.

## What is Argo Workflows?

Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes.
Expand Down

0 comments on commit e8d44a6

Please sign in to comment.