forked from usnistgov/oar-pdr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makedist.docker
executable file
·25 lines (24 loc) · 943 Bytes
/
makedist.docker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/bash
#
# makedist.docker -- make all components from this repo via the docker containers
# defined in the docker directory.
#
# Usage: makedist.docker [--dist-dir=DIR] [python|angular|DISTNAME ...]
#
# where:
# --dist-dir=DIR write component distributions to the given directory
# (instead of the default directory, dist)
# python build only the python-based distributions
# angular build only the angular-based distributions
# DISTNAME build only the named distributions; DISTNAME can be
# pdr-lps or pdr-publish
#
prog=`basename $0`
execdir=`dirname $0`
[ "$execdir" = "" -o "$execdir" = "." ] && execdir=$PWD
export CODEDIR=`(cd $execdir/.. > /dev/null 2>&1; pwd)`
export DOCKERDIR=$CODEDIR/docker
$DOCKERDIR/dockbuild.sh
# Run the main makedist in the dockerdir
echo "Run makedist for oar-pdr"
exec $DOCKERDIR/makedist "$@"