Robin Schneider
5 years ago
No known key found for this signature in database
GPG Key ID: A81E8006DC95EFE6
3 changed files with
34 additions and
0 deletions
-
docker/Dockerfile.j2
-
docker/armv7/mysql/Dockerfile
-
docker/armv7/sqlite/Dockerfile
|
|
@ -135,6 +135,18 @@ RUN apt-get update \ |
|
|
|
ENV CARGO_HOME "/root/.cargo" |
|
|
|
ENV USER "root" |
|
|
|
|
|
|
|
{% elif "armv7" in target_file %} |
|
|
|
RUN apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
gcc-arm-linux-gnueabihf \ |
|
|
|
&& mkdir -p ~/.cargo \ |
|
|
|
&& echo '[target.armv7-unknown-linux-gnueabihf]' >> ~/.cargo/config \ |
|
|
|
&& echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config |
|
|
|
|
|
|
|
ENV CARGO_HOME "/root/.cargo" |
|
|
|
ENV USER "root" |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
{% if "mysql" in target_file %} |
|
|
|
# Install MySQL package |
|
|
|
|
|
@ -47,6 +47,17 @@ RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
libssl-dev:armhf \ |
|
|
|
libc6-dev:armhf |
|
|
|
|
|
|
|
RUN apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
gcc-arm-linux-gnueabihf \ |
|
|
|
&& mkdir -p ~/.cargo \ |
|
|
|
&& echo '[target.armv7-unknown-linux-gnueabihf]' >> ~/.cargo/config \ |
|
|
|
&& echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config |
|
|
|
|
|
|
|
ENV CARGO_HOME "/root/.cargo" |
|
|
|
ENV USER "root" |
|
|
|
|
|
|
|
# Install MySQL package |
|
|
|
RUN apt-get update && apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
|
|
@ -47,6 +47,17 @@ RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ |
|
|
|
libssl-dev:armhf \ |
|
|
|
libc6-dev:armhf |
|
|
|
|
|
|
|
RUN apt-get update \ |
|
|
|
&& apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
gcc-arm-linux-gnueabihf \ |
|
|
|
&& mkdir -p ~/.cargo \ |
|
|
|
&& echo '[target.armv7-unknown-linux-gnueabihf]' >> ~/.cargo/config \ |
|
|
|
&& echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config |
|
|
|
|
|
|
|
ENV CARGO_HOME "/root/.cargo" |
|
|
|
ENV USER "root" |
|
|
|
|
|
|
|
# Creates a dummy project used to grab dependencies |
|
|
|
RUN USER=root cargo new --bin /app |
|
|
|
WORKDIR /app |
|
|
|