forked from OwnZones/orchestration-gui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support media and html sources in prod and web sockets
- Loading branch information
Showing
88 changed files
with
2,009 additions
and
871 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Trigger build of Docker image | ||
|
||
on: workflow_dispatch | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build: | ||
name: Build and push Docker image | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log in to Docker registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
flavor: | | ||
latest=false | ||
tags: type=sha | ||
|
||
- name: Extract GUI version | ||
id: gui | ||
env: | ||
TAGS: ${{ steps.meta.outputs.tags }} | ||
run: echo "::set-output name=version::${TAGS##*:}" | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
push: true | ||
build-args: | | ||
GUI_VERSION=${{ steps.gui.outputs.version }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
platforms: linux/amd64,linux/arm64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Build and push Docker image when a release is published | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build: | ||
name: Build and push Docker image | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log in to Docker registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
- name: Extract GUI version | ||
id: gui | ||
env: | ||
TAGS: ${{ steps.meta.outputs.tags }} | ||
run: echo "::set-output name=version::${TAGS##*:}" | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
push: true | ||
build-args: | | ||
GUI_VERSION=${{ steps.gui.outputs.version }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
platforms: linux/amd64,linux/arm64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,12 +15,12 @@ Start mongodb docker container using `docker-compose up`. It will initialize the | |
If you want to run the GUI and mongodb docker containers add this to the `docker-compose.yml` file: | ||
|
||
``` | ||
agileui: | ||
liveui: | ||
build: . | ||
environment: | ||
MONGODB_URI: mongodb://api:<API_PASSWORD>@host.docker.internal:27017/agile-live-gui | ||
AGILE_URL: https://<SYSTEM_CONTROLLER_IP>:8080 | ||
AGILE_CREDENTIALS: <USERNAME>:<PASSWORD> | ||
MONGODB_URI: mongodb://api:<API_PASSWORD>@host.docker.internal:27017/live-gui | ||
LIVE_URL: https://<SYSTEM_CONTROLLER_IP>:8080 | ||
LIVE_CREDENTIALS: <USERNAME>:<PASSWORD> | ||
NODE_TLS_REJECT_UNAUTHORIZED: 0 | ||
NEXTAUTH_SECRET: <NEXT_AUTH_SECRET> | ||
NEXTAUTH_URL: http://localhost:3000 | ||
|
@@ -34,10 +34,10 @@ If you want to run the GUI and mongodb docker containers add this to the `docker | |
|
||
Then copy the `.env.sample` file and name it `.env`, it will contain env variables: | ||
|
||
- `MONGODB_URI` - The mongodb connection string including credentials eg. `mongodb://user123:[email protected]:27017/agile-live-gui` | ||
- `MONGODB_URI` - The mongodb connection string including credentials eg. `mongodb://user123:[email protected]:27017/live-gui` | ||
|
||
- `AGILE_URL` - The URL to the Agile-live system controller REST API | ||
- `AGILE_CREDENTIALS` - Credentials for the Agile-live system controller REST API | ||
- `LIVE_URL` - The URL to the Ateliere Live system controller REST API | ||
- `LIVE_CREDENTIALS` - Credentials for the Ateliere Live system controller REST API | ||
|
||
- `NEXTAUTH_SECRET` - The secret used to encrypt the JWT Token | ||
- `NEXTAUTH_URL` - The base url for the service, eg. `http://localhost:3000`, used internally by NextAuth. | ||
|
@@ -64,7 +64,7 @@ Run following to run application in development environment: | |
|
||
### External Documentation | ||
|
||
https://docs.agilecontent.com/docs/acl/reference/3-0-0/rest_api/ | ||
https://help.ateliere.com/live/docs/reference/7-0-0/rest_api/ | ||
|
||
### Contributing | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
To build and publish a release of the official Docker image, in this example patch version `v1.0.1`: | ||
|
||
1. Create a tag with name `v1.0.1` | ||
|
||
``` | ||
% git tag v1.0.1 | ||
``` | ||
|
||
2. Push the tag to GitHub remote | ||
|
||
``` | ||
% git push --tags | ||
``` | ||
|
||
3. Open browser and navigate to the repository on GitHub. Go to the Releases section by clicking on the Releases header on the right side of the page. | ||
|
||
4. Click on Create a new release and choose the tag `v1.0.1` that you created. | ||
|
||
5. Describe the release by adding release notes in the markdown input field. | ||
|
||
6. Click on Publish release. | ||
|
||
This will trigger a GitHub action that will build Docker image and tag it with `v1.0.1` and push to container registry. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.