Skip to content
Snippets Groups Projects
Commit 41c5d30b authored by Bensong Liu's avatar Bensong Liu
Browse files

done.log done

parent 2c78d6dc
No related branches found
No related tags found
No related merge requests found
from ubuntu:20.04
maintainer root@recolic.net
run apt update && apt install -y fish wget curl
run wget https://git.recolic.net/root/json2table/uploads/63b923b53a191968f0dc29cd988d7b4f/json2table-linux-static -O /usr/bin/json2table && chmod +x /usr/bin/json2table
run mkdir -p /app
copy . /app
workdir /app
cmd "./gitlab2github_daemon.fish"
......@@ -8,3 +8,11 @@ Dependencies: fish, json2table, git
This doesn't recursively resolve gitlab sub-group. Please specify every sub-group as a new namespace.
## Usage
```
sudo docker build -f Dockerfile -t recolic/gitlab2github .
sudo docker run -d --name rgitsync --env github_user_dst="rtestgithubapi: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" recolic/gitlab2github
```
#!/usr/bin/fish
while true
fish ./gitlab2github_sync.fish
echo "Sleeping 3600s..." 1>&2
sleep 3600
end
......@@ -3,7 +3,11 @@
set gitlab_host https://git.recolic.net
# set gitlab_namespace_src users/root groups/recolic-hust
set gitlab_namespace_src users/root
set github_user_dst "rtestgithubapi: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"
if test "$github_user_dst" = ""
echo 'Error: please set environment variable github_user_dst' 1>&2
echo 'Example: env github_user_dst="rtestgithubapi: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" ./gitlab2gitlab.fish'
exit 1
end
function echo2
echo $argv 1>&2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment