aihao

joined 4 years ago
[–] aihao@lemmy.ml 1 points 2 years ago (1 children)

I want to map the /app/dist/assets/css/themes directory in the container to the host lemmy directory. Thereby, the theme file in the container can be modified on the host machine. Added the following code in docker-compose.yml:

 volumes:
   - ./volumes/lemmy-ui:/app/dist/assets/css/themes

After running the instance, no files appear in the host lemmy/volumes/lemmy-ui directory.

So, what should I do to map the /app/dist/assets/css/themes directory in the container to the host lemmy directory? ? ?

[–] aihao@lemmy.ml 1 points 2 years ago* (last edited 2 years ago) (1 children)

I change the database name to lemmyok in docker-compose.yml and lemmy.hjson, and use the command "docker-compose exec postgres psql -U lemmyok" and get " psql: error: FATAL: role "lemmyok" does not exist ",can't enter PG.

If I use the command docker-compose exec postgres psql -U lemmy without changing the database name, I can enter PG normally.

Am I doing something wrong?

What should be the correct solution?

[–] aihao@lemmy.ml 1 points 2 years ago (3 children)

What is the docker-compose command?

[–] aihao@lemmy.ml 1 points 2 years ago (5 children)

sudo docker exec -it postgres psql -U postgres ? Not correct?

2
submitted 2 years ago* (last edited 2 years ago) by aihao@lemmy.ml to c/lemmy_support@lemmy.ml
 

ubuntu10, Debian 11

Build from source always errors:

 Compiling quickcheck v1.0.3
   Compiling phf_generator v0.8.0
   Compiling phf_generator v0.10.0
   Compiling bcrypt v0.12.1
error: failed to run custom build command for `lemmy_utils v0.16.3 (/root/server/crates/utils)`

Caused by:
  process didn't exit successfully: `/root/server/target/release/build/lemmy_utils-3c8f53b241e1ef04/build-script-build` (exit status: 1)
 
***
stderr
  Error: FileRead { file: "translations/email/en.json", source: Os { code: 2, kind: NotFound, message: "No such file or directory" } }

How to solve this problem?

[–] aihao@lemmy.ml 1 points 2 years ago (10 children)

What I mean is to use the command docker exec -it 9f3678b6218f /bin/bash to enter the Docker instance and then modify the theme file.

[–] aihao@lemmy.ml 2 points 2 years ago (1 children)

i installed Lemmy with Docker, And the site is normal. The documentation says " save your theme file to ./volumes/lemmy-ui/extra_themes.”

I didn't find this ". /volumes/lemmy-ui/extra_themes", there are only these three files volumes, docker-compose.yml, lemmy.hjson in /lemmy/.

 

How to edit theme style in docker?

~# docker exec -it 9f3678b6218f /bin/bash OCI runtime exec failed: exec failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown

How can this be solved?