/local
/d.props
/aaf.props
+/cass.props
COPY lib /opt/app/aaf/lib
COPY bin /opt/app/aaf/bin
+COPY theme /opt/app/aaf/theme
+
LABEL description="aaf_${AAF_COMPONENT}"
LABEL version=${AAF_VERSION}
-COPY theme /opt/app/aaf/theme
-
CMD ["/bin/bash","-c","/opt/app/aaf/bin/${AAF_COMPONENT}"]
# For Debugging installation
--- /dev/null
+#!/bin/bash
+
+CASS_HOST=cass.aaf.osaaf.org:<Cass IP>
# Local Env info
HOSTNAME=aaf.osaaf.org
HOST_IP=
-CASS_HOST=cass.aaf.osaaf.org:<Cass IP>
# AAF Machine info
AAF_ENV=DEV
sed -e 's/${AAF_VERSION}/'${VERSION}'/g' -e 's/${AAF_COMPONENT}/'${AAF_COMPONENT}'/g' Dockerfile.ms >../aaf_${VERSION}/Dockerfile
cd ..
docker build -t ${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION} aaf_${VERSION}
+ docker tag ${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION} ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}
rm aaf_${VERSION}/Dockerfile
cd -
done
fi
for AAF_COMPONENT in ${AAF_COMPONENTS}; do
- docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${OLD_VERSION}
+ # docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${OLD_VERSION}
docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}
- docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${NEW_VERSION}
+ # docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${NEW_VERSION}
done
# Pull in Variables from d.props
. ./d.props
+# Only need Cassandra Link Info when initializing the container.
+if [ ! -e ./cass.props ]; then
+ cp cass.props.init cass.props
+ echo "Edit appropriate Cassandra Link Info into cass.props"
+ exit
+fi
+
+. ./cass.props
+
if [ "$1" == "" ]; then
AAF_COMPONENTS=$(ls -r ../aaf_${VERSION}/bin | grep -v '\.')
else