Skip to content

Commit 1fd4ee9

Browse files
authored
Merge pull request #741 from kbase/develop
0.15.0 release (develop -> master)
2 parents 81defb3 + 0f6d151 commit 1fd4ee9

File tree

672 files changed

+12663
-2266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

672 files changed

+12663
-2266
lines changed

.classpath

Lines changed: 0 additions & 110 deletions
This file was deleted.

.codecov.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ comment:
2626
require_changes: no
2727

2828
ignore:
29-
- "build"
3029
- "deployment"

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# These are explicitly windows files and should use crlf
5+
*.bat text eol=crlf
6+

.github/workflows/test.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
jobs:
2020

2121
workspace_container_tests:
22-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-20.04
2323
steps:
2424
- uses: actions/checkout@v3
2525

@@ -37,25 +37,25 @@ jobs:
3737
- name: Run tests
3838
shell: bash
3939
run: |
40-
sh scripts/run_tests.sh
40+
sh test/run_tests.sh
4141
4242
workspace_deluxe_tests:
4343
runs-on: ubuntu-latest
4444
strategy:
4545
fail-fast: false
4646
matrix:
4747
include:
48-
- java: '11'
49-
mongo: 'mongodb-linux-x86_64-3.6.23'
48+
- java: '8' # needs to be compatible so jars can be used w/ java 8
49+
mongo: 'mongodb-linux-x86_64-ubuntu2204-7.0.4'
5050
minio: '2019-05-23T00-29-34Z'
5151
wired_tiger: 'true'
52-
ant_test: 'test_quick_coverage'
52+
gradle_test: 'testQuick'
5353
# the current production setup
5454
- java: '11'
5555
mongo: 'mongodb-linux-x86_64-3.6.13'
5656
minio: '2019-05-23T00-29-34Z'
5757
wired_tiger: 'false'
58-
ant_test: 'test_quick_coverage'
58+
gradle_test: 'testQuick'
5959
steps:
6060
- uses: actions/checkout@v3
6161

@@ -84,10 +84,6 @@ jobs:
8484
# move to parent dir of homedir to install binaries etc
8585
cd ..
8686
87-
# set up jars
88-
git clone https://github.com/kbase/jars
89-
export JARSDIR=$(pwd)/jars/lib/jars/
90-
9187
# set up arango
9288
export ARANGODB_VER=3.9.1
9389
export ARANGODB_V=39
@@ -142,7 +138,6 @@ jobs:
142138
sed -i "s#^test.mongo.exe.*#test.mongo.exe=$MONGOD#" test.cfg
143139
sed -i "s#^test.minio.exe.*#test.minio.exe=$MINIO#" test.cfg
144140
sed -i "s#^test.mongo.useWiredTiger.*#test.mongo.useWiredTiger=${{matrix.wired_tiger}}#" test.cfg
145-
sed -i "s#^test.jars.dir.*#test.jars.dir=$JARSDIR#" test.cfg
146141
sed -i "s#^test.blobstore.exe.*#test.blobstore.exe=$BLOBEXE#" test.cfg
147142
sed -i "s#^test.handleservice.dir.*#test.handleservice.dir=$HSDIR#" test.cfg
148143
sed -i "s#^test.sampleservice.dir.*#test.sampleservice.dir=$SAMPLE_DIR#" test.cfg
@@ -153,10 +148,10 @@ jobs:
153148
- name: Run tests
154149
shell: bash
155150
run: |
156-
ant javadoc
157-
ant ${{matrix.ant_test}}
151+
./gradlew ${{matrix.gradle_test}}
158152
159153
- name: Upload coverage to Codecov
160154
uses: codecov/codecov-action@v3
161155
with:
156+
token: ${{ secrets.CODECOV_TOKEN }}
162157
fail_ci_if_error: true

Dockerfile

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
FROM eclipse-temurin:11-jdk as build
22

3-
COPY . /tmp/workspace_deluxe
4-
WORKDIR /tmp
5-
RUN apt-get update -y && \
6-
apt-get install -y ant git ca-certificates python3-sphinx && \
7-
git clone https://github.com/kbase/jars && \
8-
cd workspace_deluxe && \
9-
make docker_deps
3+
RUN apt update -y && \
4+
apt install -y git ca-certificates python3-sphinx
5+
6+
WORKDIR /tmp/workspace
7+
8+
# dependencies take a while to D/L, so D/L & cache before the build so code changes don't cause
9+
# a new D/L
10+
# can't glob *gradle because of the .gradle dir
11+
COPY gradlew settings.gradle /tmp/workspace/
12+
COPY gradle/ /tmp/workspace/gradle/
13+
RUN ./gradlew dependencies
14+
15+
# Now build the code
16+
COPY workspace.spec /tmp/workspace/workspace.spec
17+
COPY deployment/ /tmp/workspace/deployment/
18+
COPY docshtml /tmp/workspace/docshtml/
19+
COPY docsource /tmp/workspace/docsource/
20+
COPY lib /tmp/workspace/lib/
21+
COPY service /tmp/workspace/service
22+
COPY client /tmp/workspace/client
23+
# for the git commit
24+
COPY .git /tmp/workspace/.git/
25+
RUN ./gradlew war
1026

11-
# updated/slimmed down version of what's in kbase/kb_jre
1227
FROM ubuntu:18.04
1328

1429
# These ARGs values are passed in via the docker build command
@@ -37,11 +52,11 @@ RUN mkdir -p /var/lib/apt/lists/partial && \
3752
tar xvzf dockerize-${DOCKERIZE_VERSION}.tar.gz && \
3853
rm dockerize-${DOCKERIZE_VERSION}.tar.gz
3954

40-
COPY --from=build /tmp/workspace_deluxe/deployment/ /kb/deployment/
55+
COPY --from=build /tmp/workspace/deployment/ /kb/deployment/
4156

4257
RUN /usr/bin/${TOMCAT_VERSION}-instance-create /kb/deployment/services/workspace/tomcat && \
43-
mv /kb/deployment/services/workspace/WorkspaceService.war /kb/deployment/services/workspace/tomcat/webapps/ROOT.war && \
4458
rm -rf /kb/deployment/services/workspace/tomcat/webapps/ROOT
59+
COPY --from=build /tmp/workspace/service/build/libs/service.war /kb/deployment/services/workspace/tomcat/webapps/ROOT.war
4560

4661
# The BUILD_DATE value seem to bust the docker cache when the timestamp changes, move to
4762
# the end
@@ -52,6 +67,9 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
5267
us.kbase.vcs-branch=$BRANCH \
5368
maintainer="KBase developers engage@kbase.us"
5469

70+
# TODO BUILD update to no longer use dockerize and take env vars (e.g. like Collections).
71+
# TODO BUILD Use subsections in the ini file / switch to TOML
72+
5573
EXPOSE 7058
5674
ENTRYPOINT [ "/kb/deployment/bin/dockerize" ]
5775
WORKDIR /kb/deployment/services/workspace/tomcat

Makefile

Lines changed: 0 additions & 132 deletions
This file was deleted.

0 commit comments

Comments
 (0)