lichess-org / lila-docker Goto Github PK
View Code? Open in Web Editor NEWLichess local development using Docker Compose.
License: GNU Affero General Public License v3.0
Lichess local development using Docker Compose.
License: GNU Affero General Public License v3.0
When we run lila-docker from other directories like repos/lila like ../../lila-docker db
it gives error because of files not being found.
Add
cd "$(dirname "$0")"
before the case statement
No idea about scala and how it runs but I installed docker on my mac and cloned this repo
When I run this command
lila-docker git:(main) ./lila-docker start
it takes a while and seems to be going to good but after a bit I see this error
lila-1 | [info] done compiling
lila-1 | [info] compiling 7 Scala sources to /lila/modules/appeal/target/scala-3.4.1/classes ...
lila-1 | [info] done compiling
lila-1 | [info] compiling 6 Scala sources to /lila/modules/playban/target/scala-3.4.1/classes ...
lila-1 | Killed
lila-1 exited with code 0
Should I allocate more memory to docker or something on those lines?
See console error:
Refused to load the font 'data:application/octet-stream;....'
because it violates the following Content Security Policy directive:
"font-src 'self' localhost:8080".
See console error:
Refused to execute inline script because it violates the following Content Security Policy directive:
"script-src https://*.paypal.com https://*.stripe.com 'nonce-nAz29QMpZzMbeetZjks5zcwp' 'self' localhost:8080".
Either the 'unsafe-inline' keyword, a hash ('sha256-b+mf6EIMFYxuAIdk6/2IF09zTUsJrlW6qZaw4opG6QU='), or a nonce ('nonce-...') is required to enable inline execution.
For each port that gets exposed to the host OS, allow it to be customized in case it's already in use.
ports:
- - 8080:80
+ - ${LILA_PORT:-8080}:80
Add coaches flag to the database seeder corresponding to changes in lila-db-seed.
I am setting up local docker for flutter mobile app and seeing the following error
=> [python internal] load build definition from python.Dockerfile 0.0s
=> => transferring dockerfile: 231B 0.0s
=> [ui internal] load build definition from ui.Dockerfile 0.0s
=> => transferring dockerfile: 383B 0.0s
=> ERROR [python internal] load metadata for docker.io/library/python:3.12.3-alpine3.19 0.1s
=> ERROR [ui internal] load metadata for docker.io/library/node:20.12.2-bookworm-slim 0.1s
=> ERROR [python internal] load metadata for docker.io/library/eclipse-temurin:22_36-jdk-alpine 0.1s
------
> [python internal] load metadata for docker.io/library/python:3.12.3-alpine3.19:
------
------
> [ui internal] load metadata for docker.io/library/node:20.12.2-bookworm-slim:
------
------
> [python internal] load metadata for docker.io/library/eclipse-temurin:22_36-jdk-alpine:
------
failed to solve: node:20.12.2-bookworm-slim: failed to resolve source metadata for docker.io/library/node:20.12.2-bookworm-slim: error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``
Do i need specific version of python or node? I have node v22.0.0 not sure why the error is specifying other node version.
I want to setup lila using docker but I want each container to have its own server. so that the load can be distributed.
Support a link that, when clicked, will start a gitpod instance but with a PR's branch checked out instead of master
. Will allow others to test a PR easily.
You can setup environment variables on Gitpod in the url like this:
- https://gitpod.io/#https://github.com/lichess-org/lila-docker
+ https://gitpod.io/#lila-pr=12345/https://github.com/lichess-org/lila-docker
Then, if lila-pr
is set, we can fetch and checkout during setup.
git fetch upstream pull/12345/head:preview
git checkout preview
Use ./lila-docker stop
and then ./lila-docker start
. The normal containers start as expected but optional ones don't, you have to start them manually.
Expected behavior: optional containers also start automatically.
By default, your gitpod-hosted lichess dev site is only accessible from the same browser you're logged into gitpod with. All other requests get a 401.
This causes problems for people trying to access it via code or the mobile app for instance if they're trying to use it that way.
gitpod_public()
When writing a blog post, the image upload doesn't work in the dev environment.
Possible picfit misconfiguration.
03:13:28.632 [error] p.c.s.n.PlayRequestHandler - Cannot invoke the action
lila.base.LilaException$$anon$1: Not Found 404 page not found
at lila.base.LilaException$.apply(LilaException.scala:19)
at lila.base.LilaTypes.fufail(LilaTypes.scala:21)
at lila.base.LilaTypes.fufail$(LilaTypes.scala:8)
at lila.Lila$.fufail(Lila.scala:3)
at lila.memo.package$package$.fufail(package.scala:3)
at lila.memo.PicfitApi.lila$memo$PicfitApi$picfitServer$$$_$store$$anonfun$1(Picfit.scala:95)
at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:470)
at scala.concurrent.BatchingExecutor$AbstractBatch.runN(BatchingExecutor.scala:134)
at scala.concurrent.BatchingExecutor$AsyncBatch.apply(BatchingExecutor.scala:163)
at scala.concurrent.BatchingExecutor$AsyncBatch.apply(BatchingExecutor.scala:146)
can get ui when running when running using docker it just shwos text no ui nothing
I was looking to have real outbound emails for registration. I'm not sure how to configure the docker image to do this.
it would help when we are working with broadcasts
After deploying on a linode/Akamai server the main lila website hosted on port 8080 keep changing the address to localhost.
Example:
Server IP : 123.22.89.53:8080
to localhost:8080
I deployed the development server on my EC2 instance. There is no issue accessing ports 8081 or 8025, but the main port 8080 is causing problems. Looking at the docker logs for this container this is the error.
24.4.198.26 - - [10/Feb/2024:00:42:31 +0000] "GET / HTTP/1.1" 301 0 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5 Mobile/15E148 Safari/604.1" "
Update Scalachess section of the Readme and add steps on how to run sbt publishLocal
to use local copy instead of maven-published release.
May have to add the scalachess repo as a volume to the lila container.
Occasionally, the setup appears to crash in various places.
I think it'd be good to have a command which restarts from the step where it failed at (restarting the step as well).
To allow easy patron-related testing.
Thanks
Hi,
I love this initiative of having a gitpod environment to onboard on lichess dev.
In the doc it is stated that
UI (JS/CSS) development:
To watch for Typescript/SCSS changes and automatically recompile:
docker compose run --rm ui bash -c "/lila/ui/build -w"
Unfortunately, when I did execute this command, it seems not enough to fully reflect changes on the running website.
Basically, I have to restart lila with:
Scala development:
To restart lila (after making changes to any Scala code):
docker compose restart lila
despite my changes are not directly related to Scala code.
Did I misunderstand something?
The current dev workflow is not so satisfactory.
Basically, I was trying to debug the JS code with some console.log...
And I have to wait lots of time to see the actual effect.
I'm sure I'm missing something.
Thanks a lot!
If someones starts the services and then later on decides they want to add another optional service, there's not an easy way to do it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.