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

Mercy odroid rebuild 2023 05 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
187 changes: 187 additions & 0 deletions build_odroid/roles/build_clients/files/elm_static/app.admin-styles.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions build_odroid/roles/build_clients/files/elm_static/templates.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions build_odroid/roles/build_clients/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,35 @@
delegate_to: 127.0.0.1

# Adapted from Midwife-EMR package.json script, build_admin_client_compiler
- name: Build the admin client Docker image
shell: docker build -f Dockerfile -t midwife-emr-compile-admin-client --no-cache .
args:
chdir: roles/build_clients/files/app/client/elm/admin/
become: no
delegate_to: 127.0.0.1
# - name: Build the admin client Docker image
# shell: docker build -f Dockerfile -t midwife-emr-compile-admin-client --no-cache .
# args:
# chdir: roles/build_clients/files/app/client/elm/admin/
# become: no
# delegate_to: 127.0.0.1

# Adapted from Midwife-EMR package.json script, build_medical_client_compiler
- name: Build the medical client Docker image
shell: docker build -f Dockerfile -t midwife-emr-compile-medical-client --no-cache .
args:
chdir: roles/build_clients/files/app/client/elm/medical/
become: no
delegate_to: 127.0.0.1
# - name: Build the medical client Docker image
# shell: docker build -f Dockerfile -t midwife-emr-compile-medical-client --no-cache .
# args:
# chdir: roles/build_clients/files/app/client/elm/medical/
# become: no
# delegate_to: 127.0.0.1

# Adapted from Midwife-EMR package.json script, admin_client_prod
- name: Compile the admin client
shell: docker run --init --name=midwife-emr-compile-admin-client --rm -v $(pwd)/client/elm/admin:/opt/src -v $(pwd)/../dist:/opt/dist midwife-emr-compile-admin-client:latest webpack --config webpack.prod.js
args:
chdir: roles/build_clients/files/app
become: no
delegate_to: 127.0.0.1
# - name: Compile the admin client
# shell: docker run --init --name=midwife-emr-compile-admin-client --rm -v $(pwd)/client/elm/admin:/opt/src -v $(pwd)/../dist:/opt/dist midwife-emr-compile-admin-client:latest webpack --config webpack.prod.js
# args:
# chdir: roles/build_clients/files/app
# become: no
# delegate_to: 127.0.0.1

# Adapted from Midwife-EMR package.json script, medical_client_prod
- name: Compile the medical client
shell: docker run --init --name=midwife-emr-compile-medical-client --rm -v $(pwd)/client/elm/medical:/opt/src -v $(pwd)/../dist:/opt/dist midwife-emr-compile-medical-client:latest webpack --config webpack.prod.js
args:
chdir: roles/build_clients/files/app
become: no
delegate_to: 127.0.0.1
# - name: Compile the medical client
# shell: docker run --init --name=midwife-emr-compile-medical-client --rm -v $(pwd)/client/elm/medical:/opt/src -v $(pwd)/../dist:/opt/dist midwife-emr-compile-medical-client:latest webpack --config webpack.prod.js
# args:
# chdir: roles/build_clients/files/app
# become: no
# delegate_to: 127.0.0.1

# Note: we don't copy the compiled output to the target yet.
4 changes: 2 additions & 2 deletions build_odroid/roles/midwife-emr/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

- name: Install Midwife-EMR
git:
repo: git://github.com/lightsys/midwife-EMR.git
repo: https://github.com/lightsys/midwife-EMR.git
dest: /srv/midwife-emr/midwife-emr
version: "{{ midwife_emr_version }}"

Expand All @@ -22,7 +22,7 @@

- name: Copy Elm admin and medical client deliverables into place
copy:
src: ../../build_clients/files/dist/
src: ../../build_clients/files/elm_static/
dest: /srv/midwife-emr/midwife-emr/static/js

- name: Change ownership of Midwife-EMR repo
Expand Down
2 changes: 1 addition & 1 deletion scripts/EMMC-DRIVE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Replace this line with your eMMC drive. USE CAUTION, see README.md.
/dev/sdc