Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial release #1

Merged
merged 12 commits into from
Jan 22, 2024
Merged

Initial release #1

merged 12 commits into from
Jan 22, 2024

Conversation

thespad
Copy link
Member

@thespad thespad commented Jan 19, 2024

@thespad thespad requested a review from a team January 19, 2024 15:18
@thespad thespad self-assigned this Jan 19, 2024
@LinuxServer-CI
Copy link
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/monica/v4.0.0-pkg-none-dev-e26f95d785694c5d34c674e25835bd03d5a74ce1-pr-1/index.html
https://ci-tests.linuxserver.io/lspipepr/monica/v4.0.0-pkg-none-dev-e26f95d785694c5d34c674e25835bd03d5a74ce1-pr-1/shellcheck-result.xml

Tag Passed
amd64-v4.0.0-pkg-none-dev-e26f95d785694c5d34c674e25835bd03d5a74ce1-pr-1
arm64v8-v4.0.0-pkg-none-dev-e26f95d785694c5d34c674e25835bd03d5a74ce1-pr-1

@LinuxServer-CI
Copy link
Contributor

I am a bot, here is the pushed image/manifest for this PR:

ghcr.io/linuxserver/lspipepr-monica:v4.0.0-pkg-none-dev-34a06a20b9415d4541ac727e1a50ec3404e23a92-pr-1

@thelamer
Copy link
Member

@thespad I can't get this to work am I doing something stupid here?

In Connection.php line 760:
                                                                                                                                    
  Database file at path [monica] does not exist. Ensure this is an absolute path to the database. (SQL: PRAGMA foreign_keys = ON;)  
                                                                                                                                    

In SQLiteConnector.php line 34:
                                                                                                   
  Database file at path [monica] does not exist. Ensure this is an absolute path to the database.  
                                                                                                   

Running a mariadb container:

docker run --rm -it \
  --name=mariadb \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Etc/UTC \
  -e MYSQL_ROOT_PASSWORD=monica \
  -e MYSQL_DATABASE=monica \
  -e MYSQL_USER=monica \
  -e MYSQL_PASSWORD=monica \
  -p 3306:3306 \
  lscr.io/linuxserver/mariadb:latest bash
  
  
  docker run --rm -it \
  --name=Monica \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Etc/UTC \
  -e DB_HOST=192.168.10.42 \
  -e DB_PORT=3306 \
  -e DB_USERNAME=monica \
  -e DB_PASSWORD=monica \
  -e DB_DATABASE=monica \
  -p 80:80 \
  lspipepr/monica:amd64-v4.0.0-pkg-none-dev-e26f95d785694c5d34c674e25835bd03d5a74ce1-pr-1

I have confirmed I can access the DB via 192.168.10.42:

mysql -h 192.168.10.42 -u monica -p monica
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 10.11.5-MariaDB-log Alpine Linux

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [monica]> show tables;
Empty set (0.001 sec)

MariaDB [monica]> 

@LinuxServer-CI
Copy link
Contributor

I am a bot, here is the pushed image/manifest for this PR:

ghcr.io/linuxserver/lspipepr-monica:v4.0.0-pkg-none-dev-3dc7555756b2febcc0fc8aea0ed452a4fc62d0ea-pr-1

@thespad
Copy link
Member Author

thespad commented Jan 21, 2024

Can't replicate the behaviour:

services:
  monica-test:
    image: ghcr.io/linuxserver/lspipepr-monica:v4.0.0-pkg-none-dev-3dc7555756b2febcc0fc8aea0ed452a4fc62d0ea-pr-1
    container_name: monica-test
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - DB_HOST=monica-db-test
      - DB_PORT=3306
      - DB_USERNAME=monica
      - DB_PASSWORD=monica
      - DB_DATABASE=monica
      - APP_URL=https://monica-test.spad.uk
    volumes:
      - ./config:/config
    ports:
      - 8123:80
    restart: unless-stopped

  monica-db-test:
    image: lscr.io/linuxserver/mariadb:latest
    container_name: monica-db-test
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - MYSQL_ROOT_PASSWORD=monica
      - MYSQL_DATABASE=monica
      - MYSQL_USER=monica
      - MYSQL_PASSWORD=monica
    volumes:
      - ./db:/config
    restart: unless-stopped

And:

monica-test  | [migrations] started
monica-test  | [migrations] 01-nginx-site-confs-default: executing...
monica-test  | [migrations] 01-nginx-site-confs-default: succeeded
monica-test  | [migrations] done
monica-test  | ───────────────────────────────────────
monica-test  | 
monica-test  |       ██╗     ███████╗██╗ ██████╗
monica-test  |       ██║     ██╔════╝██║██╔═══██╗
monica-test  |       ██║     ███████╗██║██║   ██║
monica-test  |       ██║     ╚════██║██║██║   ██║
monica-test  |       ███████╗███████║██║╚██████╔╝
monica-test  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
monica-test  | 
monica-test  |    Brought to you by linuxserver.io
monica-test  | ───────────────────────────────────────
monica-test  | 
monica-test  | To support LSIO projects visit:
monica-test  | https://www.linuxserver.io/donate/
monica-test  | 
monica-test  | ───────────────────────────────────────
monica-test  | GID/UID
monica-test  | ───────────────────────────────────────
monica-test  | 
monica-test  | User UID:    1000
monica-test  | User GID:    1000
monica-test  | ───────────────────────────────────────
monica-test  | 
monica-test  | Setting resolver to  127.0.0.11
monica-test  | Setting worker_processes to 8
monica-test  | generating self-signed keys in /config/keys, you can replace these with your own keys if required
monica-test  | ..+.......+......+..+...+++++++++++++++++++++++++++++++++++++++*.+...+...........+++++++++++++++++++++++++++++++++++++++*............+.........................+...+..+........................+.+...+.....+.+.....+.......+........+....+..+...+...+...+......+.+...+.........+.....+...............+.............+..+...+....+......+.................+.+......+......+.....+...............+...+....+..+.+...+...........+.........+....+......+.....+.+.....+.+...............+...+.....+....+...........+.+.....+.+.....+...+......+...+................+.....+.......+........+.+...+..+.+..............+.+.....+.......+...+............+...........+......+..........+.....+...+.+..+...............+............+......+......+...+..........+...+.........+..............+....+...+...+..............+......+....+...+...+......+...+..+.+..+.+.....+......+.....................+....+...++++++
monica-test  | ..+.+.....................+.....+.+...+++++++++++++++++++++++++++++++++++++++*......+...+++++++++++++++++++++++++++++++++++++++*.....+........+....+...+..+.............+..+......+.........+......+...................+..+...+..........+..+....+......+...+......+..+...+....+...+...............+..+......+.+.....++++++
monica-test  | -----
monica-test  | 
monica-test  |    INFO  Application key set successfully.  
monica-test  | 
monica-test  | An application key was generated at start up, as no environment variable was set.
monica-test  | Waiting for DB to be available
monica-test  | ✓ Maintenance mode: on
monica-test  | ✓ Resetting application cache
monica-test  | ✓ Clear config cache
monica-test  | ✓ Resetting route cache
monica-test  | ✓ Resetting view cache
monica-test  | ✓ Symlink the storage folder
monica-test  | ✓ Performing migrations
monica-test  | ✓ Check for encryption keys
monica-test  | ✓ Ping for new version
monica-test  | ✓ Cache configuraton
monica-test  | ✓ Maintenance mode: off
monica-test  | Monica v4.0.0 is set up, enjoy.
monica-test  | [custom-init] No custom files found, skipping...
monica-test  | [ls.io-init] done.

@LinuxServer-CI
Copy link
Contributor

I am a bot, here is the pushed image/manifest for this PR:

ghcr.io/linuxserver/lspipepr-monica:v4.0.0-pkg-none-dev-edeb2e48deaf5b49ad65258b2632eb5fdf0d6fc4-pr-1

@LinuxServer-CI
Copy link
Contributor

I am a bot, here is the pushed image/manifest for this PR:

ghcr.io/linuxserver/lspipepr-monica:v4.0.0-pkg-none-dev-d4c5e837edaeb67520398f4c760f1b55c43b373b-pr-1

@LinuxServer-CI
Copy link
Contributor

I am a bot, here is the pushed image/manifest for this PR:

ghcr.io/linuxserver/lspipepr-monica:v4.0.0-pkg-none-dev-0a8e5818714992130f3921448b0ec3a5d7651fc0-pr-1

Copy link
Member

@thelamer thelamer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending doc changes about env and http/https

@LinuxServer-CI
Copy link
Contributor

I am a bot, here is the pushed image/manifest for this PR:

ghcr.io/linuxserver/lspipepr-monica:v4.0.0-pkg-none-dev-1207465370d6e326266eb6689116e90cadc71c87-pr-1

@LinuxServer-CI
Copy link
Contributor

I am a bot, here is the pushed image/manifest for this PR:

ghcr.io/linuxserver/lspipepr-monica:v4.0.0-pkg-none-dev-476d793115778c2d6bcd9548921da2e860a8d4bc-pr-1

@thespad thespad merged commit 66e548d into main Jan 22, 2024
2 checks passed
@thespad thespad deleted the initial branch January 22, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants