Skip to content

Commit

Permalink
Minor modifications to docker builder
Browse files Browse the repository at this point in the history
  • Loading branch information
okynos committed Oct 25, 2024
1 parent a6ba863 commit 75412a4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 22 deletions.
23 changes: 12 additions & 11 deletions pkg/deb/docker/Dockerfile.amd64
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM amd64/ubuntu:xenial

RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries && \
sed -i 's|deb http://security|#deb http://security|g' /etc/apt/sources.list && \
apt update && \
apt install -y curl devscripts equivs tar gcc gzip pkg-config git && \
mkdir -p /tmp/output

# It requires to copy the entrypoint.sh to the docker folder.
ADD entrypoint.sh /usr/local/bin/entrypoint.sh

FROM ubuntu:xenial

RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries && \
sed -i 's|deb http://security|#deb http://security|g' /etc/apt/sources.list && \
apt update && \
apt install -y curl devscripts equivs tar gcc gzip pkg-config git && \
mkdir -p /tmp/output

# It requires to copy the entrypoint.sh to the docker folder.
ADD entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
23 changes: 12 additions & 11 deletions pkg/deb/docker/Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM arm64/ubuntu:xenial

RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries && \
sed -i 's|deb http://security|#deb http://security|g' /etc/apt/sources.list && \
apt update && \
apt install -y curl devscripts equivs tar gcc gzip pkg-config git && \
mkdir -p /tmp/output

# It requires to copy the entrypoint.sh to the docker folder.
ADD entrypoint.sh /usr/local/bin/entrypoint.sh

FROM ubuntu:xenial

RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries && \
sed -i 's|deb http://security|#deb http://security|g' /etc/apt/sources.list && \
apt update && \
apt install -y curl devscripts equivs tar gcc gzip pkg-config git && \
mkdir -p /tmp/output

# It requires to copy the entrypoint.sh to the docker folder.
ADD entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
1 change: 1 addition & 0 deletions pkg/rpm/docker/Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ RUN yum update -y && \
mkdir -p /tmp/output

ADD entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
1 change: 1 addition & 0 deletions pkg/rpm/docker/Dockerfile.x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ RUN yum update -y && \
mkdir -p /tmp/output

ADD entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]

0 comments on commit 75412a4

Please sign in to comment.