Add astra linux

This commit is contained in:
NaiJi ✨ 2022-04-04 12:03:04 +03:00
commit 85740088e9
2 changed files with 102 additions and 0 deletions

41
astra/.gitlab-ci.yml Normal file
View File

@ -0,0 +1,41 @@
stages:
- build_image
- tests
variables:
VERSION: "v1"
build_image:
stage: build_image
tags:
- docker
- dind
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker build -t $CI_REGISTRY_IMAGE:$VERSION .
- docker tag $CI_REGISTRY_IMAGE:$VERSION $CI_REGISTRY_IMAGE:latest
- docker push $CI_REGISTRY_IMAGE:$VERSION
- docker push $CI_REGISTRY_IMAGE:latest
- docker rmi $CI_REGISTRY_IMAGE:$VERSION
- docker rmi $CI_REGISTRY_IMAGE:latest
only:
- master
when: manual
allow_failure: false
tests_image:
stage: tests
image: $CI_REGISTRY_IMAGE:latest
needs: ["build_image"]
tags:
- docker
- dind
script:
- git --version
only:
- master

61
astra/Dockerfile Normal file
View File

@ -0,0 +1,61 @@
FROM sogimu/astralinux
RUN echo "deb http://download.astralinux.ru/astra/stable/orel/repository/ orel main contrib non-free" > /etc/apt/sources.list && \
echo "deb-src http://download.astralinux.ru/astra/stable/orel/repository/ orel main contrib non-free" >> /etc/apt/sources.list && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y git curl sshpass && \
apt-get install -y libboost-all-dev libcurl4-nss-dev && \
apt-get install -y qtbase5-dev libjsoncpp-dev && \
apt-get install -y libxmlrpc-epi-dev libwrap0-dev python-dev && \
apt-get install -y libxmlrpc-core-c3-dev libncurses-dev libcap-dev && \
apt-get install -y libqrencode-dev libsystemd-dev libsqlite3-dev && \
apt-get install -y python3-lxml libftdi-dev libcanberra-gtk-module && \
apt-get install -y libpng-dev gtk2.0-dev libssl-dev libqt5serialport5-dev xorriso apt-transport-https ca-certificates && \
apt-get -f install -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -f /var/cache/apt/archives/*.deb && \
rm -f var/cache/apt/archives/partial/*.deb && \
rm -f /var/cache/apt/*.bin
RUN echo "deb http://debian.proxad.net/debian/ stretch main contrib non-free" > /etc/apt/sources.list && \
apt-get update -y && \
apt-get install -y --allow-unauthenticated md5deep && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -f /var/cache/apt/archives/*.deb && \
rm -f var/cache/apt/archives/partial/*.deb && \
rm -f /var/cache/apt/*.bin
RUN echo "deb http://download.astralinux.ru/astra/stable/orel/repository/ orel main contrib non-free" > /etc/apt/sources.list && \
echo "deb-src http://download.astralinux.ru/astra/stable/orel/repository/ orel main contrib non-free" >> /etc/apt/sources.list
# Download and install some custom shit unavailable in default apt
RUN wget --user=EXAMPLEUSER --password=EXAMPLEPASSWORD -q -N http://example-url/some.deb && \
dpkg -i --skip-same-version *.deb && \
rm libarcus2-dev_2.2.0.0.42_amd64.deb && \
rm libarcus2_2.2.0.0.42_amd64.deb && \
rm libfptr10-dev_10.9.2.0_amd64.deb && \
rm libfptr10_10.9.2.0_amd64.deb && \
rm zint-dev_2.6.7_amd64.deb && \
rm zint_2.6.7_amd64.deb && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -f /var/cache/apt/archives/*.deb && \
rm -f var/cache/apt/archives/partial/*.deb && \
rm -f /var/cache/apt/*.bin
RUN apt-get update -y && \
apt-get install debian-keyring -y && \
apt install build-essential -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -f /var/cache/apt/archives/*.deb && \
rm -f var/cache/apt/archives/partial/*.deb && \
rm -f /var/cache/apt/*.bin
# Download and install cmake 3.15
RUN wget https://github.com/Kitware/CMake/releases/download/v3.15.5/cmake-3.15.5-Linux-x86_64.sh && \
yes Y | bash cmake-3.15.5-Linux-x86_64.sh && \
echo "PATH=$PATH:/cmake-3.15.5-Linux-x86_64/bin" >> /etc/profile