1 Star 1 Fork 0

erow/cocalc-docker

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
update-the-build-stage-0.sh 554 Bytes
一键复制 编辑 原始数据 按行查看 历史
set -x
sudo docker stop cocalc-test
sudo docker rm cocalc-test
set -e
git pull
commit=`git ls-remote -h https://github.com/sagemathinc/cocalc master | awk '{print $1}'`
echo $commit | cut -c-12 > current_commit
time sudo docker build --build-arg commit=$commit --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') -t cocalc $@ .
sudo docker tag cocalc:latest sagemathinc/cocalc:latest
sudo docker tag cocalc:latest sagemathinc/cocalc:`cat current_commit`
sudo docker run --name=cocalc-test -d -v ~/cocalc-test:/projects -p 4043:443 sagemathinc/cocalc
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/microcloud/cocalc-docker.git
git@gitee.com:microcloud/cocalc-docker.git
microcloud
cocalc-docker
cocalc-docker
master

搜索帮助