Skip to content

Commit b4a52f7

Browse files
authored
Merge pull request #30 from vidispine/25.1.0
25.1.0
2 parents df6752e + 6337c60 commit b4a52f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1606
-227
lines changed

.github/workflows/build-with-public-url.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,17 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
14+
- uses: actions/setup-node@v4
1515
with:
1616
node-version: '20'
17+
cache: 'npm'
1718
- name: Set artifact vars
1819
id: artifact-vars
1920
run: |
2021
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
2122
echo "encoded_url=$(node -p "encodeURIComponent('${{ github.event.inputs.public_url }}')")" >> $GITHUB_OUTPUT
22-
- name: Cache node_modules
23-
id: cache-modules
24-
uses: actions/cache@v3
25-
with:
26-
path: |
27-
node_modules
28-
*/*/node_modules
29-
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
3023
- name: Install dependencies
31-
if: steps.cache-modules.outputs.cache-hit != 'true'
32-
run: npm install
24+
run: npm ci
3325
- name: Build site
3426
run: PUBLIC_URL=${PUBLIC_URL} GENERATE_SOURCEMAP=false npm run build
3527
env:

.github/workflows/docker-image.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,10 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v2
11+
- uses: actions/setup-node@v4
1212
with:
1313
node-version: '20'
14-
- name: Cache node_modules
15-
id: cache-modules
16-
uses: actions/cache@v2
17-
with:
18-
path: |
19-
node_modules
20-
*/*/node_modules
21-
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
14+
cache: 'npm'
2215
- name: Configure npm
2316
run: npm config set script-shell bash
2417
- name: Set up QEMU
@@ -29,8 +22,7 @@ jobs:
2922
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USER }} --password-stdin
3023
shell: bash
3124
- name: Install app dependencies
32-
if: steps.cache-modules.outputs.cache-hit != 'true'
33-
run: npm install
25+
run: npm ci
3426
shell: bash
3527
- name: Build the Docker image
3628
run: PUBLIC_URL=/admin-tool npm run docker:buildx:push

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,13 @@ jobs:
77
build_and_publish:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v2
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
1212
with:
1313
node-version: '20'
14-
- name: Cache node_modules
15-
id: cache-modules
16-
uses: actions/cache@v2
17-
with:
18-
path: |
19-
node_modules
20-
*/*/node_modules
21-
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
14+
cache: 'npm'
2215
- name: Install dependencies
23-
if: steps.cache-modules.outputs.cache-hit != 'true'
24-
run: npm install
16+
run: npm ci
2517
- name: Clean cached clones
2618
run: npm run gh-pages-clean
2719
- name: Publish to GitHub Pages

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ Docker Containers can be downloaded from Dockerhub https://hub.docker.com/r/vidi
6565

6666
### Run
6767

68+
* Pull the latest image
69+
```
70+
docker image pull vidispine/admin-tool:latest
71+
```
72+
6873
* Start the container with the latest image.
6974
- Try changing the port from `-p 80:80` to `-p 8088:80` if running on Windows.
7075
```
@@ -79,6 +84,19 @@ docker run \
7984
'vidispine/admin-tool:latest'
8085
```
8186

87+
* Alternatively, start the container without specifying a VidiCore server.
88+
```
89+
docker run \
90+
--name vidispine-admin-tool \
91+
--detach \
92+
--tty \
93+
--interactive \
94+
--rm \
95+
-e CONTAINER_PROXY='true' \
96+
-p 80:80 \
97+
'vidispine/admin-tool:latest'
98+
```
99+
82100
* Alternatively, use `docker compose` with the linked [`docker-compose.yaml`](./docker-compose.yaml).
83101
```
84102
docker compose up -d \
@@ -97,6 +115,7 @@ docker compose up -d \
97115
* **NGINX_RESOLVER**: Nginx will proxy requests to an upstream VidiCore server, this will require a DNS address for the [resolver](https://nginx.org/en/docs/http/ngx_http_core_module.html#resolver) if using a hostname.
98116
- Set this to `127.0.0.11` if using within Docker Compose.
99117
- Set this to `169.254.169.253` if using in AWS ECS (or your [Route 53 Resolver](https://docs.aws.amazon.com/vpc/latest/userguide/AmazonDNS-concepts.html#AmazonDNS)).
118+
* **CONTAINER_PROXY**: Sets the `X-Proxy-URL` header on frontend requests and proxy via Nginx.
100119

101120
#### Ports
102121

TODO.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ TO-DO
66
3. ~~Deletion lock notifications~~
77
4. ~~Deletion locks on files~~
88
5. ~~Deletion locks on libraries~~
9-
6. Search users
9+
6. ~~Search users~~
1010
7. User graph
1111
8. Search groups
1212
9. Traverse groups
13-
10. ACL graph
13+
10. ~~ACL graph~~
1414
11. Collection items
1515
12. Create an item list job for the collection
1616
13. Add entity to collection with additional params (before, reference)
@@ -31,7 +31,7 @@ TO-DO
3131
28. Create item list job
3232
29. List all libraries containing item
3333
30. Item locks
34-
31. Item sequences
34+
31. ~~Item sequences~~
3535
32. Item loudness
3636
33. Item waveform
3737
34. Item highlights

docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ services:
44
environment:
55
VIDISPINE_URL: ${VIDISPINE_URL:-http://host.docker.internal:8080}
66
NGINX_RESOLVER: 127.0.0.11
7+
CONTAINER_PROXY: true
78
ports:
8-
- ${ADMINTOOL_PORT:-80}:80
9-
9+
- ${ADMINTOOL_PORT:-80}:80

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link rel="shortcut icon" href="/favicon.ico">
99
<script type="text/javascript">
1010
var VIDISPINE_URL = "$VIDISPINE_URL";
11+
var CONTAINER_PROXY = "$CONTAINER_PROXY";
1112
</script>
1213
<title>VidiCore Admin</title>
1314
<style>

package-lock.json

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "@vidispine/admin-tool",
3-
"version": "24.4.0",
3+
"version": "25.1.0",
44
"private": true,
55
"dependencies": {
66
"@devbookhq/splitter": "^1.3.2",
77
"@fontsource/open-sans": "4.5.2",
88
"@material-ui/core": "4.12.3",
99
"@material-ui/icons": "4.11.2",
10-
"@vidispine/vdt-api": "24.3.0-pre.3",
11-
"@vidispine/vdt-js": "24.3.0-pre.3",
10+
"@vidispine/vdt-api": "24.4.0-pre.1",
11+
"@vidispine/vdt-js": "24.4.0-pre.1",
1212
"clsx": "1.1.1",
1313
"codemirror": "5.65.9",
1414
"d3-graphviz": "5.4.0",

proxy.template

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ server {
1616
set $vsurl "${VIDISPINE_URL}";
1717

1818
location ~ ^/(API|APInoauth|APIinit|APIdoc)/.* {
19-
proxy_pass $vsurl;
19+
set $target_url $http_x_proxy_url;
20+
if ($target_url ~* ^https?://) {
21+
proxy_pass $target_url;
22+
}
23+
24+
if ($target_url = "") {
25+
proxy_pass $vsurl;
26+
}
27+
2028
proxy_hide_header WWW-Authenticate;
2129
proxy_request_buffering off;
2230
proxy_http_version 1.1;

0 commit comments

Comments
 (0)