Skip to content

Commit

Permalink
Merge branch 'main' into the-federation-layer-v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Reckless-Satoshi authored Jan 11, 2024
2 parents 2472551 + 1f7876b commit 8af3eda
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/web-client-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v4

- name: 'Copy Static' # Needed since Github actions does not support symlinks
run: cp -r frontend/static nodeapp/static
run: cp -r frontend/static web/static

- name: 'Download main.js Artifact'
if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
Expand All @@ -31,14 +31,14 @@ jobs:
workflow: frontend-build.yml
workflow_conclusion: success
name: web-main-js
path: nodeapp/static/frontend/
path: web/static/frontend/

- name: 'Download main.js Artifact for a release'
if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4
with:
name: web-main-js
path: nodeapp/static/frontend/
path: web/static/frontend/

- name: 'Download pro.js Artifact'
if: inputs.semver == '' # Only if workflow fired from frontend-build.yml
Expand All @@ -47,14 +47,14 @@ jobs:
workflow: frontend-build.yml
workflow_conclusion: success
name: web-pro-js
path: nodeapp/static/frontend/
path: web/static/frontend/

- name: 'Download pro.js Artifact for a release'
if: inputs.semver != '' # Only if fired as job in release.yml
uses: actions/download-artifact@v4
with:
name: web-pro-js
path: nodeapp/static/frontend/
path: web/static/frontend/

- name: 'Log in to Docker Hub'
uses: docker/login-action@v3
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
- name: 'Build and push Docker image'
uses: docker/build-push-action@v5
with:
context: ./nodeapp
context: ./web
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down
8 changes: 3 additions & 5 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ RUN set -x \

COPY . .
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./coordinators/ /etc/nginx/conf.d/

RUN apk -U --no-cache upgrade \
&& apk --no-cache add socat \
&& apk --no-cache add nginx

EXPOSE 12596
HEALTHCHECK CMD curl --fail http://localhost:12596/selfhosted || exit 1
EXPOSE 80
HEALTHCHECK CMD curl --fail http://localhost:80 || exit 1

CMD ["sh", "robosats-client.sh"]
CMD ["sh", "run.sh"]
7 changes: 2 additions & 5 deletions web/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ http {

server {

listen 12596;
server_name robosats_client;

# add_header Access-Control-Allow-Headers "*";
# add_header Access-Control-Allow-Origin "*";
listen 80;
server_name robosats_web_client;

location / {
root /usr/src/robosats;
Expand Down
2 changes: 2 additions & 0 deletions web/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
nginx

0 comments on commit 8af3eda

Please sign in to comment.