-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from peng9808/main
fix drbd-utils install failed bug
- Loading branch information
Showing
23 changed files
with
432 additions
and
399 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,6 @@ | ||
FROM ubuntu:bionic | ||
From ghcr.io/hwameistor/drbd9-bionic:v9.0.32-1 | ||
|
||
# note: py2 setuptools are a bit smaller than the py3 ones | ||
RUN apt-get update && apt-get install -y kmod gnupg wget make gcc patch curl && \ | ||
apt-get install -y python-setuptools && apt-get clean && \ | ||
cd /tmp && wget https://github.com/LINBIT/python-lbdist/archive/master.tar.gz && \ | ||
tar xvf master.tar.gz && \ | ||
( cd python-lbdist-master && python setup.py install ) && \ | ||
rm -rf python-lbdist-master master.tar.gz | ||
|
||
COPY /drbd.tar.gz / | ||
|
||
COPY /pkgs /pkgs | ||
COPY /config-drbd.sh / | ||
COPY /entry.sh / | ||
RUN chmod +x /entry.sh | ||
|
||
# link python3 | ||
RUN ln -vs /usr/bin/python2 /usr/bin/python3 | ||
RUN ln -vs /usr/bin/python2 /usr/bin/python3.6 | ||
|
||
ENTRYPOINT /entry.sh | ||
|
||
ENV DRBD_VERSION 9.1.8 |
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,24 @@ | ||
FROM ubuntu:bionic | ||
|
||
# note: py2 setuptools are a bit smaller than the py3 ones | ||
RUN apt-get update && apt-get install -y kmod gnupg wget make gcc patch curl && \ | ||
apt-get install -y python-setuptools && apt-get clean && \ | ||
cd /tmp && wget https://github.com/LINBIT/python-lbdist/archive/master.tar.gz && \ | ||
tar xvf master.tar.gz && \ | ||
( cd python-lbdist-master && python setup.py install ) && \ | ||
rm -rf python-lbdist-master master.tar.gz | ||
|
||
COPY /drbd.tar.gz / | ||
|
||
COPY /pkgs /pkgs | ||
COPY /config-drbd.sh / | ||
COPY /entry.sh / | ||
RUN chmod +x /entry.sh | ||
|
||
# link python3 | ||
RUN ln -vs /usr/bin/python2 /usr/bin/python3 | ||
RUN ln -vs /usr/bin/python2 /usr/bin/python3.6 | ||
|
||
ENTRYPOINT /entry.sh | ||
|
||
ENV DRBD_VERSION 9.1.8 |
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,24 +1,5 @@ | ||
FROM ubuntu:focal | ||
From ghcr.io/hwameistor/drbd9-focal:v9.0.32-1 | ||
|
||
# note: py2 setuptools are a bit smaller than the py3 ones | ||
RUN apt-get update && apt-get install -y kmod gnupg wget make gcc patch curl && \ | ||
apt-get install -y python-setuptools && apt-get clean && \ | ||
cd /tmp && wget https://github.com/LINBIT/python-lbdist/archive/master.tar.gz && \ | ||
tar xvf master.tar.gz && \ | ||
( cd python-lbdist-master && python2 setup.py install ) && \ | ||
rm -rf python-lbdist-master master.tar.gz | ||
|
||
COPY /drbd.tar.gz / | ||
|
||
COPY /pkgs /pkgs | ||
COPY /config-drbd.sh / | ||
COPY /entry.sh / | ||
RUN chmod +x /entry.sh | ||
|
||
# link python3 | ||
RUN ln -vs /usr/bin/python2 /usr/bin/python3 | ||
RUN ln -vs /usr/bin/python2 /usr/bin/python3.6 | ||
|
||
ENTRYPOINT /entry.sh | ||
|
||
ENV DRBD_VERSION 9.1.8 | ||
RUN chmod +x /entry.sh |
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,24 @@ | ||
FROM ubuntu:focal | ||
|
||
# note: py2 setuptools are a bit smaller than the py3 ones | ||
RUN apt-get update && apt-get install -y kmod gnupg wget make gcc patch curl && \ | ||
apt-get install -y python-setuptools && apt-get clean && \ | ||
cd /tmp && wget https://github.com/LINBIT/python-lbdist/archive/master.tar.gz && \ | ||
tar xvf master.tar.gz && \ | ||
( cd python-lbdist-master && python2 setup.py install ) && \ | ||
rm -rf python-lbdist-master master.tar.gz | ||
|
||
COPY /drbd.tar.gz / | ||
|
||
COPY /pkgs /pkgs | ||
COPY /config-drbd.sh / | ||
COPY /entry.sh / | ||
RUN chmod +x /entry.sh | ||
|
||
# link python3 | ||
RUN ln -vs /usr/bin/python2 /usr/bin/python3 | ||
RUN ln -vs /usr/bin/python2 /usr/bin/python3.6 | ||
|
||
ENTRYPOINT /entry.sh | ||
|
||
ENV DRBD_VERSION 9.1.8 |
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,20 +1,6 @@ | ||
FROM ubuntu:jammy | ||
From ghcr.io/hwameistor/drbd9-jammy:v9.0.32-1 | ||
|
||
RUN apt-get update && apt-get install -y kmod gnupg wget make gcc patch elfutils curl && \ | ||
apt-get install -y python3-setuptools && apt-get clean && \ | ||
cd /tmp && wget https://github.com/LINBIT/python-lbdist/archive/master.tar.gz && \ | ||
tar xvf master.tar.gz && \ | ||
( cd python-lbdist-master && python3 setup.py install ) && \ | ||
rm -rf python-lbdist-master master.tar.gz | ||
|
||
COPY /drbd.tar.gz / | ||
|
||
COPY /pkgs /pkgs | ||
COPY /config-drbd.sh / | ||
COPY /entry.sh / | ||
RUN chmod +x /entry.sh | ||
ENTRYPOINT /entry.sh | ||
|
||
ENV DRBD_VERSION 9.1.8 | ||
|
||
RUN apt-get update && apt-get install -y coccinelle --fix-missing && apt-get clean | ||
ENTRYPOINT /entry.sh |
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,20 @@ | ||
FROM ubuntu:jammy | ||
|
||
RUN apt-get update && apt-get install -y kmod gnupg wget make gcc patch elfutils curl && \ | ||
apt-get install -y python3-setuptools && apt-get clean && \ | ||
cd /tmp && wget https://github.com/LINBIT/python-lbdist/archive/master.tar.gz && \ | ||
tar xvf master.tar.gz && \ | ||
( cd python-lbdist-master && python3 setup.py install ) && \ | ||
rm -rf python-lbdist-master master.tar.gz | ||
|
||
COPY /drbd.tar.gz / | ||
|
||
COPY /pkgs /pkgs | ||
COPY /config-drbd.sh / | ||
COPY /entry.sh / | ||
RUN chmod +x /entry.sh | ||
ENTRYPOINT /entry.sh | ||
|
||
ENV DRBD_VERSION 9.1.8 | ||
|
||
RUN apt-get update && apt-get install -y coccinelle --fix-missing && apt-get clean |
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,44 +1,5 @@ | ||
FROM centos:8 AS kylin-base | ||
From ghcr.io/hwameistor/drbd9-kylin10:v9.0.32-1 | ||
|
||
ENV KYLIN_ROOT '/kylin/rootfs' | ||
|
||
COPY kylin10.repo / | ||
|
||
RUN set -x && \ | ||
rm -vf /etc/yum.repos.d/*.repo && \ | ||
cp -vf /kylin10.repo /etc/yum.repos.d/ && \ | ||
mkdir -vp ${KYLIN_ROOT} && \ | ||
rpm --root ${KYLIN_ROOT} --initdb && \ | ||
yum install -y --downloadonly --downloaddir . kylin-release kylin-repos kylin-gpg-keys && \ | ||
rpm --root ${KYLIN_ROOT} -ivh --force --nodeps kylin-release*.rpm kylin-repos*.rpm kylin-gpg-keys*.rpm && \ | ||
rpm --root ${KYLIN_ROOT} --import ${KYLIN_ROOT}/etc/pki/rpm-gpg/RPM-GPG-KEY-kylin && \ | ||
rm -vf *.rpm | ||
|
||
RUN set -x && \ | ||
yum -y --installroot=${KYLIN_ROOT} --setopt=tsflags='nodocs' --setopt=override_install_langs=en_US.utf8 \ | ||
install tar wget gcc make patch curl kmod cpio python3 elfutils-libelf-devel python2 hostname && \ | ||
yum -y --installroot=${KYLIN_ROOT} clean all | ||
|
||
FROM scratch | ||
|
||
COPY --from=kylin-base /kylin/rootfs/ / | ||
|
||
ENV DRBD_VERSION 9.1.8 | ||
|
||
RUN cd /tmp && wget https://github.com/LINBIT/python-lbdist/archive/master.tar.gz && \ | ||
tar xvf master.tar.gz && \ | ||
( cd python-lbdist-master && python setup.py install ) && \ | ||
rm -rf python-lbdist-master master.tar.gz | ||
|
||
# one can not comment copy | ||
RUN wget --no-check-certificate https://pkg.linbit.com/downloads/drbd/"$([[ $DRBD_VERSION =~ ^9.0 ]] && echo 9.0 || echo 9 )"/drbd-${DRBD_VERSION}.tar.gz -O /drbd.tar.gz # !lbbuild | ||
# =lbbuild COPY /drbd.tar.gz / | ||
|
||
# these are now the kmod pkgs: | ||
COPY /pkgs /pkgs | ||
COPY /drbdUtils.tar.gz / | ||
COPY /install-drbdutils.sh / | ||
COPY /config-drbd.sh / | ||
COPY /entry.sh / | ||
RUN chmod +x /entry.sh | ||
ENTRYPOINT /entry.sh | ||
RUN chmod +x /entry.sh |
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,44 @@ | ||
FROM centos:8 AS kylin-base | ||
|
||
ENV KYLIN_ROOT '/kylin/rootfs' | ||
|
||
COPY kylin10.repo / | ||
|
||
RUN set -x && \ | ||
rm -vf /etc/yum.repos.d/*.repo && \ | ||
cp -vf /kylin10.repo /etc/yum.repos.d/ && \ | ||
mkdir -vp ${KYLIN_ROOT} && \ | ||
rpm --root ${KYLIN_ROOT} --initdb && \ | ||
yum install -y --downloadonly --downloaddir . kylin-release kylin-repos kylin-gpg-keys && \ | ||
rpm --root ${KYLIN_ROOT} -ivh --force --nodeps kylin-release*.rpm kylin-repos*.rpm kylin-gpg-keys*.rpm && \ | ||
rpm --root ${KYLIN_ROOT} --import ${KYLIN_ROOT}/etc/pki/rpm-gpg/RPM-GPG-KEY-kylin && \ | ||
rm -vf *.rpm | ||
|
||
RUN set -x && \ | ||
yum -y --installroot=${KYLIN_ROOT} --setopt=tsflags='nodocs' --setopt=override_install_langs=en_US.utf8 \ | ||
install tar wget gcc make patch curl kmod cpio python3 elfutils-libelf-devel python2 hostname && \ | ||
yum -y --installroot=${KYLIN_ROOT} clean all | ||
|
||
FROM scratch | ||
|
||
COPY --from=kylin-base /kylin/rootfs/ / | ||
|
||
ENV DRBD_VERSION 9.1.8 | ||
|
||
RUN cd /tmp && wget https://github.com/LINBIT/python-lbdist/archive/master.tar.gz && \ | ||
tar xvf master.tar.gz && \ | ||
( cd python-lbdist-master && python setup.py install ) && \ | ||
rm -rf python-lbdist-master master.tar.gz | ||
|
||
# one can not comment copy | ||
RUN wget --no-check-certificate https://pkg.linbit.com/downloads/drbd/"$([[ $DRBD_VERSION =~ ^9.0 ]] && echo 9.0 || echo 9 )"/drbd-${DRBD_VERSION}.tar.gz -O /drbd.tar.gz # !lbbuild | ||
# =lbbuild COPY /drbd.tar.gz / | ||
|
||
# these are now the kmod pkgs: | ||
COPY /pkgs /pkgs | ||
COPY /drbdUtils.tar.gz / | ||
COPY /install-drbdutils.sh / | ||
COPY /config-drbd.sh / | ||
COPY /entry.sh / | ||
RUN chmod +x /entry.sh | ||
ENTRYPOINT /entry.sh |
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,40 +1,6 @@ | ||
# FROM registry.access.redhat.com/ubi7/ubi | ||
# Change to CentOS because Ubi7 does not support linux/arm6 | ||
FROM centos:7 | ||
MAINTAINER Roland Kammerer <[email protected]> | ||
From ghcr.io/hwameistor/drbd9-rhel7:v9.0.32-1 | ||
|
||
ENV DRBD_VERSION 9.1.8 | ||
|
||
ARG release=1 | ||
LABEL name="DRBD Kernel module load container" \ | ||
vendor="LINBIT" \ | ||
version="$DRBD_VERSION" \ | ||
release="$release" \ | ||
summary="DRBD's kernel component" \ | ||
description="DRBD's kernel component" | ||
RUN mkdir /licenses && cp /usr/share/licenses/shadow-utils-4.6/gpl-2.0.txt /licenses/ | ||
|
||
RUN yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical && \ | ||
yum install -y wget gcc make patch curl kmod yum-utils python-setuptools && yum clean all -y && \ | ||
cd /tmp && wget https://github.com/LINBIT/python-lbdist/archive/master.tar.gz && \ | ||
tar xvf master.tar.gz && \ | ||
( cd python-lbdist-master && python setup.py install ) && \ | ||
rm -rf python-lbdist-master master.tar.gz | ||
|
||
# one can not comment copy | ||
RUN wget --no-check-certificate https://pkg.linbit.com/downloads/drbd/"$([[ $DRBD_VERSION =~ ^9.0 ]] && echo 9.0 || echo 9 )"/drbd-${DRBD_VERSION}.tar.gz -O /drbd.tar.gz # !lbbuild | ||
# =lbbuild COPY /drbd.tar.gz / | ||
|
||
COPY /pkgs /pkgs | ||
COPY /config-drbd.sh / | ||
COPY /entry.sh / | ||
RUN chmod +x /entry.sh | ||
|
||
# link python3, install hostname | ||
RUN ln -vs /usr/bin/python /usr/bin/python3 && \ | ||
ln -vs /usr/bin/python /usr/bin/python3.6 && \ | ||
yum install -y hostname && yum clean all -y | ||
|
||
RUN yum install -y util-linux | ||
|
||
ENTRYPOINT /entry.sh |
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,40 @@ | ||
# FROM registry.access.redhat.com/ubi7/ubi | ||
# Change to CentOS because Ubi7 does not support linux/arm6 | ||
FROM centos:7 | ||
MAINTAINER Roland Kammerer <[email protected]> | ||
|
||
ENV DRBD_VERSION 9.1.8 | ||
|
||
ARG release=1 | ||
LABEL name="DRBD Kernel module load container" \ | ||
vendor="LINBIT" \ | ||
version="$DRBD_VERSION" \ | ||
release="$release" \ | ||
summary="DRBD's kernel component" \ | ||
description="DRBD's kernel component" | ||
RUN mkdir /licenses && cp /usr/share/licenses/shadow-utils-4.6/gpl-2.0.txt /licenses/ | ||
|
||
RUN yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical && \ | ||
yum install -y wget gcc make patch curl kmod yum-utils python-setuptools && yum clean all -y && \ | ||
cd /tmp && wget https://github.com/LINBIT/python-lbdist/archive/master.tar.gz && \ | ||
tar xvf master.tar.gz && \ | ||
( cd python-lbdist-master && python setup.py install ) && \ | ||
rm -rf python-lbdist-master master.tar.gz | ||
|
||
# one can not comment copy | ||
RUN wget --no-check-certificate https://pkg.linbit.com/downloads/drbd/"$([[ $DRBD_VERSION =~ ^9.0 ]] && echo 9.0 || echo 9 )"/drbd-${DRBD_VERSION}.tar.gz -O /drbd.tar.gz # !lbbuild | ||
# =lbbuild COPY /drbd.tar.gz / | ||
|
||
COPY /pkgs /pkgs | ||
COPY /config-drbd.sh / | ||
COPY /entry.sh / | ||
RUN chmod +x /entry.sh | ||
|
||
# link python3, install hostname | ||
RUN ln -vs /usr/bin/python /usr/bin/python3 && \ | ||
ln -vs /usr/bin/python /usr/bin/python3.6 && \ | ||
yum install -y hostname && yum clean all -y | ||
|
||
RUN yum install -y util-linux | ||
|
||
ENTRYPOINT /entry.sh |
Oops, something went wrong.