-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #741 from kbase/develop
0.15.0 release (develop -> master)
- Loading branch information
Showing
672 changed files
with
12,663 additions
and
2,266 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,4 @@ comment: | |
require_changes: no | ||
|
||
ignore: | ||
- "build" | ||
- "deployment" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
# | ||
# These are explicitly windows files and should use crlf | ||
*.bat text eol=crlf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
FROM eclipse-temurin:11-jdk as build | ||
|
||
COPY . /tmp/workspace_deluxe | ||
WORKDIR /tmp | ||
RUN apt-get update -y && \ | ||
apt-get install -y ant git ca-certificates python3-sphinx && \ | ||
git clone https://github.com/kbase/jars && \ | ||
cd workspace_deluxe && \ | ||
make docker_deps | ||
RUN apt update -y && \ | ||
apt install -y git ca-certificates python3-sphinx | ||
|
||
WORKDIR /tmp/workspace | ||
|
||
# dependencies take a while to D/L, so D/L & cache before the build so code changes don't cause | ||
# a new D/L | ||
# can't glob *gradle because of the .gradle dir | ||
COPY gradlew settings.gradle /tmp/workspace/ | ||
COPY gradle/ /tmp/workspace/gradle/ | ||
RUN ./gradlew dependencies | ||
|
||
# Now build the code | ||
COPY workspace.spec /tmp/workspace/workspace.spec | ||
COPY deployment/ /tmp/workspace/deployment/ | ||
COPY docshtml /tmp/workspace/docshtml/ | ||
COPY docsource /tmp/workspace/docsource/ | ||
COPY lib /tmp/workspace/lib/ | ||
COPY service /tmp/workspace/service | ||
COPY client /tmp/workspace/client | ||
# for the git commit | ||
COPY .git /tmp/workspace/.git/ | ||
RUN ./gradlew war | ||
|
||
# updated/slimmed down version of what's in kbase/kb_jre | ||
FROM ubuntu:18.04 | ||
|
||
# These ARGs values are passed in via the docker build command | ||
|
@@ -37,11 +52,11 @@ RUN mkdir -p /var/lib/apt/lists/partial && \ | |
tar xvzf dockerize-${DOCKERIZE_VERSION}.tar.gz && \ | ||
rm dockerize-${DOCKERIZE_VERSION}.tar.gz | ||
|
||
COPY --from=build /tmp/workspace_deluxe/deployment/ /kb/deployment/ | ||
COPY --from=build /tmp/workspace/deployment/ /kb/deployment/ | ||
|
||
RUN /usr/bin/${TOMCAT_VERSION}-instance-create /kb/deployment/services/workspace/tomcat && \ | ||
mv /kb/deployment/services/workspace/WorkspaceService.war /kb/deployment/services/workspace/tomcat/webapps/ROOT.war && \ | ||
rm -rf /kb/deployment/services/workspace/tomcat/webapps/ROOT | ||
COPY --from=build /tmp/workspace/service/build/libs/service.war /kb/deployment/services/workspace/tomcat/webapps/ROOT.war | ||
|
||
# The BUILD_DATE value seem to bust the docker cache when the timestamp changes, move to | ||
# the end | ||
|
@@ -52,6 +67,9 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ | |
us.kbase.vcs-branch=$BRANCH \ | ||
maintainer="KBase developers [email protected]" | ||
|
||
# TODO BUILD update to no longer use dockerize and take env vars (e.g. like Collections). | ||
# TODO BUILD Use subsections in the ini file / switch to TOML | ||
|
||
EXPOSE 7058 | ||
ENTRYPOINT [ "/kb/deployment/bin/dockerize" ] | ||
WORKDIR /kb/deployment/services/workspace/tomcat | ||
|
Oops, something went wrong.