Skip to content

Commit

Permalink
omnibus: add ESG omnibus variant (#778)
Browse files Browse the repository at this point in the history
* omnibus: cleanup GHC code

* omnibus: add example-esg variant

* omnibus: publish example-esg docker
  • Loading branch information
akphi authored Nov 7, 2023
1 parent 499ebaa commit 2916ff6
Show file tree
Hide file tree
Showing 149 changed files with 510 additions and 1,620 deletions.
51 changes: 0 additions & 51 deletions .github/ISSUE_TEMPLATE/---legend-community-meeting-minutes.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/manual__create-new-docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
strategy:
fail-fast: false
matrix:
variant: [full, slim, ghc, slim-dbs]
variant: [full, slim, slim-dbs, example-esg]
steps:
- name: Checkout code
uses: actions/checkout@v3.5.2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual__publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
variant: [full, slim, ghc, slim-dbs]
variant: [full, slim, slim-dbs, example-esg]
steps:
- name: Checkout code
uses: actions/checkout@v3.5.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Publish AWS
name: Publish Example - Grace Hopper Conference 2023 (AWS)
on:
push:
branches:
- master
paths:
- "installers/ghc/**"
- "installers/examples/grace-hopper-conference-2023/**"
workflow_dispatch: {}

jobs:
Expand All @@ -17,11 +17,11 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
java-version: "17"
distribution: "temurin"

- name: Maven Build
working-directory: ./installers/ghc
working-directory: ./installers/examples/grace-hopper-conference-2023
run: mvn clean install

- name: Set up Node.js
Expand All @@ -30,7 +30,7 @@ jobs:
node-version: 20.x

- name: CDK Synth
working-directory: ./installers/ghc
working-directory: ./installers/examples/grace-hopper-conference-2023
run: |
mkdir dist
npm install -g aws-cdk
Expand All @@ -44,6 +44,6 @@ jobs:
aws-region: us-east-1

- name: Copy CFN Template to S3
working-directory: ./installers/ghc
working-directory: ./installers/examples/grace-hopper-conference-2023
run: |
aws s3 cp dist/cfn.yaml s3://legend.ghc/template.yaml --acl public-read
aws s3 cp dist/cfn.yaml s3://legend.ghc/template.yaml --acl public-read
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
variant: [full, slim, ghc, slim-dbs]
variant: [full, slim, slim-dbs, example-esg]
steps:
- name: Checkout code
uses: actions/checkout@v3.5.2
Expand Down
File renamed without changes.
27 changes: 27 additions & 0 deletions installers/examples/grace-hopper-conference-2023/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Grace Hopper Conference 2023 - Legend AWS Setup

## Installation

Launch this CloudFormation stack in your account:

| AWS Region | Short name | |
| --- | --- | --- |
| US East (N. Virginia) | us-east-1 | [![cloudformation-launch-button](images/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/quickcreate?stackName=Legend&templateURL=https://legend.ghc.s3.amazonaws.com/template.yaml) |

## Development

```sh
# build
npm run build
cdk synth

# Deploy
cdk deploy

# Deploy (Auth)
# NOTE: First change LegendAwsApp to use LegendAwsStackWithAuth*
cdk deploy --parameters CognitoDomainPrefix=**{change-this}** --parameters AdminPassword=**{change-this}**

# Cleanup
cdk destroy
```
File renamed without changes.
File renamed without changes.
18 changes: 0 additions & 18 deletions installers/ghc/DEV.md

This file was deleted.

9 changes: 0 additions & 9 deletions installers/ghc/README.md

This file was deleted.

1 change: 0 additions & 1 deletion installers/omnibus/.env
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ LEGEND_OMNIBUS_ENGINE_TEMP_DB_PORT=6310
# Legend SDLC
LEGEND_OMNIBUS_SDLC_PORT=6100
LEGEND_OMNIBUS_SDLC_ADMIN_PORT=6101
LEGEND_OMNIBUS_SDLC_FS_ROOT_DIR=/app/sdlc/local-projects-fs

# Legend Pure IDE
LEGEND_OMNIBUS_PURE_IDE_PORT=9200
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ service postgresql start

su postgres -c "psql -c \"CREATE DATABASE legend;\""

su postgres -c "psql -d legend -f /app/datasources/postgres-setup.ghc.sql"
su postgres -c "psql -d legend -f /app/datasources/postgres-setup.example-ghc-2023.sql"

su postgres -c "psql -c \"ALTER USER postgres PASSWORD 'postgres';\""

Expand Down
46 changes: 0 additions & 46 deletions installers/omnibus/components/nginx/config/nginx.ghc.cfg

This file was deleted.

12 changes: 0 additions & 12 deletions installers/omnibus/components/nginx/run-nginx.ghc.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ filterPriorities:
org.pac4j.j2e.filter.SecurityFilter: 3
CORS: 4
fileSystem:
rootDirectory: ${LEGEND_OMNIBUS_SDLC_FS_ROOT_DIR}
rootDirectory: ${LEGEND_OMNIBUS_SDLC_FILE_SYSTEM_ROOT_DIR}
features:
canCreateProject: true
canCreateVersion: false
Expand Down
Binary file not shown.
Binary file not shown.
25 changes: 25 additions & 0 deletions installers/omnibus/components/sdlc/run-sdlc.file-system.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

# -------------------------- Setup Color -----------------------------
# NOTE: must use `echo -e` to interpret the backslash escapes
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No color
# --------------------------------------------------------------------

source /.env

echo -e "Using file system backend with no authentication..."

# NOTE: this is temporary until we can switch SDLC backend using the config
config_file="config.file-system.yml"
main_class=org.finos.legend.sdlc.server.startup.LegendSDLCServerFS
lib_dir=/app/sdlc-fs/lib

java -cp $lib_dir/*-shaded.jar \
-XX:+ExitOnOutOfMemoryError \
-XX:MaxRAMPercentage=60 \
-Xss4M \
-Dfile.encoding=UTF8 \
$main_class server "/app/sdlc/config/$config_file"
67 changes: 0 additions & 67 deletions installers/omnibus/components/sdlc/run-sdlc.ghc.sh

This file was deleted.

Loading

0 comments on commit 2916ff6

Please sign in to comment.