2016-11-25 07:48:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-04-12 09:33:42 +00:00
|
|
|
version=6.2.5
|
2016-11-25 07:48:46 +00:00
|
|
|
set -e -x
|
|
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
cd image
|
2016-12-21 08:18:00 +00:00
|
|
|
# pip install docker-squash
|
|
|
|
# make base squash-base server
|
2018-04-12 09:12:43 +00:00
|
|
|
make base
|
2016-12-21 08:18:00 +00:00
|
|
|
make server
|
2016-11-25 07:48:46 +00:00
|
|
|
)
|
|
|
|
|
2018-04-12 09:33:42 +00:00
|
|
|
mkdir -p /opt/seafile-data
|
|
|
|
docker run -d --name seafile -v /opt/seafile-data:/shared -p 80:80 -p 443:443 seafileltd/seafile:$version
|
|
|
|
docker stop seafile
|
|
|
|
docker start seafile
|
|
|
|
docker restart seafile
|
2016-12-21 08:02:49 +00:00
|
|
|
|
|
|
|
if [[ $TRAVIS_TAG != "" ]]; then
|
|
|
|
ci/publish-image.sh
|
2016-12-21 08:14:37 +00:00
|
|
|
else
|
|
|
|
echo "Not going to push the image to docker hub, since it's not a build triggered by a tag"
|
2016-12-21 08:02:49 +00:00
|
|
|
fi
|