Commit a84eaa7e authored by Thomas Ritter's avatar Thomas Ritter
Browse files

Added docker helper for syntax checking

parent 3e6c4b7a
Loading
Loading
Loading
Loading

Dockerfile

0 → 100644
+27 −0
Original line number Original line Diff line number Diff line
FROM ubuntu:xenial

WORKDIR /home/etsi-its-asn1

RUN apt update
RUN apt install -y git build-essential automake libtool wget sed

RUN mkdir -p /home/etsi-its-asn1
RUN git -C /home/etsi-its-asn1 clone https://github.com/brchiu/asn1c.git -n asn1c
RUN git -C /home/etsi-its-asn1/asn1c checkout velichkov_s1ap_plus_option_group_plus_adding_trailing_ull 
RUN git -C /home/etsi-its-asn1/asn1c status -v

RUN ( cd /home/etsi-its-asn1/asn1c ; autoreconf -iv ; ./configure --prefix=/usr )
RUN make -C /home/etsi-its-asn1/asn1c
RUN make -C /home/etsi-its-asn1/asn1c install
RUN rm -rf /home/etsi-its-asn1/asn1c 

WORKDIR /home/etsi-its-asn1

ADD *.asn /home/etsi-its-asn1/
ADD syntax_check.bash /home/etsi-its-asn1/

ADD iso-patched/ /home/etsi-its-asn1/iso-patched/
ADD cdd/ /home/etsi-its-asn1/cdd/

CMD pwd && ./syntax_check.bash
+15 −0
Original line number Original line Diff line number Diff line
@@ -13,3 +13,18 @@ See the attached LICENSE file or visit https://forge.etsi.org/legal-matters.
* The **[ITS-Container](https://forge.etsi.org/rep/ITS/asn1/cdd_ts102894_2)** module from **[ETSI TS 102 894-2 v1.3.1](https://www.etsi.org/deliver/etsi_ts/102800_102899/10289402/01.03.01_60/ts_10289402v010301p.pdf)**: "Intelligent Transport Systems (ITS); Users and applications requirements; Part 2: Applications and facilities layer common data dictionary".
* The **[ITS-Container](https://forge.etsi.org/rep/ITS/asn1/cdd_ts102894_2)** module from **[ETSI TS 102 894-2 v1.3.1](https://www.etsi.org/deliver/etsi_ts/102800_102899/10289402/01.03.01_60/ts_10289402v010301p.pdf)**: "Intelligent Transport Systems (ITS); Users and applications requirements; Part 2: Applications and facilities layer common data dictionary".
* The **[DSRC](https://standards.iso.org/iso/ts/19091/)** module from  **CEN ISO/TS 19091**: "Intelligent transport systems - Cooperative ITS - Using V2I and I2V communications for applications related to signalized intersections".
* The **[DSRC](https://standards.iso.org/iso/ts/19091/)** module from  **CEN ISO/TS 19091**: "Intelligent transport systems - Cooperative ITS - Using V2I and I2V communications for applications related to signalized intersections".
* The **[IVI](https://standards.iso.org/iso/ts/19321/ed-1/)** module from **CEN ISO/TS 19321-2015**: "Intelligent transport systems - Cooperative ITS - Dictionary of in-vehicle information (IVI) data structures".
* The **[IVI](https://standards.iso.org/iso/ts/19321/ed-1/)** module from **CEN ISO/TS 19321-2015**: "Intelligent transport systems - Cooperative ITS - Dictionary of in-vehicle information (IVI) data structures".


## Syntax check

The correctness of these ASN.1 files can be verified using the bash script **syntax_check.bash**

See the notes in this script for further details.

For convenience a Dockerfile is available that might be useful for this.

```
Usage:
	>docker build -t etsi-its-asn-is:2.0.1 .
	>docker run etsi-its-asn-is:2.0.1
```
+3 −1
Original line number Original line Diff line number Diff line
@@ -100,5 +100,7 @@ asn1c -D build/rtcmem -R -no-gen-example -fcompound-names \
	build/asn1/ISO-TS-19091-addgrp-C-2018-patched.asn \
	build/asn1/ISO-TS-19091-addgrp-C-2018-patched.asn \
	build/asn1/ISO14816_AVIAEINumberingAndDataStructures.asn \
	build/asn1/ISO14816_AVIAEINumberingAndDataStructures.asn \


echo ""
echo "++++++++++++++++++++++++"
echo "+++ SUCCESS"
echo "+++ All modules compiled"
echo "+++ All modules compiled"
echo "++++++++++++++++++++++++"