Skip to content

Commit

Permalink
copy docs to webapp docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
cgardens committed Jul 14, 2021
1 parent ea7b0b0 commit adf7645
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airbyte-webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ FROM nginx:1.19-alpine as webapp

EXPOSE 80

COPY build/docs docs/
# docs get copied twice because npm gradle plugin ignores output dir.
COPY build /usr/share/nginx/html
RUN rm -rf /usr/share/nginx/html/docs
COPY nginx/default.conf.template /etc/nginx/templates/default.conf.template
8 changes: 8 additions & 0 deletions airbyte-webapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ npm_run_build {
inputs.file 'package.json'
inputs.file 'package-lock.json'

// todo (cgardens) - the plugin seems to ignore this value when the copy command is run. ideally the output would be place in build/app.
outputs.dir project.buildDir
}

Expand All @@ -29,3 +30,10 @@ task test(type: NpmTask) {
assemble.dependsOn npm_run_build
build.finalizedBy test

task copyDocs(type: Copy) {
from "${System.getProperty("user.dir")}/docs/integrations/getting-started"
into "${buildDir}/docs/getting-started/"
}

copyDocs.dependsOn npm_run_build
assemble.dependsOn copyDocs

0 comments on commit adf7645

Please sign in to comment.