Skip to content

Commit

Permalink
easy dev dockers on raspberry pi
Browse files Browse the repository at this point in the history
  • Loading branch information
tywrenn authored and bradymiller committed Nov 9, 2020
1 parent 7908307 commit 447b6cc
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You will need a "local" version of OpenEMR to make changes to the source code. T
- If you want to set up the base services(e.g. git, docker, docker-compose, openemr-cmd, minkube and kubectl) easily, please try [openemr-env-installer](https://github.com/openemr/openemr-devops/tree/master/utilities/openemr-env-installer)
- It's best to also add an `upstream` origin to keep your local fork up to date. [Check out this guide](https://oneemptymind.wordpress.com/2018/07/11/keeping-a-fork-up-to-date/) for more info.
- If you haven't already, [install git](https://git-scm.com/downloads) for your system
2. `cd openemr/docker/development-easy` (if you are running this on Raspberry Pi, then instead do `cd openemr/docker/development-easy-arm`)
2. `cd openemr/docker/development-easy` (if you are running this on Raspberry Pi, then instead do `cd openemr/docker/development-easy-arm32` or `cd openemr/docker/development-easy-arm64`)
- If you haven't already, [install Docker](https://docs.docker.com/install/) and [install compose](https://docs.docker.com/compose/install/) for your system
- If you want to troubleshoot with the below steps easier, please also [install openemr-cmd](https://github.com/openemr/openemr-devops/tree/master/utilities/openemr-cmd) for your system
- If you want to monitor and easily manage the docker environment, please also [install openemr-monitor](https://github.com/openemr/openemr-devops/tree/master/utilities/openemr-monitor) and [install portainer](https://github.com/openemr/openemr-devops/tree/master/utilities/portainer) for your system
Expand Down
File renamed without changes.
84 changes: 84 additions & 0 deletions docker/development-easy-arm32/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# couchdb is not available for 32bit arm, so not included
version: '3.1'
services:
mysql:
restart: always
image: jsurf/rpi-mariadb
command: ['mysqld','--character-set-server=utf8mb4','--ssl-ca=/etc/ssl/ca.pem','--ssl_cert=/etc/ssl/server-cert.pem','--ssl_key=/etc/ssl/server-key.pem']
ports:
- 8320:3306
volumes:
- ../development-insane/sql-ssl-certs-keys/easy/ca.pem:/etc/ssl/ca.pem:ro
- ../development-insane/sql-ssl-certs-keys/easy/server-cert.pem:/etc/ssl/server-cert.pem:ro
- ../development-insane/sql-ssl-certs-keys/easy/server-key.pem:/etc/ssl/server-key.pem:ro
- databasevolume:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
openemr:
restart: always
image: openemr/openemr:flex
ports:
- 8300:80
- 9300:443
volumes:
- ../..:/openemr:ro
- ../..:/var/www/localhost/htdocs/openemr:rw
- publicvolume:/var/www/localhost/htdocs/openemr/public:rw
- sitesvolume:/var/www/localhost/htdocs/openemr/sites:rw
- nodemodules:/var/www/localhost/htdocs/openemr/node_modules:rw
- vendordir:/var/www/localhost/htdocs/openemr/vendor:rw
- ccdamodule:/var/www/localhost/htdocs/openemr/ccdaservice:rw
- logvolume:/var/log
environment:
DEBUG_COLORS: "true"
TERM: xterm-256color
COLORTERM: truecolor
MYSQL_HOST: mysql
MYSQL_ROOT_PASS: root
MYSQL_USER: openemr
MYSQL_PASS: openemr
OE_USER: admin
OE_PASS: pass
EASY_DEV_MODE: "yes"
EASY_DEV_MODE_NEW: "yes"
# e2e requires chromium, which alpine isn't giving us in arm
# TODO, need to add more granular setting for this to allow other composer developer dependencies, but not e2e
DEVELOPER_TOOLS: "no"
XDEBUG_IDE_KEY: PHPSTORM
XDEBUG_PROFILER_ON: 1
GITHUB_COMPOSER_TOKEN: c313de1ed5a00eb6ff9309559ec9ad01fcc553f0
OPENEMR_DOCKER_ENV_TAG: easy-dev-docker
OPENEMR_SETTING_rest_api: 1
OPENEMR_SETTING_rest_fhir_api: 1
OPENEMR_SETTING_rest_portal_api: 1
OPENEMR_SETTING_rest_portal_fhir_api: 1
OPENEMR_SETTING_portal_onsite_two_enable: 1
OPENEMR_SETTING_ccda_alt_service_enable: 3
OPENEMR_SETTING_user_debug: 3
OPENEMR_SETTING_gbl_ldap_host: 'ldap://openldap:389'
OPENEMR_SETTING_gbl_ldap_dn: 'cn={login},dc=example,dc=org'
depends_on:
- mysql
phpmyadmin:
restart: always
image: phpmyadmin
ports:
- 8310:80
environment:
PMA_HOSTS: mysql
openldap:
restart: always
image: openemr/dev-ldap:easy
environment:
LDAP_TLS_VERIFY_CLIENT: try
LDAP_TLS_CA_CRT_FILENAME: ca.pem
LDAP_TLS_CRT_FILENAME: server-cert.pem
LDAP_TLS_KEY_FILENAME: server-key.pem
volumes:
databasevolume: {}
publicvolume: {}
sitesvolume: {}
nodemodules: {}
vendordir: {}
ccdamodule: {}
logvolume: {}
2 changes: 2 additions & 0 deletions docker/development-easy-arm64/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Easy Development Docker Environment for Raspberry Pi
The instructions for The Easy Development Docker environment can be found at [CONTRIBUTING.md](../../CONTRIBUTING.md#code-contributions-local-development).
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ services:
- mysql
phpmyadmin:
restart: always
image: phpmyadmin/phpmyadmin
image: phpmyadmin
ports:
- 8310:80
environment:
Expand All @@ -87,15 +87,14 @@ services:
environment:
COUCHDB_USER: admin
COUCHDB_PASSWORD: password
#maybe later
#openldap:
# restart: always
# image: openemr/dev-ldap:easy
# environment:
# LDAP_TLS_VERIFY_CLIENT: try
# LDAP_TLS_CA_CRT_FILENAME: ca.pem
# LDAP_TLS_CRT_FILENAME: server-cert.pem
# LDAP_TLS_KEY_FILENAME: server-key.pem
openldap:
restart: always
image: openemr/dev-ldap:easy
environment:
LDAP_TLS_VERIFY_CLIENT: try
LDAP_TLS_CA_CRT_FILENAME: ca.pem
LDAP_TLS_CRT_FILENAME: server-cert.pem
LDAP_TLS_KEY_FILENAME: server-key.pem
volumes:
databasevolume: {}
publicvolume: {}
Expand Down
2 changes: 1 addition & 1 deletion docker/development-easy-light/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ services:
- mysql
phpmyadmin:
restart: always
image: phpmyadmin/phpmyadmin
image: phpmyadmin
ports:
- 8310:80
environment:
Expand Down
2 changes: 1 addition & 1 deletion docker/development-easy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ services:
- mysql
phpmyadmin:
restart: always
image: phpmyadmin/phpmyadmin
image: phpmyadmin
ports:
- 8310:80
environment:
Expand Down
2 changes: 1 addition & 1 deletion docker/development-insane/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ services:
MYSQL_ROOT_PASSWORD: root
phpmyadmin:
restart: always
image: phpmyadmin/phpmyadmin
image: phpmyadmin
ports:
- 8200:80
environment:
Expand Down

0 comments on commit 447b6cc

Please sign in to comment.