Commit d01dc156 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Added utility scripts for building, tagging, pushing and pulling container images.

parent 8fe8ab08
Loading
Loading
Loading
Loading

base/astro/pull.sh

0 → 100755
+10 −0
Original line number Diff line number Diff line
#!/bin/bash
docker pull git.ia2.inaf.it:5050/lofarit/containers/lofarit_base_astro

if [ $? -eq 0 ] 
then 
  echo ""
  echo "Pulled lofarit/containers/lofarit_base_astro. To use it for building other images in this repository, retag it as:"
  echo " $ docker tag git.ia2.inaf.it:5050/lofarit/containers/lofarit_base_astro lofarit_base_astro"
  echo ""
fi
 No newline at end of file

base/astro/push.sh

0 → 100755
+2 −0
Original line number Diff line number Diff line
#!/bin/bash
docker push git.ia2.inaf.it:5050/lofarit/containers/lofarit_base_astro

base/astro/tag.sh

0 → 100755
+2 −0
Original line number Diff line number Diff line
#!/bin/bash
docker tag lofarit_base_astro git.ia2.inaf.it:5050/lofarit/containers/lofarit_base_astro

base/build.sh

0 → 100755
+10 −0
Original line number Diff line number Diff line
#!/bin/bash
set -e

# Build
cd system && ./build.sh && cd ..
cd extras && ./build.sh && cd ..
cd astro && ./build.sh && cd ..

# Use the astro image as lofar base
docker tag lofarit_base_astro lofarit_base

base/extras/pull.sh

0 → 100755
+10 −0
Original line number Diff line number Diff line
#!/bin/bash
docker pull git.ia2.inaf.it:5050/lofarit/containers/lofarit_base_extras

if [ $? -eq 0 ] 
then 
  echo ""
  echo "Pulled lofarit/containers/lofarit_base_extras. To use it for building other images in this repository, retag it as:"
  echo " $ docker tag git.ia2.inaf.it:5050/lofarit/containers/lofarit_base_extras lofarit_base_extras"
  echo ""
fi
 No newline at end of file
Loading