Skip to content
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
27 changes: 27 additions & 0 deletions .github/workflows/build-deliver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# docker continuous delivery
# deliver docker images to configured repo with tags to match branches and git tags
---
name: Build & Deliver
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout git commit
uses: actions/checkout@main

- name: Publish to GitHub Container Registry
# TODO: pin to hash
uses: elgohr/Publish-Docker-Github-Action@main
with:
name: ${{ github.repository }}
registry: ghcr.io

# GitHub actor
username: ${{ github.actor }}

# GitHub access token
password: ${{ secrets.GITHUB_TOKEN }}

# create docker image tags to match git tags
tag_names: true
12 changes: 12 additions & 0 deletions Docker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Docker

## Usage

Invoke as follows to export all Measure and MeasureReport resources to the downloads directory

docker run \
--volume $PWD:/opt/node/app/downloads \
ghcr.io/uwcirg/bulk-data-client:main \
--global \
--fhir-url http://hapi.fhir.org/baseR4/ \
--_type Measure,MeasureReport
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:15

# cache hack (very fragile): initially only copy list of project dependencies
COPY --chown=node:node package.json package-lock.json /opt/node/

# allow hot-reloading: install node dependencies to parent directory of code
WORKDIR /opt/node
USER node
RUN npm install

ENV SHOW_ERRORS=true

# copy source code, switch to code directory
COPY --chown=node:node . /opt/node/app
WORKDIR /opt/node/app

ENTRYPOINT [ \
"node", \
"--trace-exit", \
"--trace-warnings", \
".", \
"--reporter=text" \
]
8 changes: 8 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
version: "3.4"
services:
export-client:
build:
context: .
volumes:
- ./downloads:/opt/node/app/downloads