You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zg...@apache.org on 2019/03/12 12:45:03 UTC
[hbase] 15/133: HBASE-15724 Use explicit docker image
This is an automated email from the ASF dual-hosted git repository.
zghao pushed a commit to branch HBASE-14850
in repository https://gitbox.apache.org/repos/asf/hbase.git
commit 1166c081b5b73a3cbd3e4f3498d9174de6781d80
Author: Elliott Clark <ec...@apache.org>
AuthorDate: Wed Apr 27 10:51:05 2016 -0700
HBASE-15724 Use explicit docker image
Summary:
Set the tag for cpp docker image
Don't set the env on command line
Test Plan: Build it.
Differential Revision: https://reviews.facebook.net/D57315
---
hbase-native-client/Dockerfile | 4 +++-
hbase-native-client/bin/start-docker.sh | 1 -
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/hbase-native-client/Dockerfile b/hbase-native-client/Dockerfile
index 1524c56..8e33e74 100644
--- a/hbase-native-client/Dockerfile
+++ b/hbase-native-client/Dockerfile
@@ -15,13 +15,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-FROM pjameson/buck-folly-watchman
+FROM pjameson/buck-folly-watchman:20160425
ARG CC=/usr/bin/gcc-5
ARG CXX=/usr/bin/g++-5
ARG CFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -g -fno-omit-frame-pointer -O2 -pthread"
ARG CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -g -fno-omit-frame-pointer -O2 -pthread"
+ENV JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/"
+
RUN apt-get install -y vim maven inetutils-ping python-pip && \
pip install yapf && \
apt-get -qq clean && \
diff --git a/hbase-native-client/bin/start-docker.sh b/hbase-native-client/bin/start-docker.sh
index 9cbd8b7..5c03eb9 100755
--- a/hbase-native-client/bin/start-docker.sh
+++ b/hbase-native-client/bin/start-docker.sh
@@ -53,7 +53,6 @@ docker build -t hbase_native .
# After the image is built run the thing
docker run -p 16010:16010/tcp \
- -e "JAVA_HOME=/usr/lib/jvm/java-8-oracle" \
-v ${BASE_DIR}/..:/usr/src/hbase \
-v ~/.m2:/root/.m2 \
-it hbase_native /bin/bash