Skip to content

Commit

Permalink
feat(server): init logging-house-server with publish job
Browse files Browse the repository at this point in the history
* feat(server): init logging-house-server with publish job

* fix(server): add missing keyword jobs to ci file

* fix(server): resolve duplicate names in jobs

* chore: add example compose file

* docs(server): link basecamp configuration docs

* chore: fix publish trigger for server
  • Loading branch information
dhommen committed Jan 23, 2024
1 parent 5aa2aa8 commit fcce174
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 2 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/publish-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish-Server
on:
push:
branches: ["main"]
paths: ["logging-house-server/**/*"]

jobs:
publish-app:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Login to GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build Docker image
run: cd logging-house-server/app && docker build -t ghcr.io/truzzt/mds-ap3/app:0.1.0 .

- name: Push Docker image
run: docker push ghcr.io/truzzt/mds-ap3/app:0.1.0


publish-edc:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Login to GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build Docker image
run: cd logging-house-server/edc && docker build -t ghcr.io/truzzt/mds-ap3/edc:0.1.0 .

- name: Push Docker image
run: docker push ghcr.io/truzzt/mds-ap3/edc:0.1.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ npm install
## Usage

```sh
docker run
docker compose up
```

## Run tests
Expand Down
45 changes: 45 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: "3.8"

services:
edc:
image: ghcr.io/truzzt/mds-ap3/edc:0.1.0
environment:
WEB_HTTP_PORT:
WEB_HTTP_PATH:
WEB_HTTP_IDS_PORT:
WEB_HTTP_IDS_PATH:
MY_EDC_FQDN:
MY_EDC_NAME_KEBAB_CASE:
MY_EDC_TITLE:
MY_EDC_DESCRIPTION:
MY_EDC_CURATOR_URL:
MY_EDC_CURATOR_NAME:
EDC_API_AUTH_KEY:
MY_EDC_MAINTAINER_URL:
MY_EDC_MAINTAINER_NAME:
EDC_OAUTH_TOKEN_URL:
EDC_OAUTH_PROVIDER_JWKS_URL:
EDC_OAUTH_PROVIDER_AUDIENCE:
EDC_OAUTH_CLIENT_ID:
EDC_KEYSTORE:
EDC_KEYSTORE_PASSWORD:
EDC_VAULT:
EDC_OAUTH_CERTIFICATE_ALIAS:
EDC_OAUTH_PRIVATE_KEY_ALIAS:
TRUZZT_CLEARINGHOUSE_JWT_AUDIENCE:
TRUZZT_CLEARINGHOUSE_JWT_ISSUER:
TRUZZT_CLEARINGHOUSE_JWT_SIGN_SECRET:
TRUZZT_CLEARINGHOUSE_JWT_EXPIRES_AT:
TRUZZT_CLEARINGHOUSE_APP_BASE_URL: http://app:8000

app:
image: ghcr.io/truzzt/mds-ap3/app:0.1.0
environment:
SHARED_SECRET:
SERVICE_ID_LOG:

mongodb:
image: mongo:5
environment:
MONGO_INITDB_DATABASE: process

2 changes: 1 addition & 1 deletion docs/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Summary

- [Installation]()
- [Configuration](./configuration.md)
- [Use]()
- [Developing]()
9 changes: 9 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Configuration

## EDC

- [Configuration](https://ids-basecamp.github.io/clearinghouse/content/admin-guide/ch-edc_installation.html)

## App

- [Configuration](https://ids-basecamp.github.io/clearinghouse/content/admin-guide/ch-app_installation.html)
1 change: 1 addition & 0 deletions logging-house-server/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM ghcr.io/truzzt/ids-basecamp-clearing/ch-app:1.0.0-alpha.7
1 change: 1 addition & 0 deletions logging-house-server/edc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM ghcr.io/truzzt/ids-basecamp-clearing/ch-edc:1.0.0-alpha.7

0 comments on commit fcce174

Please sign in to comment.