Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
provider-git
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
go-semantic-release
provider-git
Commits
1e2978df
Commit
1e2978df
authored
4 years ago
by
Christoph Witzko
Browse files
Options
Downloads
Patches
Plain Diff
chore: add start-gitea script
parent
40a4fb91
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/start-gitea.sh
+19
-0
19 additions, 0 deletions
scripts/start-gitea.sh
test/gitea/conf/app.ini
+90
-0
90 additions, 0 deletions
test/gitea/conf/app.ini
test/gitea/gitea.db
+0
-0
0 additions, 0 deletions
test/gitea/gitea.db
with
109 additions
and
0 deletions
scripts/start-gitea.sh
0 → 100755
+
19
−
0
View file @
1e2978df
#!/bin/bash
set
-euo
pipefail
docker stop gitea
||
true
docker
rm
gitea
||
true
git checkout ./test/gitea/gitea.db
docker run
-d
--name
gitea
-p
3000:3000
\
-e
USER_UID
=
1000
-e
USER_GID
=
1000
\
-v
$(
pwd
)
/test/gitea/conf/:/data/gitea/conf/
\
-v
$(
pwd
)
/test/gitea/gitea.db:/data/gitea/gitea.db
\
gitea/gitea
sleep
5
echo
"creating test repo..."
curl
-u
'test:test'
-XPOST
-H
'Content-Type: application/json'
-d
'{"name":"test"}'
http://localhost:3000/api/v1/user/repos
This diff is collapsed.
Click to expand it.
test/gitea/conf/app.ini
0 → 100644
+
90
−
0
View file @
1e2978df
APP_NAME
=
Gitea: Git with a cup of tea
RUN_MODE
=
dev
RUN_USER
=
git
[repository]
ROOT
=
/data/git/repositories
[repository.local]
LOCAL_COPY_PATH
=
/data/gitea/tmp/local-repo
[repository.upload]
TEMP_PATH
=
/data/gitea/uploads
[server]
APP_DATA_PATH
=
/data/gitea
DOMAIN
=
localhost
SSH_DOMAIN
=
localhost
HTTP_PORT
=
3000
ROOT_URL
=
http://localhost:3000/
DISABLE_SSH
=
false
SSH_PORT
=
22
SSH_LISTEN_PORT
=
22
LFS_START_SERVER
=
true
LFS_CONTENT_PATH
=
/data/git/lfs
LFS_JWT_SECRET
=
RYK1FNoLVtHSpsOZNDiLxUHhSFAVGfRz91zzCb4_aQk
OFFLINE_MODE
=
false
[database]
PATH
=
/data/gitea/gitea.db
DB_TYPE
=
sqlite3
HOST
=
localhost:3306
NAME
=
gitea
USER
=
root
PASSWD
=
LOG_SQL
=
false
SCHEMA
=
SSL_MODE
=
disable
CHARSET
=
utf8
[indexer]
ISSUE_INDEXER_PATH
=
/data/gitea/indexers/issues.bleve
[session]
PROVIDER_CONFIG
=
/data/gitea/sessions
PROVIDER
=
file
[picture]
AVATAR_UPLOAD_PATH
=
/data/gitea/avatars
REPOSITORY_AVATAR_UPLOAD_PATH
=
/data/gitea/repo-avatars
DISABLE_GRAVATAR
=
false
ENABLE_FEDERATED_AVATAR
=
true
[attachment]
PATH
=
/data/gitea/attachments
[log]
MODE
=
console
LEVEL
=
info
REDIRECT_MACARON_LOG
=
true
MACARON
=
console
ROUTER
=
console
ROOT_PATH
=
/data/gitea/log
[security]
INSTALL_LOCK
=
true
SECRET_KEY
=
XOtNgquA4e8Cu5QLDQkgnAXvt1loitGNPo4LZUF7TnOTCc9p5jbacSXYrV9MwNEr
INTERNAL_TOKEN
=
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE2MDQzMjM3MTB9.WCvwenj0ZqxBwhv-hmYx9tjRWl8Edev1J459MQ09e0E
[service]
DISABLE_REGISTRATION
=
false
REQUIRE_SIGNIN_VIEW
=
false
REGISTER_EMAIL_CONFIRM
=
false
ENABLE_NOTIFY_MAIL
=
false
ALLOW_ONLY_EXTERNAL_REGISTRATION
=
false
ENABLE_CAPTCHA
=
false
DEFAULT_KEEP_EMAIL_PRIVATE
=
false
DEFAULT_ALLOW_CREATE_ORGANIZATION
=
false
DEFAULT_ENABLE_TIMETRACKING
=
false
NO_REPLY_ADDRESS
=
[oauth2]
JWT_SECRET
=
rzfhS-uGuLCGG9bYfZ0gIHA7XlktDGvf4F9UAzibqLE
[mailer]
ENABLED
=
false
[openid]
ENABLE_OPENID_SIGNIN
=
false
ENABLE_OPENID_SIGNUP
=
false
This diff is collapsed.
Click to expand it.
test/gitea/gitea.db
0 → 100644
+
0
−
0
View file @
1e2978df
File added
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