mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
9c3fdcae32
* 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
26 lines
556 B
Bash
Executable file
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
|