Skip to content

MNEMONIC-107:Use MNEMONIC_HOME Environment Variable #24

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 1 commit 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
7 changes: 7 additions & 0 deletions build-tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
# limitations under the License.
#

if [ -z "${MNEMONIC_HOME}" ]; then
export MNEMONIC_HOME="$(cd "`dirname "$0"`"/..; pwd)"
fi

cd "${MNEMONIC_HOME}"


usage(){
echo "Usage: $0 Release_Version Next_Release_Version Candidate_Id"
echo "e.g. $0 0.2.0 0.2.0 rc2"
Expand Down
5 changes: 5 additions & 0 deletions build-tools/runall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
# limitations under the License.
#

if [ -z "${MNEMONIC_HOME}" ]; then
export MNEMONIC_HOME="$(cd "`dirname "$0"`"/..; pwd)"
fi
cd "${MNEMONIC_HOME}"

echo [INFO] Cleaning up and re-building...
git clean -xdf > /dev/null

Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ RUN echo export MAVEN_OPTS="\" $([[ \"x\" != \"x${proxy_host}\" ]] && echo -Dpro
RUN cd /ws && git clone https://github.com/apache/incubator-mnemonic.git && \
cd incubator-mnemonic && source /etc/profile.d/mvn.sh && mvn clean package install

ENV MNEMONIC_HOME /ws/incubator-mnemonic
ENV PATH $MNEMONIC_HOME:$PATH

WORKDIR /ws
CMD ["bash"]