You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by la...@apache.org on 2018/12/15 00:25:05 UTC
[incubator-mxnet] branch master updated: [MXNET-1251] Basic
configuration to do static-linking (#13621)
This is an automated email from the ASF dual-hosted git repository.
lanking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 1128f8e [MXNET-1251] Basic configuration to do static-linking (#13621)
1128f8e is described below
commit 1128f8ef1f918e3874a7f3f2499a2720d80fb2e7
Author: Lanking <la...@live.com>
AuthorDate: Fri Dec 14 16:24:48 2018 -0800
[MXNET-1251] Basic configuration to do static-linking (#13621)
* Basic configuration to do static-linking
* update build script and place it in the install part
* clean up the code further
* revert maven into build-from-source
* add curl to deps
---
ci/docker/install/ubuntu_publish.sh | 48 +++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/ci/docker/install/ubuntu_publish.sh b/ci/docker/install/ubuntu_publish.sh
new file mode 100644
index 0000000..bc3513d
--- /dev/null
+++ b/ci/docker/install/ubuntu_publish.sh
@@ -0,0 +1,48 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Build on Ubuntu 14.04 LTS for LINUX CPU/GPU
+apt-get update
+apt-get install -y software-properties-common
+add-apt-repository ppa:ubuntu-toolchain-r/test -y
+add-apt-repository ppa:openjdk-r/ppa -y # Java lib
+apt-get update
+apt-get install -y git \
+ cmake3 \
+ libcurl4-openssl-dev \
+ unzip \
+ gcc-4.8 \
+ g++-4.8 \
+ gfortran \
+ gfortran-4.8 \
+ binutils \
+ nasm \
+ libtool \
+ curl \
+ pandoc \
+ python3-pip \
+ automake \
+ pkg-config \
+ openjdk-8-jdk
+curl -o apache-maven-3.3.9-bin.tar.gz http://www.eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
+tar xzf apache-maven-3.3.9-bin.tar.gz
+mkdir /usr/local/maven
+mv apache-maven-3.3.9/ /usr/local/maven/
+update-alternatives --install /usr/bin/mvn mvn /usr/local/maven/apache-maven-3.3.9/bin/mvn 1
+update-ca-certificates -f