From 6e03f18d579a6fae770980ba5425b51d732d1497 Mon Sep 17 00:00:00 2001 From: Trevor Fitzgerald Date: Sun, 2 Jul 2023 09:58:35 -0400 Subject: [PATCH 1/4] Update Github build step image versions --- .github/workflows/docs.yml | 6 +++--- .github/workflows/publish-image.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7be6046..a755f74 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,9 +12,9 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: - python-version: 3.x + python-version: 3.9 - run: pip install mkdocs-material - run: mkdocs gh-deploy --force diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 26a8898..4e9ea69 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v3 - name: Log in to the Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -31,12 +31,12 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@v4 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@v4 with: context: . push: true From 19c541da52b11f229e787bb3c586763bea7057cb Mon Sep 17 00:00:00 2001 From: Trevor Fitzgerald Date: Sun, 2 Jul 2023 09:58:54 -0400 Subject: [PATCH 2/4] Bump image deps --- Dockerfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 792bf4f..4c0c548 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:focal-20230412 +FROM ubuntu:focal-20230605 SHELL ["/bin/bash", "-c"] @@ -20,17 +20,13 @@ RUN curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux RUN wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - RUN echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list -# Add elasticsearch apt source (for lila-search) -RUN curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - -RUN echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list - RUN sudo apt-get update && sudo apt update \ - && sudo apt-get install -y elasticsearch git-all mongodb-org nginx psmisc python3.9 python3-pip redis-server unzip vim zip + && sudo apt-get install -y git-all mongodb-org nginx psmisc python3.9 python3-pip redis-server unzip vim zip # Install Golang (For Picfit + Mailhog) -RUN wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz \ - && sudo tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz \ - && rm go1.20.2.linux-amd64.tar.gz +RUN wget https://go.dev/dl/go1.20.5.linux-amd64.tar.gz \ + && sudo tar -C /usr/local -xzf go1.20.5.linux-amd64.tar.gz \ + && rm go1.20.5.linux-amd64.tar.gz # Cleanup RUN sudo apt-get autoremove -y \ From 5efd0c0f0416f2b416b6807d462146f7cdceb616 Mon Sep 17 00:00:00 2001 From: Trevor Fitzgerald Date: Sun, 2 Jul 2023 09:59:21 -0400 Subject: [PATCH 3/4] add link to docs on nginx 502 page --- build/nginx/errors/502.html | 1 + 1 file changed, 1 insertion(+) diff --git a/build/nginx/errors/502.html b/build/nginx/errors/502.html index f1094ef..07b509b 100644 --- a/build/nginx/errors/502.html +++ b/build/nginx/errors/502.html @@ -39,6 +39,7 @@

lila-gitpod

To Fix:

If you're just starting your workspace, wait until lila finishes compiling. It will automatically start after about 8-10 minutes.

Check the status in the lila terminal inside your workspace. Restart it manually if necessary.

+

For the full documentation, see https://lichess-org.github.io/lila-gitpod/

Nginx Error:
From 1a71068ca8d691702feddb6ba76492c193806d50 Mon Sep 17 00:00:00 2001 From: Trevor Fitzgerald Date: Sun, 2 Jul 2023 10:03:05 -0400 Subject: [PATCH 4/4] list user accounts after seed is complete --- .gitpod.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitpod.yml b/.gitpod.yml index d6bf05e..18b6687 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -63,6 +63,7 @@ tasks: sudo mongod --fork --dbpath /workspace/mongodb-data --logpath /var/log/mongod.log mongo lichess /workspace/lila/bin/mongodb/indexes.js python3.9 /workspace/lila-db-seed/spamdb/spamdb.py + mongosh lichess --quiet --file /workspace/lila-gitpod/scripts/mongodb/users.js redis-server --daemonize yes gp sync-done setup ## Switch editor to lila workspace