Skip to content

Convert to GHA, fix tests, fix build#388

Merged
MrCreosote merged 5 commits intodevelopfrom
dev-gradle
Apr 15, 2024
Merged

Convert to GHA, fix tests, fix build#388
MrCreosote merged 5 commits intodevelopfrom
dev-gradle

Conversation

@MrCreosote
Copy link
Copy Markdown
Member

No description provided.

@MrCreosote MrCreosote requested a review from Xiangs18 April 11, 2024 17:05
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 11, 2024

Codecov Report

❗ No coverage uploaded for pull request base (develop@1e699df). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #388   +/-   ##
==========================================
  Coverage           ?   93.65%           
  Complexity         ?     1590           
==========================================
  Files              ?      102           
  Lines              ?     4743           
  Branches           ?      828           
==========================================
  Hits               ?     4442           
  Misses             ?      286           
  Partials           ?       15           

@github-advanced-security
Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@MrCreosote MrCreosote changed the title Convert to GHA, fix tests Convert to GHA, fix tests, fix build Apr 11, 2024
- "tcp://mongo:27017"
- "-timeout"
- "120s"
- "-template"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If my understanding is correct,
a line starts with "-" is an arg, and then followed by its val? For instance, "-timeout", "120s"
What are "java" and "-Djetty.home=/usr/local/jetty" then?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"-" is an arg, and then followed by its val?

Not always, one example is -multiline

The first set of arguments are for dockerize. Then there's the command that dockerize will run, java, and its arguments.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

among these args, which are for docker and which are for java programs?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything after java are the java args

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about -template? I did not find this arg in docker-compose up -h

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the arguments are for dockerize, not docker-compose

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. May I know which line it pull dockerize image? Cannot find it anywhere.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't, dockerize is built into the base image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found it. is here:

|3 BRANCH=master BUILD_DATE=2018-11-08T20:13:52Z VCS_REF=bb0c445 /bin/sh -c mkdir -p /var/lib/apt/lists/partial && 	apt-get update -y &&     apt-get install -y ca-certificates tomcat8-user libservlet3.1-java &&     update-ca-certificates &&     useradd -c "KBase user" -rd /kb/deployment/ -u 998 -s /bin/bash kbase &&     mkdir -p /kb/deployment/bin &&     mkdir -p /kb/deployment/jettybase/logs/ &&     touch /kb/deployment/jettybase/logs/request.log &&     chown -R kbase /kb/deployment &&     cd /kb/deployment/bin &&     wget -N https://github.com/kbase/dockerize/raw/master/dockerize-linux-amd64-v0.6.1.tar.gz && 	tar xvzf dockerize-linux-amd64-v0.6.1.tar.gz &&     rm dockerize-linux-amd64-v0.6.1.tar.gz

Copy link
Copy Markdown
Contributor

@Xiangs18 Xiangs18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MrCreosote MrCreosote merged commit ea5fa31 into develop Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants