From be6315aa49085807a45852230f59a3cf60863cc2 Mon Sep 17 00:00:00 2001 From: b4iterdev Date: Fri, 22 Nov 2024 14:21:04 +0700 Subject: [PATCH 1/5] add docker compose tutorial --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index 135a592..71be70b 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,37 @@ It is comprised of three parts: Further updates for new features, as well as a detailed setup guide and an easy to host docker container are in the pipeline! +# Docker Compose tutorial: + +First, create a seperate folder in your working directory and create a folder ``` config``` inside it: +``` +mkdir -p spectra-frontend/config +cd spectra-frontend +``` + +Create a file named docker-compose.yml as follow: +``` +--- +services: + valo-spectra-frontend: + image: "ghcr.io/valospectra/overlay" + ports: + - "3000:80" + volumes: + - ./config:/usr/share/nginx/html/assets/config/ +``` +You can change ```3000``` to a different port which you want the frontend accessible outside the container to. + +Inside ``` config``` folder, create a file named ```config.json``` with the following content: +``` +{ + "serverEndpoint": "https://localhost:5200" +} +``` +Replace ``` https://localhost:5200``` with your Spectra Server address and outcoming port (default is 5200). + +After that you can start the frontend by running ```docker compose up -d``` and the frontend are accessible at port ```3000``` by default. + +# DISCLAIMER + Spectra-Client isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing Riot Games properties. Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc. From ef45f6b9c9077eddd65865ff3b33a032b7dcfcae Mon Sep 17 00:00:00 2001 From: b4iterdev Date: Fri, 22 Nov 2024 14:21:42 +0700 Subject: [PATCH 2/5] beauty treatment to README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 71be70b..cbd6e81 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ mkdir -p spectra-frontend/config cd spectra-frontend ``` -Create a file named docker-compose.yml as follow: +Create a file named ```docker-compose.yml``` as follow: ``` --- services: From 08e3e27f8e7b53e85bc5e056f3ca35fe4a57f33c Mon Sep 17 00:00:00 2001 From: b4iterdev Date: Fri, 22 Nov 2024 22:41:48 +0700 Subject: [PATCH 3/5] add multi-arch build (amd64 and arm64) --- .github/workflows/build-and-publish.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 704af04..d3fd9b4 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -13,8 +13,11 @@ jobs: - name: Check out the code uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v3.2.0 - name: Log in to Docker Hub uses: docker/login-action@v3 @@ -31,6 +34,7 @@ jobs: uses: docker/build-push-action@v6 with: context: . + platforms: linux/amd64,linux/arm64 push: true tags: | ghcr.io/valospectra/overlay:latest From 8e2006aeaa8c21a4f5fa4825d5a5bdc1dd72b906 Mon Sep 17 00:00:00 2001 From: b4iterdev Date: Fri, 22 Nov 2024 22:49:44 +0700 Subject: [PATCH 4/5] update action version --- .github/workflows/build-and-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index d3fd9b4..fcacb81 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -8,16 +8,16 @@ jobs: build-and-push: runs-on: ubuntu-latest permissions: - packages: write +on packages: write steps: - name: Check out the code uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3.2.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.2.0 + uses: docker/setup-buildx-action@v3.7.1 - name: Log in to Docker Hub uses: docker/login-action@v3 From 1c087cd464ebb2b648a5a9203dda51dcee5005d1 Mon Sep 17 00:00:00 2001 From: b4iterdev Date: Fri, 22 Nov 2024 22:52:05 +0700 Subject: [PATCH 5/5] fix stupid error lead to invaild syntax --- .github/workflows/build-and-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index fcacb81..27f1da2 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -8,7 +8,7 @@ jobs: build-and-push: runs-on: ubuntu-latest permissions: -on packages: write + packages: write steps: - name: Check out the code uses: actions/checkout@v4 @@ -17,7 +17,7 @@ on packages: write uses: docker/setup-qemu-action@v3.2.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.7.1 + uses: docker/setup-buildx-action@v3.2.0 - name: Log in to Docker Hub uses: docker/login-action@v3