-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
98 additions
and
46 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
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,36 @@ | ||
ARG DOCKER_IMAGE | ||
FROM ${DOCKER_IMAGE} | ||
USER root | ||
|
||
ARG TARGET_GCC_PACKAGE | ||
ARG TARGET_GCC_EXEC | ||
|
||
ARG CMAKE_VERSION="3.20.5" | ||
|
||
COPY setup-repo.sh /setup-repo.sh | ||
RUN /setup-repo.sh | ||
|
||
RUN yum update -y && \ | ||
yum install -y \ | ||
"make" ${TARGET_GCC_PACKAGE} \ | ||
"glibc" "libstdc++" | ||
|
||
RUN update-alternatives --install /usr/bin/cc cc /usr/bin/${TARGET_GCC_EXEC}-gcc 999 && \ | ||
update-alternatives --install /usr/bin/c++ c++ /usr/bin/${TARGET_GCC_EXEC}-g++ 999 | ||
|
||
VOLUME "/opt/java/" | ||
ENV JAVA_HOME "/opt/java/" | ||
ENV PATH "$PATH:$JAVA_HOME/bin/" | ||
|
||
RUN curl -L "https://dlcdn.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz" -o maven.tar.gz && \ | ||
mkdir /opt/maven && \ | ||
tar -xzf maven.tar.gz -C /opt/maven --strip-components 1 && \ | ||
rm maven.tar.gz | ||
|
||
ENV PATH "$PATH:/opt/cmake/bin/" | ||
|
||
VOLUME "/data/" | ||
WORKDIR "/data/" | ||
|
||
ENTRYPOINT [ ] | ||
CMD [ "/bin/bash" ] |
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 @@ | ||
#!/bin/bash | ||
|
||
(cat <<EOF | ||
[base] | ||
name=CentOS-\$releasever - Base | ||
baseurl=http://archive.kernel.org/centos-vault/6.10/os/\$basearch/ | ||
gpgcheck=1 | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 | ||
[updates] | ||
name=CentOS-\$releasever - Updates | ||
baseurl=http://archive.kernel.org/centos-vault/6.10/os/\$basearch/ | ||
gpgcheck=1 | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 | ||
[extras] | ||
name=CentOS-\$releasever - Extras | ||
baseurl=http://archive.kernel.org/centos-vault/6.10/os/\$basearch/ | ||
gpgcheck=1 | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 | ||
EOF | ||
) | tee /etc/yum.repos.d/CentOS-Base.repo |
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
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