Skip to content

Commit b3fc6e4

Browse files
committed
Merge branch 'master' into sandhose/oidc-login
2 parents 7d75154 + 2a1f9c5 commit b3fc6e4

Some content is hidden

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

59 files changed

+181
-273
lines changed

.github/CODEOWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Docker related files are not maintained by the core Hydrogen team
2+
/.dockerignore @hughns @sandhose
3+
/Dockerfile @hughns @sandhose
4+
/Dockerfile-dev @hughns @sandhose
5+
/.github/workflows/docker-publish.yml @hughns @sandhose
6+
/docker/ @hughns @sandhose
7+
/doc/docker.md @hughns @sandhose

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,28 @@ jobs:
2121

2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v3
25+
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v2
2528

2629
- name: Log into registry ${{ env.REGISTRY }}
27-
uses: docker/login-action@v1
30+
uses: docker/login-action@v2
2831
with:
2932
registry: ${{ env.REGISTRY }}
3033
username: ${{ github.actor }}
3134
password: ${{ secrets.GITHUB_TOKEN }}
3235

3336
- name: Extract Docker metadata
3437
id: meta
35-
uses: docker/metadata-action@v3
38+
uses: docker/metadata-action@v4
3639
with:
3740
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3841

3942
- name: Build and push Docker image
40-
uses: docker/build-push-action@v2
43+
uses: docker/build-push-action@v3
4144
with:
4245
push: ${{ github.event_name != 'pull_request' }}
4346
tags: ${{ steps.meta.outputs.tags }}
4447
labels: ${{ steps.meta.outputs.labels }}
48+
platforms: linux/amd64,linux/arm64,linux/arm/v7

Dockerfile

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1-
FROM docker.io/node:alpine as builder
1+
FROM --platform=${BUILDPLATFORM} docker.io/node:alpine as builder
22
RUN apk add --no-cache git python3 build-base
3-
COPY . /app
3+
44
WORKDIR /app
5-
RUN yarn install \
6-
&& yarn build
75

8-
FROM docker.io/nginx:alpine
6+
# Copy package.json and yarn.lock and install dependencies first to speed up subsequent builds
7+
COPY package.json yarn.lock /app/
8+
RUN yarn install
9+
10+
COPY . /app
11+
RUN yarn build
12+
13+
FROM --platform=${BUILDPLATFORM} docker.io/nginx:alpine
14+
15+
# Copy the dynamic config script
16+
COPY ./docker/dynamic-config.sh /docker-entrypoint.d/99-dynamic-config.sh
17+
18+
# Copy the built app from the first build stage
919
COPY --from=builder /app/target /usr/share/nginx/html

Dockerfile-dev

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
FROM docker.io/node:alpine
22
RUN apk add --no-cache git python3 build-base
3-
COPY . /code
3+
44
WORKDIR /code
5+
6+
# Copy package.json and yarn.lock and install dependencies first to speed up subsequent builds
7+
COPY package.json yarn.lock /code/
58
RUN yarn install
9+
10+
COPY . /code
611
EXPOSE 3000
712
ENTRYPOINT ["yarn", "start"]

doc/FAQ.md renamed to FAQ.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ TorBrowser ships a crippled IndexedDB implementation and will not work. At some
1111
It used work in pre-webkit Edge, to have it work on Windows Phone, but that support has probably bit-rotted as it isn't tested anymore.
1212

1313
The following browser extensions are known to break Hydrogen
14-
- uBlock Origin (seems to block the service worker script)
14+
- uBlock Origin (Some custom filters seem to block the service worker script)
15+
- Try locating the filter that is blocking the service worker script in the uBlock Origin logger, and disabling that filter. Otherwise, the easiest solution is to disable uBlock Origin for the Hydrogen site (by opening the uBlock Origin popup and clicking the large power button symbol). It is possible to re-enable it after logging in, but it may possibly break again when there is an update.
1516

1617
## Is there a way to run the app as a desktop app?
1718

@@ -35,4 +36,4 @@ Published builds can be found at https://github.com/vector-im/hydrogen-web/relea
3536

3637
## I want to embed Hydrogen in my website, how should I do that?
3738

38-
Hydrogen aims to be usable as an SDK, and while it is still early days, you can find some documentation how to do that in [SDK.md](SDK.md).
39+
Hydrogen aims to be usable as an SDK, and while it is still early days, you can find some documentation how to do that in [SDK.md](doc/SDK.md).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ PS: You need nodejs, running yarn on top of any other js platform is not support
4343

4444
# FAQ
4545

46-
Some frequently asked questions are answered [here](doc/FAQ.md).
46+
Some frequently asked questions are answered [here](FAQ.md).

doc/GOAL.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

doc/SKINNING.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

doc/TODO.md

Lines changed: 0 additions & 77 deletions
This file was deleted.

doc/api.md

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)