-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using Docker Hub and renaming the images
- Loading branch information
Showing
10 changed files
with
165 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,55 @@ | ||
FROM crg/ega-os | ||
FROM centos:7.5.1804 | ||
LABEL maintainer "EGA System Developers" | ||
|
||
################################################# | ||
## | ||
## Install LocalEGA stuff | ||
## Upgrade CentOS 7, and install Python 3.6 | ||
## | ||
################################################# | ||
|
||
RUN groupadd -r lega && \ | ||
useradd -M -r -g lega lega | ||
ARG DEV_PACKAGES= | ||
RUN yum -y install https://centos7.iuscommunity.org/ius-release.rpm && \ | ||
yum -y install epel-release && \ | ||
yum -y update && \ | ||
yum -y install git gcc make bzip2 curl ${DEV_PACKAGES} \ | ||
zlib-devel bzip2-devel unzip \ | ||
wget dpkg \ | ||
openssl \ | ||
python36u python36u-devel python36u-pip | ||
|
||
ARG checkout=master | ||
ARG cryptor_checkout=master | ||
RUN [[ -e /lib64/libpython3.6m.so ]] || ln -s /lib64/libpython3.6m.so.1.0 /lib64/libpython3.6m.so | ||
|
||
RUN git clone https://github.com/EGA-archive/LocalEGA.git /root/LocalEGA | ||
RUN git clone https://github.com/EGA-archive/crypt4gh.git /root/cryptor | ||
RUN pip3.6 install --upgrade pip && \ | ||
pip3.6 install PyYaml | ||
|
||
RUN cd /root/LocalEGA && git checkout ${checkout} | ||
RUN pip3.6 install -r /root/LocalEGA/requirements.txt | ||
RUN pip3.6 install /root/LocalEGA | ||
################################################# | ||
## | ||
## Install GOSU | ||
## | ||
################################################# | ||
|
||
ENV GOSU_VERSION 1.10 | ||
ENV GPG_KEYS B42F6819007F00F88E364FD4036A9C25BF357DD4 | ||
RUN set -ex && \ | ||
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" && \ | ||
wget -O /usr/bin/gosu "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-${dpkgArch}" && \ | ||
wget -O /tmp/gosu.asc "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-${dpkgArch}.asc" | ||
|
||
# verify the signature | ||
RUN export GNUPGHOME="$(mktemp -d)" && \ | ||
(gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEYS" \ | ||
|| gpg --keyserver pgp.mit.edu --recv-keys "$GPG_KEYS" \ | ||
|| gpg --keyserver keyserver.pgp.com --recv-keys "$GPG_KEYS") && \ | ||
gpg --keyserver hkps://hkps.pool.sks-keyservers.net --recv-keys && \ | ||
gpg --batch --verify /tmp/gosu.asc /usr/bin/gosu && \ | ||
rm -r "$GNUPGHOME" /tmp/gosu.asc && \ | ||
chmod +x /usr/bin/gosu | ||
|
||
# verify that the binary works | ||
RUN gosu nobody true && \ | ||
yum -y remove dpkg | ||
|
||
################################################# | ||
# Clean up | ||
|
||
RUN cd /root/cryptor && git checkout ${cryptor_checkout} | ||
RUN pip3.6 install -r /root/cryptor/requirements.txt | ||
RUN pip3.6 install /root/cryptor | ||
RUN yum clean all && rm -rf /var/cache/yum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM crg/ega-os | ||
FROM egarchive/base | ||
LABEL maintainer "EGA System Developers" | ||
|
||
RUN groupadd -r lega && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM egarchive/base | ||
LABEL maintainer "EGA System Developers" | ||
|
||
################################################# | ||
## | ||
## Install LocalEGA stuff | ||
## | ||
################################################# | ||
|
||
RUN groupadd -r lega && \ | ||
useradd -M -r -g lega lega | ||
|
||
RUN git clone https://github.com/EGA-archive/LocalEGA.git /root/LocalEGA | ||
|
||
ARG checkout=master | ||
|
||
RUN cd /root/LocalEGA && git checkout ${checkout} | ||
|
||
# Requirements include crypt4gh (from https://github.com/EGA-archive/crypt4gh.git) | ||
RUN pip3.6 install -r /root/LocalEGA/requirements.txt && \ | ||
pip3.6 install /root/LocalEGA && \ | ||
rm -rf /root/LocalEGA |
Oops, something went wrong.