Skip to content

Commit

Permalink
start dockerization
Browse files Browse the repository at this point in the history
  • Loading branch information
citizenrich committed Feb 27, 2020
1 parent b1021ce commit eebb96c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/dockerhub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -ex

# automate tagging with the short commit hash
docker build --no-cache -t openhie/client-registry:$(git rev-parse --short HEAD) .
docker tag openhie/client-registry:$(git rev-parse --short HEAD) openhie/client-registry
docker push openhie/client-registry:$(git rev-parse --short HEAD)
docker push openhie/client-registry:latest
docker build --no-cache -t intrahealth/opencr-service:$(git rev-parse --short HEAD) .
docker tag intrahealth/opencr-service:$(git rev-parse --short HEAD) intrahealth/opencr-service
docker push intrahealth/opencr-service:$(git rev-parse --short HEAD)
docker push intrahealth/opencr-service:latest
2 changes: 2 additions & 0 deletions ui/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# modified configs
config_development.json
12 changes: 12 additions & 0 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:dubnium

# install dependencies
ADD package-lock.json /src/
ADD package.json /src/
WORKDIR /src/
RUN npm install

# add app
ADD . /src/

CMD ["node", "lib/app.js"]
8 changes: 8 additions & 0 deletions ui/dockerhub.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -ex

# automate tagging with the short commit hash
docker build --no-cache -t intrahealth/opencr-ux:$(git rev-parse --short HEAD) .
docker tag intrahealth/opencr-ux:$(git rev-parse --short HEAD) intrahealth/opencr-ux
docker push intrahealth/opencr-ux:$(git rev-parse --short HEAD)
docker push intrahealth/opencr-ux:latest

0 comments on commit eebb96c

Please sign in to comment.