simplerisk / docker Goto Github PK
View Code? Open in Web Editor NEWSimpleRisk Docker Repository
Home Page: https://www.simplerisk.com
License: Mozilla Public License 2.0
SimpleRisk Docker Repository
Home Page: https://www.simplerisk.com
License: Mozilla Public License 2.0
Kubernetes Ingress expects TLS to terminate at the ingress controller, all communication from that point on is plaintext (port 80). The rewrite rule included in the common/000-default.conf
files causes a redirect loop when deployed to a kubernetes cluster with an ingress controller.
reading through the project, I noticed the minimal image variant includes apache.
A version which only provides php-fpm for cgi would be beneficial.
Was building the 18.04 image and received this error
"No releases available for package "pecl.php.net/mcrypt"
install failed"
Mcrypt has been depreciated and was wondering if its a dependent module or if I can use something else.
The entrypoint executes some commands on MySQL:
print_log "initial_setup:info" "Applying changes to MySQL database... (MySQL error will be printed to console as guidance)"
exec_cmd "mysql --protocol=socket -u $AUTO_DB_SETUP_USER -p$AUTO_DB_SETUP_PASS -h$SIMPLERISK_DB_HOSTNAME -P$SIMPLERISK_DB_PORT <<EOSQL
CREATE DATABASE `${SIMPLERISK_DB_DATABASE}`;
USE `${SIMPLERISK_DB_DATABASE}`;
\. ${SCHEMA_FILE}
CREATE USER ${SIMPLERISK_DB_USERNAME}@'%' IDENTIFIED BY '${SIMPLERISK_DB_PASSWORD}';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER ON `${SIMPLERISK_DB_DATABASE}`.* TO ${SIMPLERISK_DB_USERNAME}@'%';
EOSQL" "Was not able to apply settings on database. Check error above. Exiting."
The problem is that, as this is a bash script, the content inside the backticks are being interpreted as commands.
Mapping the 6 volumes to local disk (so that the config and database is stored outside of the docker container) breaks the simplerisk container.
Please advise
Container remains running
Container crashes after about 10-15s with the following logs:
* Starting MySQL database server mysqld
su: warning: cannot change directory to /nonexistent: No such file or directory
...done.
* Starting periodic command scheduler cron
...done.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
* Starting MySQL database server mysqld
su: warning: cannot change directory to /nonexistent: No such file or directory
...fail!
sed: no input files
It seems as though the MySQL process is dying due to not having a homedir set for the mysql user.
Add a line to the dockerfile to create the expected homedir. I'll submit a PR which seems to rectify this issue.
installation procedure does not work. can you help me ?
the readme does not provide information on how to use secrets,
many projects opt for a prefix or suffix like "_FILE" for their environment variables.
I have a posix compliant function for fetching secrets and populating environment variables if you need one provided.
my function also supports default values if the variable is not set.
This image can’t be compatible with the user having the extras folder (for those paid features) under /var/www/simple risk. It will failed to upgrade process after importing the DB backup from old system. Dorian knows more details.
the DB_SETUP_PASS environment variable does not support the '<' character.
using a database password with a '<' symbol causes the following error messsage:
bash: line 1: <REST_OF_PASSWORD_AFTER_SYMBOL>: No such file or directory
Was not able to apply settings on database. Check error above. Exiting.
when setting up simplerisk with mariadb
simplerisk will crash with the message:
Can't create database '<DATABASE_NAME>'; database exists
mariadb container is responsible for creating the database
simplerisk should populate database with tables
version: '3'
services:
simplerisktest:
image: phsa-simplerisknew:v1.0
hostname: risktest
volumes:
- "./bashrc:/root/.bashrc:rw"
- "html:/var/www/simplerisk:rw"
- "html-etc-ssl:/etc/apache2/ssl:rw"
- "mysql-data:/var/lib/mysql:rw"
- "mysql-etc:/etc/mysql:rw"
- "var-log:/var/log:rw"
- "config:/configurations:rw"
- "pw:/passwords:rw"
- /etc/localtime:/etc/localtime:ro
phpmyadmintest:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmintest
environment:
- PMA_ARBITRARY=1
- PMA_ABSOLUTE_URI= https://phsarisktest.phsabc.ehcnet.ca/phpmyadmin/
- PMA_HOST=simplerisktest
restart: always
volumes:
- /sessions
- "./config.inc.php:/etc/phpmyadmin/config.inc.php:rw"
- ./ssl-cert:/ssl-cert
- ./nginx.conf:/etc/nginx.conf
volumes:
html:
html-etc-ssl:
mysql-data:
mysql-etc:
var-log:
config:
pw:
The simplerisk
image is published to a repository on Docker Hub. The simplerisk-minimal
image, however, has a repository on Docker Hub but is not published to it. Please publish this image as well.
get 302 for / to redirect to /
this causes the web browser to display
ERR_TOO_MANY_REDIRECTS
web application should not redirect a path to the same path as this causes redirect loops
Local scan (get only critical, discard CVEs with "Won't fix" status):
> grype -q simplerisk/simplerisk-minimal | grep Critical | grep -v "won't fix"
linux-libc-dev 5.10.178-3 deb CVE-2020-36694 Critical
> grype -q php:8.1-apache | grep Critical | grep -v "won't fix"
linux-libc-dev 5.10.178-3 deb CVE-2020-36694 Critical
do you have any plans to implement an alpine image variant
I've installed SimpleRisk with the FIRST_TIME_SETUP parameter, everything runs okay.
But after I kill the container and start it again, this varible in config.php is set the "false" again and when I access the application, it goes back to installation page.
This shouldn't happen and it should let me in the application instead.
Can you add another parameter like SIMPLERISK_INSTALLED and set the value in config.php
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.