docker scripts

This commit is contained in:
Christoph Honal 2020-02-12 14:13:10 +01:00
parent 26303a6454
commit 45a1af39f6
5 changed files with 11 additions and 11 deletions

View File

@ -28,6 +28,7 @@ RUN git clone https://github.com/MOVE-II/move2radio.git && \
cd move2radio-prop/ldpc && git checkout 940e8f96ccae831c7d3ad6b9497710696cd7f324 && git reset --hard && cd ../.. && \
git clone git@${PROP_SERVER}:${PROP_DIR_SDR}/gr-ccsds.git move2radio-prop/gr-ccsds && \
cd move2radio-prop/gr-ccsds && git checkout 5777e4176fe381327fe6cf55b7ec0dfe3c63b3f6 && git reset --hard && cd ../..
RUN git clone git@${PROP_SERVER}:${PROP_DIR_SDR}/com_utilities.git move2radio-prop/com_utilities
# Build stage
FROM ubuntu:18.04

View File

@ -6,4 +6,4 @@ export PROP_SERVER_KEY=$(cat ./config/id_rsa)
docker build \
--build-arg PROP_SERVER --build-arg PROP_SERVER_USER --build-arg PROP_SERVER_KEY \
--build-arg PROP_DIR_SDR --build-arg PROP_DIR_DECODER -t move2docker-dev .
--build-arg PROP_DIR_SDR --build-arg PROP_DIR_DECODER -t registry.chrz.de:443/move2docker:latest-$(arch) .

View File

@ -1,9 +0,0 @@
#!/bin/bash
cd "${0%/*}/.."
source ./config/config.sh
export PROP_SERVER_KEY=$(cat ./config/id_rsa)
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 \
--build-arg PROP_SERVER --build-arg PROP_SERVER_USER --build-arg PROP_SERVER_KEY \
--build-arg PROP_DIR_SDR --build-arg PROP_DIR_DECODER -t move2docker:latest .

8
scripts/push.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
docker push registry.chrz.de:443/move2docker:latest-$(arch)
docker manifest create registry.chrz.de:443/move2docker:latest registry.chrz.de:443/move2docker:latest-x86_64 registry.chrz.de:443/move2docker:latest-armv7l
docker manifest annotate registry.chrz.de:443/move2docker:latest registry.chrz.de:443/move2docker:latest-x86_64 --os linux --arch amd64
docker manifest annotate registry.chrz.de:443/move2docker:latest registry.chrz.de:443/move2docker:latest-armv7l --os linux --arch armv7
docker manifest push registry.chrz.de:443/move2docker:latest --purge

View File

@ -1,3 +1,3 @@
#!/bin/bash
docker run -it --rm -v ./data:/app/data:rw --env DISPLAY=host.docker.internal:0.0 move2docker-dev
docker run -it --rm -v ./data:/app/data:rw --env DISPLAY=host.docker.internal:0.0 registry.chrz.de:443/move2docker:latest