-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
e7c2a8f
commit c5888e7
Showing
26 changed files
with
6,895 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
#use latest armv7hf compatible raspbian OS version from group resin.io as base image | ||
FROM balenalib/armv7hf-debian:stretch | ||
#use armv7hf compatible base image | ||
FROM balenalib/armv7hf-debian:buster-20191223 | ||
|
||
#enable building ARM container on x86 machinery on the web (comment out next line if built on Raspberry) | ||
RUN [ "cross-build-start" ] | ||
#dynamic build arguments coming from the /hooks/build file | ||
ARG BUILD_DATE | ||
ARG VCS_REF | ||
|
||
#metadata labels | ||
LABEL org.label-schema.build-date=$BUILD_DATE \ | ||
org.label-schema.vcs-url="https://github.com/HilscherAutomation/netPI-netx-programming-examples" \ | ||
org.label-schema.vcs-ref=$VCS_REF | ||
|
||
#version | ||
ENV HILSCHERNETPI_NETX_PROGRAMMING_EXAMPLES_VERSION 1.1.0 | ||
|
||
#labeling | ||
LABEL maintainer="[email protected]" \ | ||
version="V1.0.0" \ | ||
version=$HILSCHERNETPI_NETX_PROGRAMMING_EXAMPLES_VERSION \ | ||
description="netX real-time ethernet programming examples" | ||
|
||
#version | ||
ENV HILSCHERNETPI_NETX_PROGRAMMING_EXAMPLES_VERSION 1.0.0 | ||
|
||
#install ssh, gcc, create user "pi" and make him sudo | ||
RUN apt-get update \ | ||
&& apt-get install -y openssh-server build-essential \ | ||
|
@@ -44,8 +50,9 @@ COPY ./manuals/* manuals/ | |
#copy the firmware packages | ||
COPY ./firmwares/* firmwares/ | ||
|
||
#copy the netx driver | ||
#copy the netx driver and include files | ||
COPY ./driver/* driver/ | ||
COPY ./driver/includes/* /usr/include/cifx/ | ||
|
||
#copy the include files | ||
COPY examples/includes/EtherCAT/* includes/EtherCAT/ | ||
|
@@ -72,7 +79,7 @@ COPY examples/Makefile ./ | |
COPY examples/sources/* sources/ | ||
|
||
#install the driver | ||
RUN dpkg -i ./driver/netx-docker-pi-drv-1.1.3.deb | ||
RUN dpkg -i ./driver/netx-docker-pi-drv-2.0.1-r0.deb | ||
|
||
#compile the applications | ||
RUN make | ||
|
@@ -86,6 +93,3 @@ ENTRYPOINT ["/usr/sbin/sshd", "-D"] | |
#set STOPSGINAL | ||
STOPSIGNAL SIGTERM | ||
|
||
#stop processing ARM emulation (comment out next line if built on Raspberry) | ||
RUN [ "cross-build-end" ] | ||
|
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
Oops, something went wrong.