forked from rancher/rancher-cleanup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dapper
30 lines (25 loc) · 1.06 KB
/
Dockerfile.dapper
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ghcr.io/oracle/oraclelinux:7-slim
ARG DAPPER_HOST_ARCH
ENV ARCH $DAPPER_HOST_ARCH
RUN yum-config-manager --enable ol7_optional_latest && \
yum-config-manager --enable ol7_addons && \
yum update -y && \
# software collections repo needed for git 2.x on OL7
yum-config-manager --add-repo=http://yum.oracle.com/repo/OracleLinux/OL7/SoftwareCollections/x86_64 && \
yum install -y bash rh-git227 gcc glibc-static docker-cli vim awk less libffi file curl wget ca-certificates unzip tar jq && \
yum clean all && \
rm -rf /var/cache/yum && \
# Set up needed to ensure git 2.27 from rh-git227 is on the path
ln /opt/rh/rh-git227/enable /etc/profile.d/git.sh && \
source /etc/profile.d/git.sh && \
git version
# Update PATH to make sure git 2.27 is on the path
ENV PATH="/opt/rh/rh-git227/root/usr/bin:${PATH}"
ENV DAPPER_ENV REPO TAG DRONE_TAG CROSS
ENV DAPPER_SOURCE /rancher-cleanup
ENV DAPPER_OUTPUT ./bin ./dist
ENV DAPPER_DOCKER_SOCKET true
ENV HOME ${DAPPER_SOURCE}
WORKDIR ${DAPPER_SOURCE}
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]