Skip to content

ATLAS-4991: Support running IT tests while building Atlas through docker #343

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
cd dev-support/atlas-docker
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
SKIPTESTS=false docker compose -f docker-compose.atlas-base.yml -f docker-compose.atlas-build.yml up
SKIPTESTS=false PROFILE= docker compose -f docker-compose.atlas-base.yml -f docker-compose.atlas-build.yml up
ATLAS_BUILD_CONTAINER=$(docker ps -a -q --filter "name=atlas-build")
EXIT_CODE=$(docker inspect --format '{{.State.ExitCode}}' "$ATLAS_BUILD_CONTAINER")

Expand Down
15 changes: 10 additions & 5 deletions dev-support/atlas-docker/scripts/atlas-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,14 @@ else
done
fi

mvn ${ARG_PROFILES} ${ARG_SKIPTESTS} -DskipDocs clean package
echo "mvn -T 8 ${ARG_PROFILES} ${ARG_SKIPTESTS} -DskipDocs clean verify --no-transfer-progress -B -V"

mv -f distro/target/apache-atlas-${ATLAS_VERSION}-server.tar.gz /home/atlas/dist/
mv -f distro/target/apache-atlas-${ATLAS_VERSION}-hive-hook.tar.gz /home/atlas/dist/
mv -f distro/target/apache-atlas-${ATLAS_VERSION}-hbase-hook.tar.gz /home/atlas/dist/
mv -f distro/target/apache-atlas-${ATLAS_VERSION}-kafka-hook.tar.gz /home/atlas/dist/
mvn ${ARG_PROFILES} ${ARG_SKIPTESTS} -DskipDocs clean verify

if [ "${PROFILE}" != "" ]
then
mv -f distro/target/apache-atlas-${ATLAS_VERSION}-server.tar.gz /home/atlas/dist/
mv -f distro/target/apache-atlas-${ATLAS_VERSION}-hive-hook.tar.gz /home/atlas/dist/
mv -f distro/target/apache-atlas-${ATLAS_VERSION}-hbase-hook.tar.gz /home/atlas/dist/
mv -f distro/target/apache-atlas-${ATLAS_VERSION}-kafka-hook.tar.gz /home/atlas/dist/
fi
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private Properties createPropertiesWithHeaders(String... headers) {
Properties props = new Properties();

for (int i = 0; i < headers.length / 2; i++) {
props.setProperty(headers[i * 2], headers[(i *2) + 1]);
props.setProperty(headers[i * 2], headers[(i * 2) + 1]);
}

return props;
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/test/resources/atlas-application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ atlas.EntityAuditRepository.impl=org.apache.atlas.repository.audit.InMemoryEntit
atlas.graph.index.search.backend=solr

#Berkeley storage directory
atlas.graph.storage.directory=${sys:atlas.data}/berkley
atlas.graph.storage.directory=${sys:atlas.data}
atlas.graph.storage.transactions=true

#hbase
Expand Down
Loading