-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update script and intro an environment variable to using proxy for Gi…
…thub. (#35) - Add `Dockerfile.rockylinux` to build Rocky Linux images - Modify `pullsrc.sh`, add an environment variable to using proxy for Github. - Modify `version.env`, sync environment variable. - Modify `README.md`, sync doc. - Modify `.github/workflows/build-images.yml`, sync Rocky Linux image.
- Loading branch information
Showing
5 changed files
with
119 additions
and
4 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 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,31 @@ | ||
# Official: https://hub.docker.com/_/rockylinux | ||
ARG VERSION_NUM="9" | ||
FROM rockylinux:$VERSION_NUM | ||
ARG VERSION_NUM | ||
ARG CHINA_MIRROR=0 | ||
LABEL Author="Rex Zhou <zrx879582094@gmail.com>" | ||
|
||
WORKDIR /data | ||
|
||
# Copy all files | ||
COPY . /data | ||
|
||
RUN if [ "$CHINA_MIRROR" != "0" ]; then \ | ||
# Official webpage: https://developer.aliyun.com/mirror/rockylinux | ||
MIRROR_URL="https://mirrors.aliyun.com/rockylinux" && \ | ||
sed -e 's|^mirrorlist=|#mirrorlist=|g' \ | ||
-e "s|^#baseurl=http://dl.rockylinux.org/\$contentdir|baseurl=$MIRROR_URL|g" \ | ||
-i.bak \ | ||
/etc/yum.repos.d/*.repo; \ | ||
fi && \ | ||
rm -rf /var/cache/yum/ && \ | ||
yum clean all && yum makecache timer && \ | ||
yum groupinstall -y "Development Tools" && \ | ||
yum install -y perl rpm-build pam-devel krb5-devel zlib-devel libXt-devel libX11-devel gtk2-devel && \ | ||
yum clean all && \ | ||
find . -type f -name '.keep' -delete && \ | ||
LINE_NO=$(grep -n -- "--define 'skip_x11_askpass 1'" /data/compile.sh | cut -d: -f1) && \ | ||
sed -i "$LINE_NO a\--define \"debug_package %{nil}\" \\\\" ./compile.sh && \ | ||
bash ./pullsrc.sh | ||
|
||
CMD ["bash", "/data/compile.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
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