-
Notifications
You must be signed in to change notification settings - Fork 58
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
Showing
4 changed files
with
36 additions
and
11 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,13 +1,27 @@ | ||
# | ||
# Copy the current folder into the container and build asn1scc. | ||
# | ||
################################################################################################# | ||
################################################################################################# | ||
|
||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build | ||
|
||
RUN apt update | ||
RUN apt install -y python3 python3-distutils \ | ||
gnat gcc g++ make openjdk-11-jre nuget libgit2-dev libssl-dev gprbuild ; apt clean | ||
RUN set -xe \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get update -y \ | ||
&& apt-get install -y libfontconfig libdbus-1-3 libx11-6 libx11-xcb-dev \ | ||
python3 python3-distutils gcc g++ make openjdk-11-jre nuget libgit2-dev libssl-dev \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& apt-get purge --auto-remove \ | ||
&& apt-get clean | ||
|
||
# Install GNAT AND SPARK from AdaCore | ||
|
||
WORKDIR /gnat_tmp/ | ||
|
||
ADD https://community.download.adacore.com/v1/f3a99d283f7b3d07293b2e1d07de00e31e332325?filename=gnat-2021-20210519-x86_64-linux-bin ./gnat-2021-20210519-x86_64-linux-bin | ||
|
||
RUN git clone https://github.com/AdaCore/gnat_community_install_script.git \ | ||
&& chmod +x gnat_community_install_script/install_package.sh \ | ||
&& chmod +x gnat-2021-20210519-x86_64-linux-bin \ | ||
&& gnat_community_install_script/install_package.sh ./gnat-2021-20210519-x86_64-linux-bin /opt/GNAT/gnat-x86-2021 | ||
|
||
WORKDIR /app/ | ||
|
||
RUN rm -rf /gnat_tmp/ | ||
|
||
ENV PATH="/opt/GNAT/gnat-x86-2021/bin:${PATH}" | ||
ENTRYPOINT ["/bin/bash"] |
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
#docker run -ti --rm -v $(pwd):/app -v asn1scc_workdir:/workdir myspark | ||
cd /workdir/ | ||
git -C asn1scc pull || git clone /app/ asn1scc | ||
cd asn1scc | ||
dotnet build Antlr/ || exit 1 | ||
#dotnet build "asn1scc.sln"|| exit 1 | ||
cd v4Tests-32 || exit 1 | ||
make || exit 1 | ||
cd ../v4Tests || exit 1 | ||
make || exit 1 |
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