Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
seafile-sync
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
seafile-sync
Commits
7de84c33
Verified
Commit
7de84c33
authored
5 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit
parents
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+23
-0
23 additions, 0 deletions
Dockerfile
docker-entrypoint.sh
+8
-0
8 additions, 0 deletions
docker-entrypoint.sh
with
31 additions
and
0 deletions
Dockerfile
0 → 100644
+
23
−
0
View file @
7de84c33
FROM
ubuntu:18.04
RUN
apt-get update
&&
\
apt-get
install
-y
--no-install-recommends
\
software-properties-common
&&
\
apt-add-repository ppa:seafile/seafile-client
&&
\
apt-get update
&&
\
apt-get
install
-y
--no-install-recommends
\
seafile-cli
\
oathtool
&&
\
rm
-rf
/var/lib/apt/lists/
*
ADD
docker-entrypoint.sh /docker-entrypoint.sh
ENV
LIBRARY=""
ENV
SERVER=""
ENV
EMAIL=""
ENV
PASSWORD=""
ENV
OTP_TOKEN=""
VOLUME
/sync
ENTRYPOINT
["/docker-entrypoint.sh"]
This diff is collapsed.
Click to expand it.
docker-entrypoint.sh
0 → 100644
+
8
−
0
View file @
7de84c33
#!/usr/bin/env bash
set
-Eeo
pipefail
if
[
-z
"
$OTP_TOKEN
"
]
;
then
seaf-cli
sync
-l
"
$LIBRARY
"
-s
"
$SERVER
"
-d
"/sync"
-u
"
$EMAIL
"
-p
"
$PASSWORD
"
--tfa
$(
oathtool
--totp
-b
"
$OTP_TOKEN
"
)
else
seaf-cli
sync
-l
"
$LIBRARY
"
-s
"
$SERVER
"
-d
"/sync"
-u
"
$EMAIL
"
-p
"
$PASSWORD
"
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment