Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Error while trying to install with docker-compose.yaml #64

Closed
mcanyucel opened this issue Feb 11, 2024 · 1 comment
Closed

Error while trying to install with docker-compose.yaml #64

mcanyucel opened this issue Feb 11, 2024 · 1 comment

Comments

@mcanyucel
Copy link

Thanks for this app!

I saw it while searching for a self-hosted journal/diary app. It looks really nice and I want to give it a try but I get the following error when I try to create a stack with the given docker-compose.yaml:

failed to deploy a stack: journal Pulling journal Warning failed to solve: process "/bin/sh -c gem update --system" did not complete successfully: exit code: 1 

I am not very proficient in docker or docker compose; I have searched the net but I think I am the first one encountering this error ':)

My compose file is as follows:

networks:
  journal:
    internal: true
  proxy:

services:
  journal:
    build: https://github.com/inoda/journal.git#main
    image: gh-inoda-journal
    volumes:
      - /home/<user>/containers/journal/data:/app:rw
    environment:
      - RAILS_ENV=production
      - SITE_DOMAIN=diary.mydomain.com
      - DATABASE_URL=postgres://replaceme:RePLAcEpAsS@journal-db/placeholder
      - CIPHER_KEY=<some key>= # openssl rand -base64 32
      - SHARING_TOKEN_CIPHER_IV=<some vector>== # openssl rand -base64 16
      - SECRET_KEY_BASE=<some string> # random alphanumerical
    ports:
      - <a  port>:3000
    networks:
      - proxy
      - journal
    restart: unless-stopped

  journal-db:
    image: postgres:alpine
    healthcheck:
      test: ["CMD", "pg_isready", "-U", "replaceme"]
    environment:
      - POSTGRES_DB=placeholder
      - POSTGRES_USER=replaceme
      - POSTGRES_PASSWORD=RePLAcEpAsS
    volumes:
      - /home/<user>/containers/journal/db:/var/lib/postgresql/data:rw
    networks:
      - journal
    restart: unless-stopped

@mcanyucel
Copy link
Author

OK when I use command line rather than Portainer, I realize that the error is the same as issue #58:

 => ERROR [journal  3/12] RUN gem update --system                                                                 21.5s
------
 > [journal  3/12] RUN gem update --system:
21.43 ERROR:  Error installing rubygems-update:
21.43   There are no versions of rubygems-update (= 3.5.6) compatible with your Ruby & RubyGems
21.43   rubygems-update requires Ruby version >= 3.0.0. The current ruby version is 2.6.6.146.
21.43 ERROR:  While executing gem ... (NoMethodError)
21.43     undefined method `version' for nil:NilClass
21.47 Updating rubygems-update
------
failed to solve: process "/bin/sh -c gem update --system" did not complete successfully: exit code: 1

So I am closing the error in favor of #58

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant