Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaning up docker build process #559

Merged
merged 9 commits into from
Oct 13, 2023
Merged

Cleaning up docker build process #559

merged 9 commits into from
Oct 13, 2023

Conversation

sundargates
Copy link
Contributor

@sundargates sundargates commented Sep 19, 2023

Context

I’d like to outline the goals for this PR.

Firstly, it aims to integrate the docker build process with the build system instead of having it defined in various places such as shell, gradle, and the dockerfile.
Secondly, it aims to set up the server with a few job clusters, making it easier to launch these clusters with the helm setup.

Checklist

  • ./gradlew build compiles code correctly
  • Added new tests where applicable
  • ./gradlew test passes all tests
  • Extended README or added javadocs where applicable

@github-actions
Copy link

github-actions bot commented Sep 19, 2023

Test Results

128 files  ±0  128 suites  ±0   7m 12s ⏱️ +25s
545 tests ±0  536 ✔️  - 1  8 💤 ±0  1 +1 
546 runs  +1  537 ✔️ ±0  8 💤 ±0  1 +1 

For more details on these failures, see this check.

Results for commit bdd5c75. ± Comparison against base commit d1bef3c.

♻️ This comment has been updated with latest results.

def installDir = file("${buildDir}/install")
def controlPlaneState = file("${project.resources}/docker")
def ci = System.getenv('GITHUB_ACTIONS')
def imageRepository = ci ? 'netflixoss' : 'localhost:5001/netflixoss'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add a comment here that we assume local docker registry running on 5001

Copy link
Collaborator

@calvin681 calvin681 left a comment

Choose a reason for hiding this comment

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

I have to say, this is quite genius.

}

javaApplication {
baseImage = 'azul/zulu-openjdk:8-latest'
Copy link
Collaborator

Choose a reason for hiding this comment

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

This comment is not related to this PR. Can you try changing to this to jdk17 and see what happens when you launch with helm?

Copy link
Collaborator

@Andyz26 Andyz26 left a comment

Choose a reason for hiding this comment

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

looks like path resolution needs some refactor in testcontainers.

@@ -19,6 +19,7 @@ plugins {
}

apply plugin: 'application'
apply plugin: 'com.bmuschko.docker-java-application'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shall we lock version on this plugin too?

entryPoint './bin/start.sh'
}

javaApplication {

Choose a reason for hiding this comment

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

javaApplication will create an entryPoint in the generated Dockerfile. And then the previous dockerCreateDockerfile section will also create an entryPoint. is that OK? I'm not sure if the generated Dockerfile is actually valid.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, the second entry point overrides the first one. I have tested it end to end, and I can give a demo if you would like.

@sundargates sundargates had a problem deploying to Integrate Pull Request October 11, 2023 23:02 — with GitHub Actions Failure
@sundargates sundargates had a problem deploying to Integrate Pull Request October 12, 2023 04:39 — with GitHub Actions Failure
@sundargates sundargates had a problem deploying to Integrate Pull Request October 12, 2023 22:11 — with GitHub Actions Failure
@sundargates sundargates had a problem deploying to Integrate Pull Request October 13, 2023 05:54 — with GitHub Actions Failure
@sundargates sundargates had a problem deploying to Integrate Pull Request October 13, 2023 06:06 — with GitHub Actions Failure
@sundargates sundargates merged commit cd735c5 into master Oct 13, 2023
5 of 7 checks passed
@sundargates sundargates deleted the sundaram/docker branch October 13, 2023 15:22
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.

4 participants