mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +00:00
c6bed31f58
* ENT-1012 - Add build container and sx utility * ENT-1012 - Add readme file for the sx utility * ENT-1012 - Check that Docker is installed * ENT-1256 - Add ProGuard 6 Beta dependency * ENT-1012 - Phony targets in container build
105 lines
2.5 KiB
Docker
105 lines
2.5 KiB
Docker
FROM ubuntu:xenial-20171114
|
|
|
|
# General information
|
|
|
|
LABEL version="1.0"
|
|
LABEL description="SGX build and test container"
|
|
LABEL maintainer="tommy.lillehagen@r3.com"
|
|
|
|
# Configure package management software
|
|
|
|
ENV LANG C.UTF-8
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
RUN apt-get update -qqy
|
|
RUN apt-get install -qqy software-properties-common apt-utils
|
|
RUN add-apt-repository \
|
|
"deb http://archive.ubuntu.com/ubuntu/ trusty main restricted"
|
|
RUN add-apt-repository \
|
|
"deb http://archive.ubuntu.com/ubuntu/ trusty universe"
|
|
RUN apt-get update -qqy
|
|
|
|
# Install dependencies (lock versions)
|
|
|
|
RUN apt-get install -qqy \
|
|
autoconf=2.69-9 \
|
|
ccache=3.2.4-1 \
|
|
cmake=3.5.1-1ubuntu3 \
|
|
cpio=2.11+dfsg-5ubuntu1 \
|
|
exuberant-ctags=1:5.9~svn20110310-11 \
|
|
g++=4:5.3.1-1ubuntu1 \
|
|
gcc=4:5.3.1-1ubuntu1 \
|
|
gdb=7.11.1-0ubuntu1~16.5 \
|
|
gdbserver=7.11.1-0ubuntu1~16.5 \
|
|
git=1:2.7.4-0ubuntu1.3 \
|
|
libcurl3=7.47.0-1ubuntu2.5 \
|
|
libcurl4-openssl-dev=7.47.0-1ubuntu2.5 \
|
|
libprotobuf8=2.5.0-9ubuntu1 \
|
|
libssl-dev=1.0.2g-1ubuntu4.9 \
|
|
libtool=2.4.6-0.1 \
|
|
libunwind8=1.1-4.1 \
|
|
make=4.1-6 \
|
|
ocaml=4.02.3-5ubuntu2 \
|
|
openjdk-8-jdk=8u151-b12-0ubuntu0.16.04.2 \
|
|
openssl=1.0.2g-1ubuntu4.9 \
|
|
patch=2.7.5-1 \
|
|
proguard=5.2.1-3 \
|
|
python2.7=2.7.12-1ubuntu0~16.04.2 \
|
|
unzip=6.0-20ubuntu1 \
|
|
wget=1.17.1-1ubuntu1.3 \
|
|
zip=3.0-11 \
|
|
zlib1g-dev=1:1.2.8.dfsg-2ubuntu4.1
|
|
|
|
RUN apt-get install -qqy -t trusty \
|
|
protobuf-compiler=2.6.1-1.3 \
|
|
libprotobuf-dev=2.6.1-1.3
|
|
|
|
# Environment
|
|
|
|
ENV SHELL /bin/bash
|
|
ENV HOME /root
|
|
ENV CODE /code
|
|
ENV SGX_SDK /sgx
|
|
|
|
# Volumes and work directory
|
|
|
|
VOLUME ${HOME}
|
|
VOLUME ${CODE}
|
|
VOLUME ${SGX_SDK}
|
|
RUN mkdir -p ${HOME}
|
|
RUN mkdir -p ${CODE}
|
|
RUN mkdir -p ${SGX_SDK}
|
|
WORKDIR ${CODE}
|
|
|
|
# Expose ports for remote GDB and Java debugging, and test servers
|
|
|
|
EXPOSE 2000 5005 8080 9080
|
|
|
|
# Set up Java and SGX environment
|
|
|
|
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
|
|
|
|
ENV SGX_BIN ${SGX_SDK}/sgxsdk/bin:${SGX_SDK}/sgxsdk/bin/x64
|
|
ENV PATH ${PATH}:${JAVA_HOME}/jre/bin:${JAVA_HOME}/bin:${SGX_BIN}
|
|
|
|
ENV LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CODE}/sgx-jvm/linux-sgx/build/linux
|
|
|
|
# Set Python 2.7 as the default version
|
|
|
|
RUN ln -fs \
|
|
/usr/bin/python2.7 \
|
|
/usr/bin/python
|
|
|
|
# Link libcrypto properly
|
|
|
|
RUN ln -fs \
|
|
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 \
|
|
/usr/lib/x86_64-linux-gnu/libcrypto.so
|
|
|
|
# Location for the UNIX socket belonging to the Intel AESM service
|
|
|
|
RUN mkdir -p /var/run/aesmd/
|
|
|
|
# Update ProGuard to version 6 beta
|
|
|
|
ADD dependencies/proguard6.0beta1.tar.gz /usr/share/
|