opencast / opencast-docker

Dockerfiles for Opencast
https://quay.io/organization/opencast/
Educational Community License v2.0
41 stars 36 forks source link

Fix various build script errors #26

Closed mtneug closed 7 years ago

mtneug commented 7 years ago

This fixes various small errors in scripts of the build image:

To verify run these commands from the root of this repository:

$ make build-build

$ export OPENCAST_SRC=$(mktemp -d)
$ docker-compose -p opencast-build -f docker-compose/docker-compose.build.yml up -d
$ docker-compose -p opencast-build -f docker-compose/docker-compose.build.yml exec opencast bash

$ oc_clone
# This should clone the Opencast repo and check out 2.3.0
$ oc_build
# This should build Opencast
$ oc_install allinone
# This should install the allinone distribution; it is extracted into /opencast
$ oc_run
# This should start Opencast; exit with ctrl+c
$ oc_uninstall
# This should uninstall Opencast, i.e. the directory /opencast is empty
$ oc_clean_data
# This should remove user data, i.e. the directory /data is empty
$ exit

$ docker-compose -p opencast-build -f docker-compose/docker-compose.build.yml down -v
$ sudo rm -rf $OPENCAST_SRC

The three is_* scripts are checked implicitly as they are called from other scripts.