Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
d0e246a7
Commit
d0e246a7
authored
Sep 23, 2020
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3934: Dockerfile: updated default to build from local repo (instead of from github) - #2
parent
b8956dfd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
11 deletions
+23
-11
Dockerfile.atlas-build
dev-support/atlas-docker/Dockerfile.atlas-build
+0
-4
README.md
dev-support/atlas-docker/README.md
+2
-2
docker-compose.atlas-build.yml
dev-support/atlas-docker/docker-compose.atlas-build.yml
+2
-1
atlas-build.sh
dev-support/atlas-docker/scripts/atlas-build.sh
+19
-4
No files found.
dev-support/atlas-docker/Dockerfile.atlas-build
View file @
d0e246a7
...
...
@@ -42,8 +42,4 @@ VOLUME /home/atlas/src
USER atlas
WORKDIR /home/atlas/git
RUN git clone https://github.com/apache/atlas.git
ENTRYPOINT [ "/home/atlas/scripts/atlas-build.sh" ]
dev-support/atlas-docker/README.md
View file @
d0e246a7
...
...
@@ -56,10 +56,10 @@ Docker files in this folder create docker images and run them to build Apache At
4.
3. Build Apache Atlas in a container with one of the following commands:
# to build from a specific branch
docker run -it --rm -v ${HOME}/.m2:/home/atlas/.m2 -v $(pwd)/scripts:/home/atlas/scripts -v $(pwd)/patches:/home/atlas/patches -v $(pwd)/dist:/home/atlas/dist -e BRANCH=master -e PROFILE=dist,berkeley-solr -e SKIPTESTS=true atlas-build
docker run -it --rm -v ${HOME}/.m2:/home/atlas/.m2
:delegated
-v $(pwd)/scripts:/home/atlas/scripts -v $(pwd)/patches:/home/atlas/patches -v $(pwd)/dist:/home/atlas/dist -e BRANCH=master -e PROFILE=dist,berkeley-solr -e SKIPTESTS=true atlas-build
# to build from local sources
docker run -it --rm -v ${HOME}/.m2:/home/atlas/.m2
-v $(pwd)/scripts:/home/atlas/scripts -v $(pwd)/../..:/home/atlas/src
-v $(pwd)/dist:/home/atlas/dist -e PROFILE=dist,berkeley-solr -e SKIPTESTS=true atlas-build
docker run -it --rm -v ${HOME}/.m2:/home/atlas/.m2
:delegated -v $(pwd)/scripts:/home/atlas/scripts -v $(pwd)/../..:/home/atlas/src:delegated
-v $(pwd)/dist:/home/atlas/dist -e PROFILE=dist,berkeley-solr -e SKIPTESTS=true atlas-build
Time taken to complete the build might vary (upto an hour), depending on status of ${HOME}/.m2 directory cache.
...
...
dev-support/atlas-docker/docker-compose.atlas-build.yml
View file @
d0e246a7
...
...
@@ -12,10 +12,11 @@ services:
networks
:
-
atlas
volumes
:
-
~/.m2:/home/atlas/.m2
-
~/.m2:/home/atlas/.m2
:delegated
-
./scripts:/home/atlas/scripts
-
./patches:/home/atlas/patches
-
./dist:/home/atlas/dist
-
./../..:/home/atlas/src:delegated
depends_on
:
-
atlas-base
environment
:
...
...
dev-support/atlas-docker/scripts/atlas-build.sh
View file @
d0e246a7
...
...
@@ -21,6 +21,11 @@ then
BRANCH
=
master
fi
if
[
"
${
GIT_URL
}
"
==
""
]
then
GIT_URL
=
https://github.com/apache/atlas.git
fi
if
[
"
${
PROFILE
}
"
!=
""
]
then
ARG_PROFILES
=
"-P
${
PROFILE
}
"
...
...
@@ -43,12 +48,22 @@ then
cd
/home/atlas/src
else
echo
"Building
from /home/atlas/git/atlas
"
echo
"Building
${
BRANCH
}
branch from
${
GIT_URL
}
"
cd
/home/atlas/git/atlas
cd
/home/atlas/git
if
[
-d
atlas
]
then
renamedDir
=
atlas-
`
date
+
"%Y%m%d-%H%M%S"
`
git checkout
${
BRANCH
}
git pull
echo
"Renaming existing directory
`
pwd
`
/atlas to
${
renamedDir
}
"
mv
atlas
$renamedDir
fi
git clone
--single-branch
--branch
${
BRANCH
}
${
GIT_URL
}
cd
/home/atlas/git/atlas
for
patch
in
`
ls
-1
/home/atlas/patches |
sort
`
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment