Skip to content
Snippets Groups Projects
Commit 1834d3bc authored by Anders Lindh Olsson's avatar Anders Lindh Olsson :8ball:
Browse files

initial commit

parent 23342d50
No related branches found
No related tags found
No related merge requests found
FROM centos:7.7.1908
FROM ubuntu:18.04
LABEL maintainer "benjamin.bertrand@esss.se"
LABEL maintainer "anders.lindholsson@ess.eu"
RUN yum update -y \
# Use IUS repository to install recent version of git (git2u)
&& yum -y install https://repo.ius.io/ius-release-el7.rpm \
&& yum install -y \
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
file \
patch \
tree \
git \
curl \
m4 \
gcc-c++ \
autoconf \
automake \
libtool \
git224-all \
expectk \
tclx \
graphviz \
libtirpc-devel \
re2c \
readline-devel \
hdf5-devel \
libxml2-devel \
libjpeg-turbo-devel \
libtiff-devel \
blosc-devel \
netcdf-devel \
opencv-devel \
wget \
sudo \
python3 \
&& yum clean all
# cross-compiler version
ENV E3_CROSS_COMPILER_VERSION=stable \
E3_CROSS_COMPILER_KERNEL=2.6-4.14 \
E3_CROSS_COMPILER_SHORT_SHA=ea12a175
# Install ifc14xx toolchain
ENV IFC14XX_TOOLCHAIN_SCRIPT ifc14xx-glibc-x86_64-ifc14xx-toolchain-ppc64e6500-toolchain-${E3_CROSS_COMPILER_KERNEL}-${E3_CROSS_COMPILER_SHORT_SHA}.sh
RUN wget --quiet -P /tmp https://artifactory.esss.lu.se/artifactory/yocto/toolchain/${E3_CROSS_COMPILER_VERSION}/${IFC14XX_TOOLCHAIN_SCRIPT} \
&& chmod a+x /tmp/${IFC14XX_TOOLCHAIN_SCRIPT} \
&& /tmp/${IFC14XX_TOOLCHAIN_SCRIPT} -y \
&& rm -f /tmp/${IFC14XX_TOOLCHAIN_SCRIPT}
# Install cct toolchain
ENV CCT_TOOLCHAIN_SCRIPT cct-glibc-x86_64-cct-toolchain-corei7-64-toolchain-${E3_CROSS_COMPILER_KERNEL}-${E3_CROSS_COMPILER_SHORT_SHA}.sh
RUN wget --quiet -P /tmp https://artifactory.esss.lu.se/artifactory/yocto/toolchain/${E3_CROSS_COMPILER_VERSION}/${CCT_TOOLCHAIN_SCRIPT} \
&& chmod a+x /tmp/${CCT_TOOLCHAIN_SCRIPT} \
&& /tmp/${CCT_TOOLCHAIN_SCRIPT} -y \
&& rm -f /tmp/${CCT_TOOLCHAIN_SCRIPT}
# Install google git repo
RUN wget -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo \
&& chmod a+x /usr/local/bin/repo
# Add user that will be used by gitlab-ci to compile
# This user shall have the proper uid to have write access on E3 NFS share
# It shall match the uid and gid of the user defined in LDAP
ENV USERNAME gitlab-ci
RUN groupadd -r -g 100000 ${USERNAME} \
&& useradd --no-log-init -r -m -g ${USERNAME} -u 10043 ${USERNAME}
# Create /epics directory in the image so that we can test
# without mounting an external dir
RUN mkdir /epics && chown ${USERNAME}:${USERNAME} /epics
coreutils \
build-essential \
libreadline-dev \
&& rm -rf /var/lib/apt/lists/*
USER ${USERNAME}
WORKDIR /home/${USERNAME}
......
This diff is collapsed.
# centos-e3 docker image
# ubuntu-e3 docker image
[Docker](https://www.docker.com) image based on Centos 7.7 to build E3 modules.
It includes the yocto ifc14xx and cct cross-compiler toolchains.
The image should use the E3_CROSS_COMPILER_SHORT_SHA as tag by default.
Docker pull command:
```
docker pull registry.esss.lu.se/ics-docker/centos-e3:latest
```
[Docker](https://www.docker.com) image based on ubuntu 18.04 to build e3 modules.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment