Skip to content

build in docker#162

Open
omursahin wants to merge 7 commits intodevelopfrom
docker-build
Open

build in docker#162
omursahin wants to merge 7 commits intodevelopfrom
docker-build

Conversation

@omursahin
Copy link
Collaborator

No description provided.

@omursahin omursahin requested a review from arcuri82 February 12, 2026 07:41
- ./dist:/dist
- ./jacoco:/jacoco
command: >
sh -c "cp /root/.m2/repository/org/evomaster/evomaster-client-java-instrumentation/5.0.3-SNAPSHOT/evomaster-client-java-instrumentation-5.0.3-SNAPSHOT.jar /dist/evomaster-agent.jar &&
Copy link
Contributor

Choose a reason for hiding this comment

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

you will need to update scripts/version.py to handle this hardcoded 5.0.3-SNAPSHOT

@omursahin omursahin requested a review from arcuri82 March 5, 2026 14:09
@@ -0,0 +1,399 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

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

there is an extra feature we need here.
by default, nothing about EvoMaster should be built or required (only the JAR of the SUTs are built, with no agent and no EM drivers).
we can have an input option to build those as well (off by default)

echo "Tip: Use './scripts/dist-docker.sh <JDK> <TOOL>' for incremental builds"
echo " Example: ./scripts/dist-docker.sh 8 gradle"
exit 0
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

also, we should remove this. should be no interactive when running the script. should alwasy override if dist already exist. this also makes things easier to run in other scripts (eg on CI)

@omursahin omursahin requested a review from arcuri82 March 9, 2026 19:30
@@ -0,0 +1,399 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this file can be now removed?



def fmt_elapsed(seconds):
m, s = divmod(int(seconds), 60)
Copy link
Contributor

Choose a reason for hiding this comment

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

what is fmt?

os.chdir(PROJ_DIR)
run(compose + ["-f", COMPOSE_FILE, "run", "--rm", "-T", "copy-additional-files"])
print("Files copied successfully!")
for f in ["evomaster-agent.jar", "jacocoagent.jar", "jacococli.jar"]:
Copy link
Contributor

Choose a reason for hiding this comment

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

actually, JaCoCo should always be copied over, as it is used in the BB experiments. it is the files that are strictly for EM (ie agent and drivers) that should not be copied by default

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.

2 participants