seafile-containerized/ci/ci.sh
zMingGit 9c3fdcae32 Support native docker run instead of using the launcher script (#47)
* didn't use launcher

* travis

* link error & update readme

* del launcher.ps1, del bootstrap func under launcher file

* [readme] password/plan b, add a new admin

* review
2018-04-12 17:12:43 +08:00

26 lines
556 B
Bash
Executable file

#!/bin/bash
version=6.2.3
set -e -x
(
cd image
# pip install docker-squash
# make base squash-base server
make base
make server
)
mkdir -p /opt/seafile-docker-data
docker run -d --name seafile-server -v /opt/seafile-docker-data:/shared -p 80:80 -p 443:443 seafileltd/seafile:$version
docker stop seafile-server
docker start seafile-server
docker restart seafile-server
if [[ $TRAVIS_TAG != "" ]]; then
ci/publish-image.sh
else
echo "Not going to push the image to docker hub, since it's not a build triggered by a tag"
fi