Robin Schneider
5 years ago
No known key found for this signature in database
GPG Key ID: A81E8006DC95EFE6
7 changed files with
66 additions and
67 deletions
-
docker/Dockerfile.j2
-
docker/aarch64/mysql/Dockerfile
-
docker/aarch64/sqlite/Dockerfile
-
docker/armv6/mysql/Dockerfile
-
docker/armv6/sqlite/Dockerfile
-
docker/armv7/mysql/Dockerfile
-
docker/armv7/sqlite/Dockerfile
|
|
@ -87,6 +87,18 @@ RUN rustup set profile minimal |
|
|
|
ENV USER "root" |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
{% if "aarch64" in target_file or "armv" in target_file %} |
|
|
|
# Install required build libs for {{ package_arch_name }} architecture. |
|
|
|
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
/etc/apt/sources.list.d/deb-src.list \ |
|
|
|
&& dpkg --add-architecture {{ package_arch_name }} \ |
|
|
|
&& apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
libssl-dev{{ package_arch_prefix }} \ |
|
|
|
libc6-dev{{ package_arch_prefix }} |
|
|
|
|
|
|
|
{% endif -%} |
|
|
|
{% if "aarch64" in target_file %} |
|
|
|
RUN apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
@ -143,19 +155,6 @@ RUN apt-get update && apt-get install -y \ |
|
|
|
RUN USER=root cargo new --bin app |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
{% if "aarch64" in target_file or "armv" in target_file %} |
|
|
|
# Install required build libs for {{ package_arch_name }} architecture. |
|
|
|
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
/etc/apt/sources.list.d/deb-src.list \ |
|
|
|
&& dpkg --add-architecture {{ package_arch_name }} \ |
|
|
|
&& apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
libssl-dev{{ package_arch_prefix }} \ |
|
|
|
libc6-dev{{ package_arch_prefix }} |
|
|
|
|
|
|
|
{% endif -%} |
|
|
|
|
|
|
|
# Copies over *only* your manifests and build files |
|
|
|
COPY ./Cargo.* ./ |
|
|
|
COPY ./rust-toolchain ./rust-toolchain |
|
|
|
|
|
@ -37,6 +37,16 @@ ARG DB=mysql |
|
|
|
# Don't download rust docs |
|
|
|
RUN rustup set profile minimal |
|
|
|
|
|
|
|
# Install required build libs for arm64 architecture. |
|
|
|
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
/etc/apt/sources.list.d/deb-src.list \ |
|
|
|
&& dpkg --add-architecture arm64 \ |
|
|
|
&& apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
libssl-dev:arm64 \ |
|
|
|
libc6-dev:arm64 |
|
|
|
|
|
|
|
RUN apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
@ -58,16 +68,6 @@ RUN apt-get update && apt-get install -y \ |
|
|
|
RUN USER=root cargo new --bin app |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
# Install required build libs for arm64 architecture. |
|
|
|
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
/etc/apt/sources.list.d/deb-src.list \ |
|
|
|
&& dpkg --add-architecture arm64 \ |
|
|
|
&& apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
libssl-dev:arm64 \ |
|
|
|
libc6-dev:arm64 |
|
|
|
|
|
|
|
# Copies over *only* your manifests and build files |
|
|
|
COPY ./Cargo.* ./ |
|
|
|
COPY ./rust-toolchain ./rust-toolchain |
|
|
|
|
|
@ -37,6 +37,16 @@ ARG DB=sqlite |
|
|
|
# Don't download rust docs |
|
|
|
RUN rustup set profile minimal |
|
|
|
|
|
|
|
# Install required build libs for arm64 architecture. |
|
|
|
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
/etc/apt/sources.list.d/deb-src.list \ |
|
|
|
&& dpkg --add-architecture arm64 \ |
|
|
|
&& apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
libssl-dev:arm64 \ |
|
|
|
libc6-dev:arm64 |
|
|
|
|
|
|
|
RUN apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
@ -52,16 +62,6 @@ ENV USER "root" |
|
|
|
RUN USER=root cargo new --bin app |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
# Install required build libs for arm64 architecture. |
|
|
|
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
/etc/apt/sources.list.d/deb-src.list \ |
|
|
|
&& dpkg --add-architecture arm64 \ |
|
|
|
&& apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
libssl-dev:arm64 \ |
|
|
|
libc6-dev:arm64 |
|
|
|
|
|
|
|
# Copies over *only* your manifests and build files |
|
|
|
COPY ./Cargo.* ./ |
|
|
|
COPY ./rust-toolchain ./rust-toolchain |
|
|
|
|
|
@ -37,6 +37,16 @@ ARG DB=mysql |
|
|
|
# Don't download rust docs |
|
|
|
RUN rustup set profile minimal |
|
|
|
|
|
|
|
# Install required build libs for armel architecture. |
|
|
|
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
/etc/apt/sources.list.d/deb-src.list \ |
|
|
|
&& dpkg --add-architecture armel \ |
|
|
|
&& apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
libssl-dev:armel \ |
|
|
|
libc6-dev:armel |
|
|
|
|
|
|
|
RUN apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
@ -58,16 +68,6 @@ RUN apt-get update && apt-get install -y \ |
|
|
|
RUN USER=root cargo new --bin app |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
# Install required build libs for armel architecture. |
|
|
|
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
/etc/apt/sources.list.d/deb-src.list \ |
|
|
|
&& dpkg --add-architecture armel \ |
|
|
|
&& apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
libssl-dev:armel \ |
|
|
|
libc6-dev:armel |
|
|
|
|
|
|
|
# Copies over *only* your manifests and build files |
|
|
|
COPY ./Cargo.* ./ |
|
|
|
COPY ./rust-toolchain ./rust-toolchain |
|
|
|
|
|
@ -37,6 +37,16 @@ ARG DB=sqlite |
|
|
|
# Don't download rust docs |
|
|
|
RUN rustup set profile minimal |
|
|
|
|
|
|
|
# Install required build libs for armel architecture. |
|
|
|
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
/etc/apt/sources.list.d/deb-src.list \ |
|
|
|
&& dpkg --add-architecture armel \ |
|
|
|
&& apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
libssl-dev:armel \ |
|
|
|
libc6-dev:armel |
|
|
|
|
|
|
|
RUN apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
@ -52,16 +62,6 @@ ENV USER "root" |
|
|
|
RUN USER=root cargo new --bin app |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
# Install required build libs for armel architecture. |
|
|
|
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
/etc/apt/sources.list.d/deb-src.list \ |
|
|
|
&& dpkg --add-architecture armel \ |
|
|
|
&& apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
libssl-dev:armel \ |
|
|
|
libc6-dev:armel |
|
|
|
|
|
|
|
# Copies over *only* your manifests and build files |
|
|
|
COPY ./Cargo.* ./ |
|
|
|
COPY ./rust-toolchain ./rust-toolchain |
|
|
|
|
|
@ -37,16 +37,6 @@ ARG DB=mysql |
|
|
|
# Don't download rust docs |
|
|
|
RUN rustup set profile minimal |
|
|
|
|
|
|
|
# Install MySQL package |
|
|
|
RUN apt-get update && apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
libmariadb-dev:armhf \ |
|
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
# Creates a dummy project used to grab dependencies |
|
|
|
RUN USER=root cargo new --bin app |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
# Install required build libs for armhf architecture. |
|
|
|
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
/etc/apt/sources.list.d/deb-src.list \ |
|
|
@ -57,6 +47,16 @@ RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
libssl-dev:armhf \ |
|
|
|
libc6-dev:armhf |
|
|
|
|
|
|
|
# Install MySQL package |
|
|
|
RUN apt-get update && apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
libmariadb-dev:armhf \ |
|
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
# Creates a dummy project used to grab dependencies |
|
|
|
RUN USER=root cargo new --bin app |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
# Copies over *only* your manifests and build files |
|
|
|
COPY ./Cargo.* ./ |
|
|
|
COPY ./rust-toolchain ./rust-toolchain |
|
|
|
|
|
@ -37,10 +37,6 @@ ARG DB=sqlite |
|
|
|
# Don't download rust docs |
|
|
|
RUN rustup set profile minimal |
|
|
|
|
|
|
|
# Creates a dummy project used to grab dependencies |
|
|
|
RUN USER=root cargo new --bin app |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
# Install required build libs for armhf architecture. |
|
|
|
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
/etc/apt/sources.list.d/deb-src.list \ |
|
|
@ -51,6 +47,10 @@ RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
libssl-dev:armhf \ |
|
|
|
libc6-dev:armhf |
|
|
|
|
|
|
|
# Creates a dummy project used to grab dependencies |
|
|
|
RUN USER=root cargo new --bin app |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
# Copies over *only* your manifests and build files |
|
|
|
COPY ./Cargo.* ./ |
|
|
|
COPY ./rust-toolchain ./rust-toolchain |
|
|
|