Skip to content

Commit

Permalink
Merge pull request #78 from HL7-DaVinci/dockerDev
Browse files Browse the repository at this point in the history
docker dev env
  • Loading branch information
smalho01 authored Feb 14, 2022
2 parents bf2667c + 4efb683 commit f75ec89
Show file tree
Hide file tree
Showing 29 changed files with 1,563 additions and 69 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file
# Put files here that you don't want copied into your bundle's invocation image
.gitignore
Dockerfile.tmpl
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VSAC_API_KEY=#Replace_me_with_your_api_key
COMPOSE_PROJECT_NAME=pas_dev
PORTER_ALLOW_DOCKER_HOST_ACCESS=true
26 changes: 26 additions & 0 deletions .github/workflows/automated-tests-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Automated Tests CI

on:
pull_request:
branches: [ dev ]
workflow_dispatch:

jobs:
automated-tests-ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 6.9
- name: Embed CDS Library
run: gradle embedCdsLibrary
- name: Test with gradle
run: gradle clean check
27 changes: 27 additions & 0 deletions .github/workflows/docker-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docker Image CD

on:
push:
branches: [ dev ]
workflow_dispatch:

jobs:

docker-cd:
runs-on: ubuntu-latest
steps:

- name: Checkout Repository
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push Server Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: codexrems/prior-auth:latest
17 changes: 17 additions & 0 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Docker Image CI

on:
pull_request:
branches: [ dev ]
workflow_dispatch:

jobs:
docker-ci:
runs-on: ubuntu-latest
steps:

- name: Checkout Repository
uses: actions/checkout@v2

- name: Test Server Docker image Builds
run: docker build .
27 changes: 0 additions & 27 deletions .github/workflows/gradle.yml

This file was deleted.

7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.cnab
.docker-sync/
Zscaler_Root_CA.pem
.env

# Ignore Gradle project-specific cache directory
.gradle

Expand All @@ -13,12 +18,12 @@ CDS-Library
# Ignore all log files
*.log
*.log.lck
logs/

# Ignore Eclipse and vscode files
.project
.classpath
.settings/
.vscode/
bin

# Ignore Database files
Expand Down
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug Prior Auth (Local + Docker)", // gradle bootRun -Pdebug,
"request": "attach",
"hostName": "localhost",
"port": 9016,
}
]
}
Loading

0 comments on commit f75ec89

Please sign in to comment.