Skip to content

Commit

Permalink
[MXNET-1251] Basic configuration to do static-linking (apache#13621)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
lanking520 committed Apr 26, 2019
1 parent 647c7ae commit 1aee3d7
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions ci/docker/install/ubuntu_publish.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1aee3d7

Please sign in to comment.