Skip to content

Commit

Permalink
Merge pull request #30 from lichess-org/update-build-step-images
Browse files Browse the repository at this point in the history
Update build step versions + image deps
  • Loading branch information
fitztrev authored Jul 2, 2023
2 parents 9ea5d6c + 1a71068 commit ff3f072
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ 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 }}
password: ${{ secrets.TOKEN }}

- 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
Expand Down
1 change: 1 addition & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 5 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:focal-20230412
FROM ubuntu:focal-20230605

SHELL ["/bin/bash", "-c"]

Expand All @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions build/nginx/errors/502.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ <h2>lila-gitpod</h2>
<h3>To Fix:</h3>
<p>If you're just starting your workspace, wait until lila finishes compiling. It will automatically start after about 8-10 minutes.</p>
<p>Check the status in the lila terminal inside your workspace. Restart it manually if necessary.</p>
<p>For the full documentation, see <a href="https://lichess-org.github.io/lila-gitpod/">https://lichess-org.github.io/lila-gitpod/</a></p>

<footer>Nginx Error: <!--# echo var="status" default="" --></footer>
</div>
Expand Down

0 comments on commit ff3f072

Please sign in to comment.